# Dub

> Create short links with Dub and look up where existing Dub short links lead.

App · Links and QR Codes · 2 actions. Web page: https://docs.lodol.com/docs/integrations/dub

## Actions

### Expand a short link

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

**Inputs**

- Short link (`short_link`, text, required): The Dub short link to expand, for example https://dub.sh/abc123.

**Outputs**

- `domain` (text)
- `id` (text)
- `key` (text)
- `long_url` (text)
- `short_link` (text)

**Example output**

```json
{
  "domain": "dub.sh",
  "id": "link_abc",
  "key": "abc123",
  "long_url": "https://example.com/my-page",
  "short_link": "https://dub.sh/abc123"
}
```

### Shorten a link

Turn a long web address into a short, shareable Dub link. You can optionally choose which short-link domain to use.

**Inputs**

- Long URL (`long_url`, text, required): The full web address you want to shorten.
- Domain (`domain`, text): Optional. The short-link domain to use. Leave blank to use your Dub workspace's default domain (dub.sh on the free plan).

**Outputs**

- `domain` (text)
- `id` (text)
- `key` (text)
- `long_url` (text)
- `short_link` (text)

**Example output**

```json
{
  "domain": "dub.sh",
  "id": "link_abc",
  "key": "abc123",
  "long_url": "https://example.com/my-page",
  "short_link": "https://dub.sh/abc123"
}
```
