1 Point URL Shortener
1pt is a simple-to-use URL shortening service.
Backend
The redirects are stored in a MySQL Database and the API is written in PHP
🖥️ API
The 1pt.co API is public so anyone can create a shortened URL
Endpoint: https://csclub.uwaterloo.ca/~phthakka/1pt/
/addURL
Method: GET
Parameter | Description | Example |
---|---|---|
url |
Required - The long URL to shorten | https://www.param.me |
cu |
Optional - The part after 1pt.co/ that will redirect to your long URL. If this paramter is not provided or the requested short URL is already taken, it will return a random 5-letter string |
param |
Example Response
{
"status": 201,
"message": "Added!",
"short": "param",
"long": "https://www.param.me"
}
With this example 1pt.co/param will redirect to https://www.param.me
🛈 info.1pt.co
One of the biggest concerns that come with URL shortening is the fact that anyone can hide or mask their URL. Users can create shortened URLs that point to malicious or inappropriate sites, and the person receiving that URL won't realize it until they've clicked it and already been redirected to the harmful website. With this feature, however, anyone will be able to prepend info. to any 1pt.co URL to see the URL metadata before being redirected.
Check out 1pt-co/info.1pt.co