API Directory › 🔧 Utilities & Media › is.gd
No authHTTPSCORS

is.gd API

Free URL shortener API — no key, simple GET request.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open is.gd docs ↗

What it does

is.gd is a free URL shortener with a simple API: shorten a long URL (optionally with a custom alias), and expand a short URL back to its destination. It also offers basic click statistics per link.

Base URL

https://is.gd

Authentication

None. Shorten: /create.php?format=json&url={long_url} (add &shorturl={alias} for a custom slug). Expand: /forward.php?format=json&shorturl={code}. format can be json, xml, simple (plain text) or web.

Code examples

curl
curl -s "https://is.gd/create.php?format=json&url=https%3A%2F%2Flarzos.com%2Fapis%2F"
# {"shorturl":"https://is.gd/abc123"}
Python
import requests

r = requests.get("https://is.gd/create.php", params={
    "format": "json", "url": "https://larzos.com/apis/"}, timeout=10)
print(r.json().get("shorturl") or r.json().get("errormessage"))

Rate limits & quotas

No key. Rate limited for abuse prevention — roughly a few creates per 15 seconds per IP; bulk or rapid use gets temporary blocks and CAPTCHA challenges. URLs are checked against spam/malware lists and rejected if flagged. Use logstats=1 to enable click stats for a link.

Key response fields

shorturlThe shortened URL (JSON success)
errorcode / errormessagePresent on failure (bad URL, rate limit, blocked domain)
(forward.php) urlThe original destination
(simple format)Just the short URL as plain text, or an error string

Common errors

errorcode 1The long URL is invalid or missing.
errorcode 2The requested custom shorturl is already taken or invalid.
errorcode 3Rate limit reached — wait and slow down.
errorcode 4The URL was flagged (spam/malware) and rejected.

When to use it (and alternatives)

A clean, free, key-less shortener for occasional links, QR-code targets and share buttons. For higher volume, custom domains and analytics, use TinyURL’s keyed API or a self-hosted shortener (YOURLS, Kutt).

FAQ

Can I set a custom short code?

Yes — add &shorturl=myalias to create.php. It fails (errorcode 2) if the alias is taken or contains invalid characters.

Why is my URL being rejected?

is.gd screens destinations against spam and malware blocklists. A flagged domain returns errorcode 4. Legitimate false positives can be appealed with the operators.

Is there a bulk API?

No — and rapid automated creation triggers rate limits and CAPTCHAs. For bulk shortening use a service built for it or self-host.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

QR GeneratorImage Compressor

Related Utilities & Media APIs

← Back

More Utilities & Media APIs · All 196 APIs