Skip to content

Latest commit

 

History

History
81 lines (62 loc) · 2.06 KB

README.md

File metadata and controls

81 lines (62 loc) · 2.06 KB

Url Shorten API

Watch it on YouTube

API Endpoints

1. Create a Shortned Link (Get):
Request

https://your-app-url.vercel.app/create?u={url}

##Ex.
https://url-shorten-api.vercel.app/create?u=https://thetuhin.com

Response

{
  "status": true,
  "link": "https://url-shorten-api.vercel.app/?i=1603985599nRrMuJ",
  "unique_id": "1603985599nRrMuJ",
  "timestamp": 1603985599
}

2. Get Main URL from Shortened URL (Get):
Request

https://your-app-url.vercel.app/?i={unique-id}

##Ex.
https://url-shorten-api.vercel.app/?i=1603985599nRrMuJ

Response

{
  "status": true,
  "main_link": "https://thetuhin.com",
  "created_at": 1603985599
}

Make Your Own

Deploy with Vercel

Environment Variables

Star this Repo if you Liked it ⭐⭐⭐



My Website & Social


Website .. Instagram .. YouTube .. Telegram