Lodol Docs

Bitly

API actions for the Bitly integration.

Bitly

Create short links with Bitly and look up where existing short links lead.


Expand a Bitly short link into its original long web address.

Parameters

ParameterTypeRequiredDescription
short_linkstringYesThe 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"
}

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

ParameterTypeRequiredDescription
long_urlstringYesThe full web address you want to shorten, for example https://example.com/my-page.
titlestringNoOptional. 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"
}

On this page