Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm looking for self-hosted URL shortener scripts and projects (e.g. YOURLs) that track traffic sources, locations and other statistics. I need one with a solid API and JSON support. Any suggestions?

share|improve this question
Note that if self-hosting is not an absolute requirement, bit.ly provides a lot of the information you are looking for. Just create an account to track your own or add "+" to the end of any bit.ly URL to view its stats. –  joshuahedlund Apr 12 '12 at 16:58

3 Answers 3

if you have to go self hosted take a look at YOURLS http://yourls.org/

Did you know bitly has an api, and allows you to use your own custom domain name FOR FREE?

why not let bitly handle all that traffic? YOURLS has its advantages since you can simply dump table.

But bitly also gets the job done for free

share|improve this answer
Didn't know bitly allowed custom domains. Thanks! –  Andrew Jul 24 '14 at 19:53

I have recently been researching the same thing.

YOURLS looks like a good option although I'm not entirely sure what reporting level you can access through this.

Bit.ly offer a custom domain setting when shortening links which works great! it requires you to point your site DNS at bitly (very simple step by step instructions).

In my opinion the best option (and the one I'm going to be using) is bit.ly. It's a tried and tested platform with solid reporting and flexibility.


share|improve this answer

This script is self-hosted and has a stats page. Not sure what kind of functions you're looking for in an API but hope this helps get you started


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.