Skip to content
/ 1pt.one Public

๐Ÿ”— A minimalistic website and API to shorten URLs and keep track of the number of visits

Notifications You must be signed in to change notification settings

Jeusto/1pt.one

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

33 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

1pt.one - A minimalistic URL shortener

A minimalistic URL shortener. Create a short URL in seconds and track the number of visits with the website or the api. You can use the service with the website 1pt.one or the CLI tool.

demo

API

/shorten

Method: GET

Parameter Description Example
long Required - The long URL to shorten https://github.com
short Optional - The short version of the url gth

Example Response

1pt.one/shorten?short=gth&long=https://github.com

{
  "message": "Successfully added short url!",
  "short_url": "gth",
  "long_url": "https://github.com",
  "file_content": ""
}

/retrieve

Method: GET

Parameter Description Example
short Required - The short version of the url gth

Example Response

{
  "short_url": "gth",
  "long_url": "https://github.com",
  "created_at": "18/09/2021 20:26:17",
  "number_of_visits": 2,
  "file_content": ""
}

/status

Method: GET

Example Response

{
  "status": 200,
  "message": "Api is live. Read the documentation at https://github.com/Jeusto/1pt.one"
}

About

๐Ÿ”— A minimalistic website and API to shorten URLs and keep track of the number of visits

Resources

Stars

Watchers

Forks