Skip to content
A dynamic URL shortener
Branch: master
Clone or download
Latest commit 424e4a6 May 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api Set CORS header for API May 13, 2019
resources Clean up README May 22, 2019
404.html Add favicon to 404 page May 12, 2019
CNAME Update CNAME Mar 31, 2019
LICENSE Create LICENSE May 11, 2019
README.md Clean up README May 22, 2019
index.html Use CSS to add "1pt.co/" prefix to custom URL input May 13, 2019
removed.html Remove link from removal message. Dec 13, 2018

README.md

Link shortener

Uptime

Screenshot

1pt is a URL shortening service that allows users to create dynamic URL forwarders. Users can generate smart links that point to different destinations based on factors like user agent or country. For example, a link like www.1pt.co/MyApp could point to the Play Store on all android devices, the App Store on all iPhones and iPads, and the app website on all desktop devices.

API

Endpoint Method
https://api.1pt.co GET
Parameter Requirement Description
url Required The long URL to shorten
custom Optional Request a custom short URL
desktop Optional Specific redirect for all desktop devices
apple Optional Specific redirect for all iOS devices
android Optional Specific redirect for all Android devices
mobile Optional Redirect for mobile users if the OS is undetermined or is something other than Apple/Android)

For example, a request to https://api.1pt.co/?url=www.param.me will return a random 4-letter string like an5n. In that case, 1pt.co/an5n is your short URL that redirects to www.param.me. If you request a custom short URL and it doesn't return that URL, it's already taken. So http://api.1pt.co/?url=www.param.me&custom=MyWebsite will return MyWebsite if it's available, and a random 4-letter string if it isn't.


This project is maintained by Param Thakkar
You can’t perform that action at this time.