Bitly
App · Links and QR Codes · 10 actions
Create short links with Bitly and look up where existing short links lead.
Actions
| Action | What it does |
|---|---|
| Archive link | Archive a link to tidy it out of your Bitly link list. |
| Delete link | Delete a short link so it stops working. |
| Expand a short link | Expand a Bitly short link into its original long web address. |
| Get link clicks | Count how many times a link was clicked, over the last so many days or since it was made. |
| Get link clicks by country | See which countries a link's clicks came from, most first. |
| Get link clicks by source | See where a link's clicks came from, such as a website, an app or direct (typed or scanned), most first. |
| Get link details | Look up one of your Bitly links: where it goes, its title, tags, when it was made and whether it is archived. |
| List links | List the links in your Bitly account, newest first. |
| Shorten a link | Turn a long web address into a short, shareable Bitly link. |
| Update link | Change a link's title or tags, or where it sends people. |
Archive link
Archive a link to tidy it out of your Bitly link list. The short link keeps working.
Inputs
- Short link
short_linktextRequired - One of your Bitly short links, such as bit.ly/abc123 or https://bit.ly/abc123.
Outputs
archivedtrue/false- true when the link is archived.
created_attext- When the link was made.
idtext- The link without https://, such as bit.ly/3xExAmp.
linktext- The short link.
long_urltext- Where the link sends people.
tagslist- The link's tags.
titletext- The link's label.
Example output
{
"archived": true,
"created_at": "2026-07-15T09:00:00+0000",
"id": "bit.ly/3xExAmp",
"link": "https://bit.ly/3xExAmp",
"long_url": "https://example.com/my-page",
"tags": [
"spring"
],
"title": "Spring sale landing page"
}Delete link
Delete a short link so it stops working. Bitly only deletes links that have never been changed since they were made; archive any other.
Inputs
- Short link
short_linktextRequired - One of your Bitly short links, such as bit.ly/abc123 or https://bit.ly/abc123.
Outputs
deletedtrue/false- true when Bitly deleted the link.
deleted_idslist- The links Bitly deleted, such as bit.ly/3xExAmp.
Example output
{
"deleted": true,
"deleted_ids": [
"bit.ly/3xExAmp"
]
}Expand a short link
Expand a Bitly short link into its original long web address.
Inputs
- Short link
short_linktextRequired - The Bitly short link to expand, for example bit.ly/abc123.
Outputs
idtextlinktextlong_urltext
Example output
{
"id": "bit.ly/3xExAmp",
"link": "https://bit.ly/3xExAmp",
"long_url": "https://example.com/my-page"
}Get link clicks
Count how many times a link was clicked, over the last so many days or since it was made.
Inputs
- Short link
short_linktextRequired - One of your Bitly short links, such as bit.ly/abc123 or https://bit.ly/abc123.
- Last how many days
daysnumber - Count the clicks of this many days, up to today, such as 7 for the last week. Leave blank for every click since the link was made.
Outputs
daysnumber- The days counted, or 0 for since the link was made.
total_clicksnumber- How many clicks.
Example output
{
"days": 7,
"total_clicks": 42
}Get link clicks by country
See which countries a link's clicks came from, most first.
Inputs
- Short link
short_linktextRequired - One of your Bitly short links, such as bit.ly/abc123 or https://bit.ly/abc123.
- Last how many days
daysnumber - Count the clicks of this many days, up to today, such as 7 for the last week. Leave blank for every click since the link was made.
Outputs
countrieslist- Each country with its clicks.
total_clicksnumber- The clicks listed, added up.
Example output
{
"countries": [
{
"clicks": 30,
"country": "US"
},
{
"clicks": 12,
"country": "CA"
}
],
"total_clicks": 42
}Get link clicks by source
See where a link's clicks came from, such as a website, an app or direct (typed or scanned), most first.
Inputs
- Short link
short_linktextRequired - One of your Bitly short links, such as bit.ly/abc123 or https://bit.ly/abc123.
- Last how many days
daysnumber - Count the clicks of this many days, up to today, such as 7 for the last week. Leave blank for every click since the link was made.
Outputs
referrerslist- Each source with its clicks.
total_clicksnumber- The clicks listed, added up.
Example output
{
"referrers": [
{
"clicks": 25,
"referrer": "direct"
},
{
"clicks": 17,
"referrer": "https://www.facebook.com/"
}
],
"total_clicks": 42
}Get link details
Look up one of your Bitly links: where it goes, its title, tags, when it was made and whether it is archived.
Inputs
- Short link
short_linktextRequired - One of your Bitly short links, such as bit.ly/abc123 or https://bit.ly/abc123.
Outputs
archivedtrue/false- true when the link is archived.
created_attext- When the link was made.
idtext- The link without https://, such as bit.ly/3xExAmp.
linktext- The short link.
long_urltext- Where the link sends people.
tagslist- The link's tags.
titletext- The link's label.
Example output
{
"archived": false,
"created_at": "2026-07-15T09:00:00+0000",
"id": "bit.ly/3xExAmp",
"link": "https://bit.ly/3xExAmp",
"long_url": "https://example.com/my-page",
"tags": [
"spring"
],
"title": "Spring sale landing page"
}List links
List the links in your Bitly account, newest first. You can search by words in the title or address, or keep to one tag.
Inputs
- Search for
searchtext - Only links whose title or address has these words. Leave blank for all.
- Tag
tagtext - Only links with this tag. Leave blank for any tag.
- Maximum results
countnumber - The most links to return, up to 100. Leave blank for 50.
- Include archived links
include_archivedtrue/false - Turn on to list archived links as well.
Outputs
countnumber- How many links were found.
linkslist- The links found, newest first.
Example output
{
"count": 1,
"links": [
{
"archived": false,
"created_at": "2026-07-15T09:00:00+0000",
"id": "bit.ly/3xExAmp",
"link": "https://bit.ly/3xExAmp",
"long_url": "https://example.com/my-page",
"tags": [
"spring"
],
"title": "Spring sale landing page"
}
]
}Shorten a link
Turn a long web address into a short, shareable Bitly link. You can optionally save a title to help you find the link later.
Inputs
- Long URL
long_urltextRequired - The full web address you want to shorten, for example https://example.com/my-page.
- Title
titletext - Optional. A label to help you recognize this link later in Bitly, for example "Spring sale landing page".
Outputs
idtextlinktextlong_urltexttitletext
Example output
{
"id": "bit.ly/3xExAmp",
"link": "https://bit.ly/3xExAmp",
"long_url": "https://example.com/my-page",
"title": "Spring sale landing page"
}Update link
Change a link's title or tags, or where it sends people. Changing where it goes keeps the same short link, so printed links and QR codes follow; Bitly counts it against your plan's monthly links.
Inputs
- Short link
short_linktextRequired - One of your Bitly short links, such as bit.ly/abc123 or https://bit.ly/abc123.
- New title
titletext - A new label for the link. Leave blank to keep it.
- Tags
tagstext - The link's tags, separated by commas, such as spring, flyer. These replace its tags. Leave blank to keep them.
- New destination
long_urltext - The web address the link should send people to from now on. Leave blank to keep it.
Outputs
archivedtrue/false- true when the link is archived.
created_attext- When the link was made.
idtext- The link without https://, such as bit.ly/3xExAmp.
linktext- The short link.
long_urltext- Where the link sends people.
tagslist- The link's tags.
titletext- The link's label.
Example output
{
"archived": false,
"created_at": "2026-07-15T09:00:00+0000",
"id": "bit.ly/3xExAmp",
"link": "https://bit.ly/3xExAmp",
"long_url": "https://example.com/my-page",
"tags": [
"spring"
],
"title": "Spring sale landing page"
}