---
title: Bitly
slug: bitly
image: https://make-cxp-documentation.ams3.digitaloceanspaces.com/apps-center-icons/PREVIEW_bitly.png
createdAt: 2025-02-03T13:29:04.396Z
---

The Bitly modules enable you to shorten links, expand links and list links in your Bitly account.

# Get Started with Bitly

Prerequisites

- A Bitly account

In order to use Bitly with Make, it is necessary to have a Bitly account. If you do not have one, you can create a Bitly account at [bitly.com](https://bitly.com/pages/pricing).

# Connect Bitly to Make

To connect your Bitly account to Make follow the general instructions for Connecting to services.

After you click the *Continue* button, Make will redirect you to the Bitly website where you will be prompted to grant Make access to your account.

Confirm the dialog by clicking the *Allow* button.

# Bitly modules

## Actions

### Shorten URL

Shortens entered URL to the Bitlink.

| **Field**        | **Description**                                                    |
| ---------------- | ------------------------------------------------------------------ |
| **Connection**   | Establish a connection to your Bitly account.                      |
| **Long URL**     | Enter the URL you want to convert to the short link.               |
| **Organization** | Select the organization that contains a group you want to use.     |
| **Group**        | Select or map the group you want to shorten the link on behalf of. |

### Expand Bitlink URL

Retrieves the long URL from the short link.

| **Field**      | **Description**                                     |
| -------------- | --------------------------------------------------- |
| **Connection** | Establish a connection to your Bitly account.       |
| **Bitlink ID** | Enter (map) the short link you want to be expanded. |

### Make an API Call

Allows you to perform a custom API call.

| **Field**        | **Description**                                                                                                                                                                                                                                             |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection**   | Establish a connection to your Bitly account.                                                                                                                                                                                                               |
| **URL**          | Enter a path relative to `https://api-ssl.bitly.com`. E.g. `/v4/groups`                                                                                                                                                                                     |
| **Method**       | Select the HTTP method you want to use:<br /><br />GET: to retrieve information for an entry.<br />POST: to create a new entry.<br />PUT: to update/replace an existing entry.<br />PATCH: to make a partial entry update.<br />DELETE: to delete an entry. |
| **Headers**      | Enter the desired request headers. You don't have to add authorization headers; we already did that for you.                                                                                                                                                |
| **Query String** | Enter the request query string.                                                                                                                                                                                                                             |
| **Body**         | Enter the body content for your API call.                                                                                                                                                                                                                   |

### Example of Use - List Links

The following API call returns all links for the specified group in your Bitly account:

**URL:**

`/v4/groups/Bk2l8aVZxXv/bitlinks`

Replace "Bk2l8aVZxXv" by the ID of the group you want to retrieve links for.

**Method**:

`GET`

::Image[]{src="https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/X0BI7t1QiR7Z0d8_e3CIA_uuid-ec2e0eab-d43e-be5e-37e3-0fde8e9e5cdb.png" size="50" width="317" height="671" position="flex-start" caption="61d5a951d7a70.png" showCaption="true"}

Matches of the search can be found in the module's Output under Bundle \&gt; Body \&gt; links.

In our example, 3 links were returned:

::Image[]{src="https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/rnKwsKm2fwFIW4h0BvPfJ_uuid-4794f50f-6378-23e1-12e6-ca0ca5e00bc2.png" size="40" width="318" height="421" position="flex-start" showCaption="false"}

## Searches

### List Bitlinks

Retrieves Bitlinks for the specified group.

| **Field**        | **Description**                                                                |
| ---------------- | ------------------------------------------------------------------------------ |
| **Connection**   | Establish a connection to your Bitly account.                                  |
| **Organization** | Select the organization that contains a group you want to use.                 |
| **Group**        | Select or map the group you want to retrieve links for.                        |
| **Limit**        | Set the maximum number of results Make will return during one execution cycle. |

For the list of available endpoints, refer to the [Bitly API v4 Documentation](https://dev.bitly.com/v4_documentation.html).
