URL Shortener APIs Compared (2026): Free Tiers, Limits and Example Calls

Which link shortener API to build on: free tiers, rate limits, whether you need a key, and what a create-link call looks like on each.

MiniSnip Team12 min read
In this article
  1. URL shortener APIs at a glance
  2. The free, no sign-up option: is.gd
  3. Bitly
  4. TinyURL
  5. Short.io
  6. Dub
  7. Rebrandly
  8. MiniSnip
  9. What a good link API gives you
  10. Example: create a link in JavaScript
  11. Example: create a link in Python
  12. Handling limits and errors
  13. Keep your API key safe
  14. What people build with link APIs
  15. How to choose

The short answer: for a quick script with no account, is.gd creates short links with a single GET request and no key. For a real product, pick an API with your own domain and analytics: Short.io and Dub have free plans with API access and custom domains, Bitly includes 1,000 API requests a month even on its free plan, and MiniSnip gives Pro accounts an API whose click data leaves out bots and link previews.

The limits below come from each company's pricing page or documentation on the dates in the sources section. Check them again before you build, because API limits change more often than prices.

URL shortener APIs at a glance

Free API access Key needed Published limits Your own domain via the API
is.gd Yes No Per-IP limits; up to 5 connections at once No
Bitly Yes Yes (access token) 1,000 requests a month free; 5,000 Core, 25,000 Growth, 50,000 Premium From Growth
TinyURL Varies by plan Yes (API token) Not published on its pricing page On paid plans
Short.io Yes Yes (API key) 50 requests a second on every plan; 1,000 links by API or bulk on Free Yes, 5 domains free
Dub Yes Yes (API key) 600 a minute on Pro, 1,200 Business, 3,000 Advanced Yes, 3 domains free
Rebrandly Yes Yes (API key) 100 calls a minute free, up to 1,000 on Growth From Essentials
MiniSnip Pro and Enterprise Yes (API key) 60 requests a minute Yes, 3 domains on Pro

The free, no sign-up option: is.gd

is.gd (and its twin v.gd) is the only API here that needs no account or key:

https://is.gd/create.php?format=simple&url=https%3A%2F%2Fexample.com%2Fpage

The response is the short URL as plain text. You can ask for JSON or XML instead, and request a custom ending with the shorturl parameter. The rules matter:

  • It's built for low volume and apps running on people's own devices. Limits are per IP address, and is.gd says servers that keep hammering it risk a ban.
  • Keep no more than 5 connections open at once, and wait about a minute after a rate-limit error.
  • Links are permanent, so cache them instead of shortening the same URL twice.
  • There's no custom domain, and click statistics only if you turn them on with logstats=1.

For shortening by hand without an account, and what each service logs about clicks, see URL shorteners without sign-up.

Good for a personal script or a browser extension. Not for a product.

Bitly

Bitly's API is available on every plan, and the pricing page lists monthly request allowances: 1,000 on Free, 5,000 on Core, 25,000 on Growth and 50,000 on Premium. Creating a link is one POST:

POST https://api-ssl.bitly.com/v4/shorten with {"long_url": "https://example.com/page"}

Remember that Free creates only 5 links a month on Bitly's US page and shows no click data, so the API won't give you more than the plan allows. Custom domains start on Growth. Every limit is in our Bitly pricing guide.

TinyURL

TinyURL's API lives at api.tinyurl.com and uses an API token from your account. A create call posts the long URL and, optionally, an alias and domain:

POST https://api.tinyurl.com/create with {"url": "https://example.com/page", "alias": "my-page"}

TinyURL's pricing page lists a "Short URL API" but doesn't publish call limits, so check your account's API settings before you depend on it.

Short.io

Short.io includes the API on every plan, with 50 requests a second for reading and creating links. What's capped is "link automation", links made by API or bulk import: 1,000 on Free, 2,500 on Hobby, 10,000 a year on Pro and 100,000 a year on Team. You create links on one of your domains:

POST https://api.short.io/links with {"domain": "go.yourbrand.com", "originalURL": "https://example.com/page"}

Its free plan includes 5 custom domains, which makes it the cheapest way to create branded links by API.

Dub

Dub's API is on every plan, including Free (25 new links a month), with per-minute limits that rise with the plan: 600 on Pro, 1,200 on Business and 3,000 on Advanced. Dub also publishes official SDKs and is open source:

POST https://api.dub.co/links with {"url": "https://example.com/page"}

Dub's paid plans are priced by usage, so links and tracked events created through the API count toward your plan.

Rebrandly

Rebrandly includes the API on every plan, from 100 calls a minute on Free to 1,000 on Growth. Links are capped per month by plan (10 on Free, 250 on Essentials), so the plan's link limit, not the rate limit, is usually what you hit first:

POST https://api.rebrandly.com/v1/links with {"destination": "https://example.com/page"}

MiniSnip

MiniSnip's REST API comes with Pro ($19 a month or $190 a year) and Enterprise, at 60 requests a minute. Create keys under Dashboard > Settings and send them as a bearer token:

POST https://minisnip.com/api/v1/links with {"originalUrl": "https://example.com/page", "shortCode": "launch"}

You can set everything the dashboard can: your own domain, an expiry date, a password, App Store and Google Play destinations, country rules, A/B variants, UTM tags and social preview text. There's a bulk endpoint for creating many links at once, a clicks endpoint for analytics, and webhooks when a link is created, changed, deleted or clicked. The click data you read back already leaves out more than 140 named bots, link previews and cloud networks. The full reference is in the API documentation.

Rate limits get the attention, but these decide whether an API is pleasant to build on:

  • Your own domain. Links on go.yourbrand.com look trustworthy in texts and emails and survive a change of provider.
  • Custom endings. Being able to set the alias (go.yourbrand.com/p123) lets you build predictable links from your own IDs.
  • Editing after creation. An endpoint to change the destination means printed codes and sent messages can be repointed later.
  • Analytics you can trust. If you report clicks to clients or use them to pay partners, ask how bots, link previews and security scanners are counted.
  • Bulk creation. One request for hundreds of links is kinder to rate limits than hundreds of requests.
  • Webhooks. Being told when a link is clicked beats polling for new data.
  • Clear errors. A taken alias or an invalid URL should come back as a readable error you can show to a user.

Run this on your server, never in a web page, so your key stays secret. It uses MiniSnip; the shape is similar on the other services, with their own field names.

const res = await fetch("https://minisnip.com/api/v1/links", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINISNIP_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ originalUrl: "https://example.com/product/123", shortCode: "p123" }),
});
if (!res.ok) throw new Error(`MiniSnip returned ${res.status}`);
const { data } = await res.json();
console.log(data.shortUrl);
import os, requests

res = requests.post(
    "https://minisnip.com/api/v1/links",
    headers={"Authorization": f"Bearer {os.environ['MINISNIP_API_KEY']}"},
    json={"originalUrl": "https://example.com/product/123", "shortCode": "p123"},
    timeout=10,
)
res.raise_for_status()
print(res.json()["data"]["shortUrl"])

MiniSnip returns the new link inside a data object, with shortUrl, shortCode and the link's id for later edits.

Handling limits and errors

  • 429 Too Many Requests: you've hit the rate limit. Wait and retry, doubling the wait each time (1, 2, 4 seconds). Spread large jobs out, or use a bulk endpoint where there is one.
  • 400-range errors: something in the request is wrong, such as an invalid URL or an alias that's already taken. Show the message to whoever made the request instead of retrying.
  • 500-range errors and timeouts: retry a couple of times with a pause. Before retrying a create call, check whether the first attempt succeeded, so you don't make two links.
  • Store what you create. Save the short link next to the record it belongs to (the product, the customer, the campaign), and reuse it.

Keep your API key safe

  • Keep keys in environment variables or a secrets manager, never in code you commit or in browser JavaScript.
  • Use a separate key for each app or integration, so you can revoke one without breaking the others.
  • If a key leaks, delete it in your dashboard and create a new one straight away.
  • Check your logs now and then for requests you don't recognise, such as a sudden jump in links created.
  • Online shops: a short link and QR code for every product, printed on packaging and receipts.
  • Text message campaigns: a unique link per customer, so each click can be tied back to a message.
  • Events and print runs: links for every speaker, table card or poster, created from a spreadsheet.
  • Reports: pulling click counts into a dashboard or a client report each week.

How to choose

  • A one-off script, no account: is.gd.
  • Branded links by API on a free plan: Short.io (5 domains) or Dub (3 domains).
  • You already use Bitly: its API on your current plan; just watch the monthly request allowance.
  • Clean click data for reports or a dashboard: MiniSnip, because bots are filtered before the numbers reach you.

Whichever you pick, store the short links you create rather than shortening the same URL again, handle 429 (too many requests) responses with a pause and retry, and keep your API key on the server, never in a web page.

Frequently asked questions

Is there a free URL shortener API with no sign-up?

Yes. is.gd (and v.gd) create a short link with one GET request and no key, for example https://is.gd/create.php?format=simple&url=... It's meant for low-volume use and has per-IP limits.

Is the Bitly API free?

Bitly includes 1,000 API requests a month on its free plan, but the free plan itself creates only 5 links a month on Bitly's US page and shows no click data. Paid plans raise the allowance to 5,000, 25,000 and 50,000 requests a month.

Which URL shortener API supports custom domains for free?

Short.io (5 custom domains) and Dub (3 custom domains) include custom domains and API access on their free plans.

Can I create links on my own domain through the MiniSnip API?

Yes. Verify the domain in your dashboard, then pass its domainId when you create a link. The response returns the short link on your domain.

What should I do when a URL shortener API returns 429?

429 means you've hit the rate limit. Pause and retry with a growing wait (1, 2, 4 seconds), spread large jobs over time, and use a bulk endpoint if the service has one.

Does MiniSnip have an API?

Yes. Pro and Enterprise include a REST API with a limit of 60 requests a minute, covering links, bulk creation, click analytics with bots filtered out, QR codes and webhooks.