Welcome!
Welcome to Brad Arsenault's open URL shortener!
On this page you can:
- Shorten A URL
- Expand a URL
- View Stats on a URL
Shorten A URL
Expand
This is pre-1.0
This is the total of 4 hours work on a Friday night.
This service, probably unlike many, is entirely Perl (and CSS and HTML). No PHP. I could get into why I... uhhh... "dislike" PHP, put this is neither the time nor the place for that... I HAVE A BLOG!.
So, without further adew, here is how this works:
- There are two scripts - index.pl and shorten.pl. Here are the API calls for index(expands URLs):
- api=1 // basic redirect (counts as view)
- api=2 // expands URL (counts as view)
- api=3 // webpage with the URL on it (this will be expanded in the future and counts as a view)
- api=4 // JSON [bit.ly style] printout: provides:
- Short code that was provided ("shortCode")
- total times the url has been accessed (minus the api=4) ("views")
- unique views by IP ("uniqueViews")
- time and date it was created... in TWO FORMATS!: epoch ("createdEpochTime") and long form ("timeDateCreatedLongForm")
- Time/date of last visit... also in two formats! epoch ("epochLastVisit") and long form ("timeDateLastVisitLongForm")
- ...and finally the expanded URL
- Also, the short code can be input with or without an identifier!
**This is the only "stats" package I have for now.
- The second script, shorten.pl does all of your shortening needs! Here are it's API calls:
- api=1 // a webpage with the new URL short code
- api=2 // a TinyURL style printout (just prints out $baseURL + shortcode
This page was generated in 0.003656 seconds.