What it does
The v.gd API turns long links into short v.gd addresses, for example to share links in text messages or on social media. Send a GET or POST request to create.php with the long URL, and optionally your own short name of 5 to 30 characters. The answer comes back as JSON (with an optional callback), XML or plain text. Short links are permanent, so cache them instead of calling the API on every page view. Free, no key needed, with hourly limits per IP address.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed, with hourly limits per IP address.
- From the browser
- Yes (CORS)
- Formats
- JSON, XML
- Interface
- REST, HTTP-GET
- Provider
- v.gd
More information: https://v.gd/apishorteningreference.php
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://v.gd/forward.php?format=json&shorturl=example'
JavaScript
const response = await fetch("https://v.gd/forward.php?format=json&shorturl=example");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://v.gd/forward.php?format=json&shorturl=example",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.