Skip to content

1pt-co/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1pt.co API

The 1pt.co API is public so anyone can create a shortened URL

Endpoint: csclub.uwaterloo.ca/~phthakka/1pt-express

Warning

The old endpoint (csclub.uwaterloo.ca/~phthakka/1pt) is still live but will soon be deprecated.

/addURL

Method: POST

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

Example Response

{
  "message": "Added!",
  "short": "param",
  "long": "https://www.param.me"
}

With this example 1pt.co/param will redirect to https://www.param.me

Note

If the requested short is taken, it will return a random 5-letter string along with the flag receivedRequestedShort: false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published