Aller au contenu
Esc
↑↓naviguer↵ouvrir⌘Japerçu

Get clicks by link

GET/emails/metrics/links
Autorisation
AuthorizationJeton Bearer · headerrequis

A BillionSend API key (bs_…).

Paramètres de requête
start_datestring
end_datestring
domain_idstring<uuid>[]
max 100 éléments
broadcast_idstring<uuid>[]
max 100 éléments
limitinteger

Links to list, 1-100 (default 20)

min 1 · max 100
Réponses
200

Clicks in the range by the link that was clicked, most clicked first (BillionSend extension). A link is counted as its scheme, host and path: the query string and fragment are left out, so a link personalised per recipient is one row. clicked counts people; bot_clicked counts fetches by machines such as security scanners and link previews. Counts cover whole UTC hours like GET /emails/metrics, and clicks are counted by link from 2026-11-16 on. A key held to one domain always reads that domain only.

objectstringrequis
Valeurs autorisées :list
start_datestringrequis
end_datestringrequis
has_morebooleanrequis
dataobject[]requis
Afficher les propriétés
Tableau de object
linkstringrequis

Scheme, host and path of the clicked URL

clickedintegerrequis

Clicks by people

bot_clickedintegerrequis

Fetches by machines (security scanners, link previews)

401

Missing, malformed, unknown or revoked API key

statusCodenumberrequis
namestringrequis
messagestringrequis
403

Restricted API key: a sending_access key, or a key held to one domain that named another domain in domain_id

statusCodenumberrequis
namestringrequis
messagestringrequis
422

Validation error

statusCodenumberrequis
namestringrequis
messagestringrequis
429

Over the rate limit (rate_limit_exceeded, with Retry-After)

statusCodenumberrequis
namestringrequis
messagestringrequis
503

The statistics store is not answering; sending is unaffected. Retry shortly.

statusCodenumberrequis
namestringrequis
messagestringrequis
Essayer
Serveur
Autorisation
Paramètres
Requête
curl -X GET 'https://api.billionsend.com/emails/metrics/links' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Réponse
{
  "object": "list",
  "start_date": "string",
  "end_date": "string",
  "has_more": true,
  "data": [
    {
      "link": "string",
      "clicked": 0,
      "bot_clicked": 0
    }
  ]
}

Cette page vous a-t-elle été utile ?