Skip to main content

🖇️ Shortening URLs

Method for shortening URLs using e-z.host.

POSThttps://api.e-z.gg/shortener

Headers

NameTypeDescription
key*StringAPI Key

Request Body

NameTypeDescription
url*StringURL you want to shorten

Request example

curl -X POST "https://api.e-z.gg/shortener" \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'

Responses

{
"success": true,
"shortendUrl": "https://<domain>/s/<shortenedid>",
"deletionUrl": "https://api.e-z.gg/shortener/delete?key=<urlkey>",
"document": {
"shortId": "<shortenedid>",
"destination": "https://<destination>",
"deletionKey": "<urlkey>",
"timestamp": "2026-08-10T21:55:18.550Z",
"user": "<userid>"
}
}