Bitly
API actions for the Bitly integration.
Bitly
Create short links with Bitly and look up where existing short links lead.
Expand a short link
Expand a Bitly short link into its original long web address.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
short_link | string | Yes | The Bitly short link to expand, for example bit.ly/abc123. |
Response
{
"id": "bit.ly/3xExAmp",
"link": "https://bit.ly/3xExAmp",
"long_url": "https://example.com/my-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.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
long_url | string | Yes | The full web address you want to shorten, for example https://example.com/my-page. |
title | string | No | Optional. A label to help you recognize this link later in Bitly, for example "Spring sale landing page". |
Response
{
"id": "bit.ly/3xExAmp",
"link": "https://bit.ly/3xExAmp",
"long_url": "https://example.com/my-page",
"title": "Spring sale landing page"
}