Code Monkey home page Code Monkey logo

url-shorten-api's Introduction

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

url-shorten-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

url-shorten-api's Issues

Confused

Where should I put UrlMongoDb?
Dah bisa:v

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.