API rate limits and reading new clicks
If you read your events through the API with an API token, for example to copy clicks into your own database or BI tool, this page covers how many requests you can make and the cheapest way to keep your copy up to date.
Using Routy in the browser? None of this applies to you. The limit only counts requests made with an API token.
The limit
Exports, reports and every other part of the API are not affected.
If you go over it
The request is refused with HTTP 429 Too Many Requests. The response has a
Retry-After header with the number of seconds to wait. Wait that long, then
send the same request again. Nothing else about your token changes, and the
next minute starts fresh.
If your job keeps hitting 429, it's almost always one of the patterns below.
Making fewer requests
Don't send one request per account. Leave accountId out and one request
covers all of your accounts. Add accountId only when you really want just one
account, or several (you can repeat it: accountId=1&accountId=2).
Don't re-read days you already have. A click never changes after Routy records it, so there's no need to fetch yesterday again. Use the clicks feed below instead, which returns each click once.
Reading new clicks: the clicks feed
The feed answers "which clicks are new since I last asked?". It returns every click exactly once, oldest first, in the order the clicks reached Routy. A click that reached us late still shows up, after the ones before it.
The first time, start the feed from the moment you want, for example the start of today:
GET /v1/reports/events/clicks?addedSince=2026-12-01T00:00:00Z&limit=1000
Every response has a nextCursor. Save it. To get the next page, or the
next time your job runs, send it back as after:
GET /v1/reports/events/clicks?after=<nextCursor>&limit=1000
Keep going until a page comes back with no clicks. That means you're up to
date. The empty page still has a nextCursor (the same one), so you can always
just store the latest nextCursor and send it on the next run.
A few details:
- Up to 1,000 clicks a page. A larger
limitis lowered to 1,000. - About a minute behind live. A click appears in the feed roughly a minute after it happens.
- Keep the same filters on every page. You can add filters such as
from,toortrafficSourceId, but send the same ones with everyafter. To change them, start a new feed withaddedSince. - Send
nextCursorback exactly as you got it. Store it and send it back unchanged. Don't edit it or build one yourself; an edited one is refused with HTTP 400. sortByandoffsetdon't apply to the feed. The feed has its own order, and sendingsortBywith it is refused with HTTP 400.
For most accounts a job that runs every hour needs one request.
Still stuck?
Open a support ticket with the token's name (never the token itself), the time of a refused request, and what your job is trying to fetch. We'll help you shape the requests.