URL shorteners

Bitly API

by dev.bitly.com

URL shorteners Added on February 6th, 2011 Checked and working on November 15th, 2026
Visit dev.bitly.com →

What it does

The Bitly API lets you shorten long links, create branded short links on your own domain and generate QR codes, from your own software. You can also update link titles and tags, and get click statistics per link, by country, referrer and day. Responses are JSON. Free plan with a monthly limit on links; paid plans for more links, custom domains and full statistics. An official MCP server at https://api-ssl.bitly.com/v4/mcp lets AI agents use Bitly on some paid plans.
  • API
  • HTTP-GET
  • JSON
  • Javascript
  • MCP
  • REST

At a glance

API key
Needed, free · More APIs with a free key
Pricing
Free plan with a monthly limit on links; paid plans for more links, custom domains and full statistics.
From the browser
Yes (CORS)
Formats
JSON
Interface
REST, HTTP-GET, Javascript, MCP
Provider
dev.bitly.com
Last checked
Working on November 15th, 2026

More information: https://dev.bitly.com/

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

Listed on Free Web Services

dev.bitly.com
Bitly API

Example request

curl

curl 'https://api-ssl.bitly.com/v4/user' \
  -H 'Authorization: Bearer YOUR_API_KEY'

JavaScript

const response = await fetch("https://api-ssl.bitly.com/v4/user", {
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://api-ssl.bitly.com/v4/user",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

Did it work for you?

Tell us what you found when you tried Bitly API.