A free open-source alternative to shortening URLs
https://tools.zavaar.net/#/shorten
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
- POST -
- Response:
- JSON response:
The
{ "id": "Lyz8", "key": "uqcooty2afcv", "original": "https://google.com", "shortened": "https://s.zavaar.net/Lyz8" }
shortened
property is your new URL that redirects to google.com
- JSON response:
- Request:
- Query parameters:
-
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
- GET -
- Response:
- JSON response:
{ "items": [ { "id": "Lyz8", "key": "uqcooty2afcv", "original": "https://google.com", "shortened": "https://s.zavaar.net/Lyz8" } ], "count": 1 }
- JSON response:
- Request:
- Path parameters