Sign up ×
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

closed as off-topic by dan Nov 5 at 5:46

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking for recommended external websites, tools, resources, and software are off-topic as they tend to attract opinionated answers and spam. Recommendations for software are permitted on Software Recommendations, but be sure to read their quality guidelines before posting there." – dan
If this question can be reworded to fit the rules in the help center, please edit the question.

Note that if self-hosting is not an absolute requirement, 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 URL to view its stats. – joshuahedlund Apr 12 '12 at 16:58

3 Answers 3

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

if you have to go self hosted take a look at YOURLS

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. 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 It's a tried and tested platform with solid reporting and flexibility.

share|improve this answer

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