N Docs
← Back to site

Clicks feed

2 min readUpdated November 23, 2026

GET /clicks gives every click, oldest first: ?client=, ?after_id=, ?link_id=, ?since=, ?kind=person|bot|likely_bot|self, ?limit= (up to 1000). Pass meta.next_after_id as after_id next time.

{ "data": [{ "id": 1, "click": null, "link_id": 1, "timestamp": 1795346920, "kind": "likely_bot", "reason": "headers", "country": "DE", "region": "Berlin", "city": "Berlin", "device": "desktop", "browser": "chrome", "os": "other", "referrer": null, "utm_source": null, "utm_medium": null, "utm_campaign": null, "route": null, "visitor": "f3637dedc0412240", "slug": "2qdyqM", "domain": "go.yourbrand.com", "short_url": "https://go.yourbrand.com/2qdyqM", "title": null, "client_id": 0 }], "meta": { "next_after_id": 1, "limit": 1 } }

visitor is a one-way code for the visitor (never the IP); route is the rule or A/B variant that sent them.

Fields#

FieldMeaning
idThe click’s id; use it as the cursor
clickThe click ID sent to the destination (?nlc=), if any
timestampUnix seconds
kindperson, bot, likely_bot or self
reasonWhy it isn’t a person, like preview, headers, repeat
country, region, cityWhere, as far as known
device, browser, osWhat they used
referrerThe page they came from, if sent
utm_source, utm_medium, utm_campaignUTM tags on the short link
routeThe rule or A/B variant that sent them
visitorA one-way code for the visitor, the same across their clicks
slug, domain, short_url, title, client_idThe link

Sync clicks to your own database#

let after = await db.getCursor('nl_clicks') || 0;
while (true) {
  const res = await fetch(`${BASE}/partner/clicks?after_id=${after}&limit=1000`, { headers });
  const { data, meta } = await res.json();
  if (!data.length) break;
  await db.saveClicks(data);
  after = meta.next_after_id;
  await db.setCursor('nl_clicks', after);
}

Run it every few minutes. For clicks the moment they happen, use the click.created webhook instead.

Good to know#

  • Clicks older than your Keep clicks for setting are deleted and no longer in the feed.
  • Use ?kind=person to read people only.