Creating Links
This page shows you how to create a new shortened link.
Base URL:
https://r.tinvn.eu.org/apiEndpoints:
GET /new
Query Parameters
Name
Type
Description
url(required)
string
URL that needs to be shortened
Example Request
curl -X GET "https://r.tinvn.eu.org/api/new?url=<url>" import requests
response = requests.get(
url = "https://r.tinvn.eu.org/api/new",
params = {
"url" : <url>
}
)
print(response.json())Response
{
"id": 1,
"message": "OK",
"original_url": "https://example.com",
"short_id": "JxMaxj",
"short_url": "http://r.tinvn.eu.org/JxMaxj",
"status": 200
}Errors
Code
Description
ER1
You didn't provide a url.
ER2
Invaild URL provided.
Last updated
Was this helpful?