The Bitly API
Bitly is the most widely trusted link management platform in the world. By using the Bitly API, you will exercise the full power of your links through automated link customization, mobile deep linking, and click analytics.
Ready to jump right in? See the API reference for all endpoints.
While shortening links is Bitly
What you need to get started
-
Product knowledge. Check out our Help Center for basics. When working with end-users, be aware that some terms that they see in the web app are abbreviated on the backend. The two most common (and their API translations) are short links (Bitlinks) and custom domains (Branded Short Domains, or BSDs).
-
A Bitly account. Have access to an account and check your plan's link limits.
You
Shorten your first link!
-
Generate an access token.
-
You'll use the
POST
method to the/v4/shorten
endpoint. Append your access token as a header in your request. Here's an example:Authorization: Bearer {token}
.POST https://api-ssl.bitly.com/v4/shorten
{ "group_guid": "Ba1bc23dE4F", "domain": "bit.ly", "long_url": "https://dev.bitly.com/" }
A successful response will return the shortened link in the link object.
-
Go to our API reference to view all available endpoints.