GET
https://api.dub.co
/
links
/
count
curl --request GET \
  --url https://api.dub.co/links/count \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "domain": "<string>",
    "key": "<string>",
    "url": "<string>",
    "archived": false,
    "expiresAt": "<string>",
    "password": "<string>",
    "proxy": false,
    "title": "<string>",
    "description": "<string>",
    "image": "<string>",
    "rewrite": false,
    "ios": "<string>",
    "android": "<string>",
    "geo": {},
    "publicStats": false,
    "tagId": "<string>",
    "tags": [
      {
        "id": "<string>",
        "name": "<string>",
        "color": "red"
      }
    ],
    "comments": "<string>",
    "shortLink": "<string>",
    "qrCode": "<string>",
    "utm_source": "<string>",
    "utm_medium": "<string>",
    "utm_campaign": "<string>",
    "utm_term": "<string>",
    "utm_content": "<string>",
    "userId": "<string>",
    "workspaceId": "<string>",
    "clicks": 0,
    "lastClicked": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "projectId": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

workspaceId
string
required

The ID of the workspace the link belongs to.

domain
string

The domain to filter the links by. E.g. ac.me. If not provided, all links for the workspace will be returned.

tagId
string
deprecated

[DEPRECATED] (use tagIds instead): The tag ID to filter the links by.

tagIds

The tag IDs to filter the links by.

The search term to filter the links by. The search term will be matched against the short link slug and the destination url.

userId
string

The user ID to filter the links by.

showArchived
boolean
default:false

Whether to include archived links in the response. Defaults to false if not provided.

withTags
boolean
default:false

Whether to include tags in the response. Defaults to false if not provided.

groupBy

The field to group the links by.

Available options:
domain

Response

200
application/json

A list of links

The response is of type object[].