GET
/
links
/
count
curl --request GET \
  --url https://api.dub.co/links/count \
  --header 'Authorization: Bearer <token>'
123

Authorizations

Authorization
string
headerrequired

Default authentication mechanism

Query Parameters

workspaceId
string
required

The ID of the workspace.

projectSlug
string
deprecated

The slug of the project. This field is deprecated – use workspaceId instead.

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

The tag ID to filter the links by. This field is deprecated – use tagIds instead.

tagIds

The tag IDs to filter the links by.

tagNames

The unique name of the tags assigned to the short link (case insensitive).

search
string

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

The number of links matching the query.