The 1pt.co API is public so anyone can create a shortened URL
Endpoint: thakkaha.dev.fast.sheridanc.on.ca/pme/1pt
Parameter | Description | Example |
---|---|---|
long |
Required - The long URL to shorten | https://www.param.me |
short |
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 |
{
"status": 201,
"message": "Added!",
"short": "param",
"long": "https://www.param.me"
}
With this example 1pt.co/param will redirect to https://www.param.me