Link stats
Read one link’s clicks, visitors and conversions for a period.
Request#
GET /api/links/{id}/stats with ?days= (default 30) or ?from=&to= (Unix seconds):
curl "https://api.yourbrand.com/api/links/22/stats?days=7" -H 'Authorization: Bearer nl_live_…' Answer#
{ "data": { "link": { "id": 22, … }, "from": 1792756904, "to": 1795348905, "clicks": 0, "visitors": 0, "bots_and_other": 1, "conversions": 0, "conversion_value": 0, "by_day": [], "top_links": [], "countries": [], "devices": [], "referrers": [] } } | Field | Meaning |
|---|---|
link | The link, as in Links |
from, to | The period, in Unix seconds |
clicks | Clicks from people |
visitors | Different people |
bots_and_other | Bots, likely bots and the owner’s own clicks |
conversions, conversion_value | Conversions and their total value |
by_day | Clicks per day, for a chart |
countries, devices, referrers | Top lists, people only |
clicks and the lists count people only; bots_and_other is everything else.
Use it for#
- A click count next to each link in your app.
- A small chart from
by_day. - A conversion rate:
conversions / clicks.
For all of a client’s links at once, use Analytics.


