N Docs
← Back to site

Link stats

1 min readUpdated November 23, 2026

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": [] } }
FieldMeaning
linkThe link, as in Links
from, toThe period, in Unix seconds
clicksClicks from people
visitorsDifferent people
bots_and_otherBots, likely bots and the owner’s own clicks
conversions, conversion_valueConversions and their total value
by_dayClicks per day, for a chart
countries, devices, referrersTop 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.