Clicks feed
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#
| Field | Meaning |
|---|---|
id | The click’s id; use it as the cursor |
click | The click ID sent to the destination (?nlc=), if any |
timestamp | Unix seconds |
kind | person, bot, likely_bot or self |
reason | Why it isn’t a person, like preview, headers, repeat |
country, region, city | Where, as far as known |
device, browser, os | What they used |
referrer | The page they came from, if sent |
utm_source, utm_medium, utm_campaign | UTM tags on the short link |
route | The rule or A/B variant that sent them |
visitor | A one-way code for the visitor, the same across their clicks |
slug, domain, short_url, title, client_id | The 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=personto read people only.


