# Zapier — Bitly Integrations
> zapier.com/apps/bitly/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Identity
Bitly is a link management and shortener platform.

- App slug: bitly
- Operations published here: 8 (4 events, 2 functions, 1 query, 1 search-or-write action)

## Authentication
Zapier connects to Bitly via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection bitly
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/bitly/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect Bitly through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · create_qr`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "bitly", owner: "me" });

const { data } = await zapier.runAction({
  app: "bitly",
  actionType: "write",
  action: "create_qr",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action bitly write create_qr \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing Bitly's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "bitly" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions bitly --page-size 50 --max-items 200 --json
```

### Events (4)

Events fire when something happens in Bitly. Use them to start a run.

#### New Campaign
Triggers when a new campaign is created in your Bitly account (This trigger is only available for Bitly Enterprise users).

- Type: read · Key: `campaign`
- Requires: nothing
- SDK: `runAction({ app: "bitly", actionType: "read", action: "campaign" })`
- CLI: `npx zapier-sdk run-action bitly read campaign`

#### New Bitlink
Triggers when you create a new Bitlink.

- Type: read · Key: `link`
- Requires: nothing
- Optional: group, query
- SDK: `runAction({ app: "bitly", actionType: "read", action: "link" })`
- CLI: `npx zapier-sdk run-action bitly read link`

#### New Referring URL
Triggers when a new referring URL appears in your link's click history.

- Type: read · Key: `referrer`
- Requires: link
- Optional: Help, clicks
- SDK: `runAction({ app: "bitly", actionType: "read", action: "referrer" })`
- CLI: `npx zapier-sdk run-action bitly read referrer`

#### New Referring Domain
Triggers when a new referring domain appears in your link's click history.

- Type: read · Key: `referring_domain`
- Requires: link
- Optional: Help, clicks
- SDK: `runAction({ app: "bitly", actionType: "read", action: "referring_domain" })`
- CLI: `npx zapier-sdk run-action bitly read referring_domain`

### Functions (2)

Functions change something in Bitly.

#### Create QR Code
Creates a QR Code that is saved to your Bitly account

- Type: write · Key: `create_qr`
- Requires: destinationInput
- Optional: groupGUID, title, dotPatternColor
- SDK: `runAction({ app: "bitly", actionType: "write", action: "create_qr" })`
- CLI: `npx zapier-sdk run-action bitly write create_qr`

#### Create Bitlink
Saves a Bitlink to your user history in Bitly. Returns a shortened URL.

- Type: write · Key: `shorten_url`
- Requires: longUrl
- Optional: group, title
- SDK: `runAction({ app: "bitly", actionType: "write", action: "shorten_url" })`
- CLI: `npx zapier-sdk run-action bitly write shorten_url`

### Queries (1)

Queries read from Bitly and return data. They change nothing.

#### Find Bitlink
Finds an existing Bitlink in your account.

- Type: search · Key: `find_bitlink`
- Requires: longUrl
- Optional: group
- SDK: `runAction({ app: "bitly", actionType: "search", action: "find_bitlink" })`
- CLI: `npx zapier-sdk run-action bitly search find_bitlink`

### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

#### Find or Create Bitlink
Find or Create Bitlink

- Type: search_or_write · Key: `find_bitlink`
- Requires: longUrl
- Optional: group, title
- SDK: `runAction({ app: "bitly", actionType: "search_or_write", action: "find_bitlink" })`
- CLI: `npx zapier-sdk run-action bitly search_or_write find_bitlink`

## Popular integrations
- [Bitly + Airtable](zapier.com/apps/bitly/integrations/airtable.md)
- [Bitly + Google Forms](zapier.com/apps/bitly/integrations/google-forms.md)
- [Bitly + Google Docs](zapier.com/apps/bitly/integrations/google-docs.md)
- [Bitly + Salesforce](zapier.com/apps/bitly/integrations/salesforce.md)
- [Bitly + HubSpot](zapier.com/apps/bitly/integrations/hubspot.md)
- [Bitly + Zoom](zapier.com/apps/bitly/integrations/zoom.md)
- [Bitly + Notion](zapier.com/apps/bitly/integrations/notion.md)
- [Bitly + Gravity Forms](zapier.com/apps/bitly/integrations/gravity-forms.md)
- [Bitly + Typeform](zapier.com/apps/bitly/integrations/typeform.md)
- [Bitly + ClickUp](zapier.com/apps/bitly/integrations/clickup.md)
- [Bitly + PandaDoc](zapier.com/apps/bitly/integrations/pandadoc.md)
- [Bitly + monday.com](zapier.com/apps/bitly/integrations/monday.md)
- [Bitly + Google Slides](zapier.com/apps/bitly/integrations/google-slides.md)
- [Bitly + Microsoft Excel](zapier.com/apps/bitly/integrations/excel.md)
- [Bitly + Google Sheets](zapier.com/apps/bitly/integrations/google-sheets.md)
- [Bitly + Google Drive](zapier.com/apps/bitly/integrations/google-drive.md)
- [Bitly + Google Calendar](zapier.com/apps/bitly/integrations/google-calendar.md)
- [Bitly + Google Analytics 4](zapier.com/apps/bitly/integrations/google-analytics-4.md)
- [Bitly + Mailchimp](zapier.com/apps/bitly/integrations/mailchimp.md)
- [Bitly + Quiz Maker](zapier.com/apps/bitly/integrations/quiz-maker.md)
- [Bitly + YouCanBookMe](zapier.com/apps/bitly/integrations/youcanbookme.md)
- [Bitly + Shopify](zapier.com/apps/bitly/integrations/shopify.md)
- [Bitly + ActiveCampaign](zapier.com/apps/bitly/integrations/activecampaign.md)
- [Bitly + Facebook Pages](zapier.com/apps/bitly/integrations/facebook-pages.md)
- [Bitly + Pipedrive](zapier.com/apps/bitly/integrations/pipedrive.md)
- [Bitly + Constant Contact](zapier.com/apps/bitly/integrations/constant-contact.md)
- [Bitly + Discord](zapier.com/apps/bitly/integrations/discord.md)
- [Bitly + Jotform](zapier.com/apps/bitly/integrations/jotform.md)
- [Bitly + YouTube](zapier.com/apps/bitly/integrations/youtube.md)
- [Bitly + Salesmate](zapier.com/apps/bitly/integrations/salesmate.md)

## Links
- Full app page: zapier.com/apps/bitly/integrations
- MCP: zapier.com/mcp/bitly
- SDK: npmjs.com/package/@zapier/zapier-sdk