ThatZiv / urlshorten

Free open-source alternative to shortening URLs

Home Page:https://tools.zavaar.net/#/shorten

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Shortener

A free open-source alternative to shortening URLs

https://tools.zavaar.net/#/shorten

API

This API is completely free thanks to deta.sh but standard rate limits apply.

  • Endpoint: https://s.zavaar.net/api

  • Create URL - POST

    Create a shortened URL

    • /create?url=your_url_here
      • Query parameters:
        • url *required - an http full url to eventually redirect to
      • Sample:
        • Request:
          • POST - https://s.zavaar.net/api/create?url=https://google.com
        • Response:
          • JSON response:
            {
                "id": "Lyz8",
                "key": "uqcooty2afcv",
                "original": "https://google.com",
                "shortened": "https://s.zavaar.net/Lyz8"
            }
            The shortened property is your new URL that redirects to google.com
  • Get URL - GET

    Get an already existing shortened URL

    • /get/your_id_here
      • Path parameters
        • id *required - an id from a shortened URL
      • Sample:
        • Request:
          • GET - https://s.zavaar.net/api/get/Lyz8
        • Response:
          • JSON response:
            {
                "items": [
                    {
                      "id": "Lyz8",
                      "key": "uqcooty2afcv",
                      "original": "https://google.com",
                      "shortened": "https://s.zavaar.net/Lyz8"
                    }
                ],
                "count": 1
            }

About

Free open-source alternative to shortening URLs

https://tools.zavaar.net/#/shorten


Languages

Language:JavaScript 68.4%Language:Pug 16.6%Language:HTML 14.5%Language:CSS 0.6%