visibility
GET /v1/visibility/targets/{targetId}/rank-history
Every rank-tracking run over a period, as chart points.
Authentication
Send an API key as a bearer token. The endpoint checks sites.view; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/visibility/targets/{targetId}/rank-history \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Every finished rank run for a watched domain, newest first, over any period (P5-053), reduced to what a chart or a CSV row needs: the run's counters and one position per tracked phrase. A failed or still-running run is not a point. A null position is a gap (not ranked, or paid for and not yet collected), never zero. Paged: when next_before is not null, pass it as before (with the same since) for the next page; a page is never a cap on the answer. This never calls a provider, so it is free to read.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
targetId (path) | Uuid | Yes | The watched domain's id. |
since (query) | string | No | ISO 8601 date or date-time; only runs started at or after it. Omit for all time. |
before (query) | string | No | The cursor: the next_before of the previous page. Only runs started before it. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
points | VisibilityRankHistoryPoint[] | Yes | Newest first. |
phrases | object[] | Yes | The phrase text for every key on this page, newest wording. |
next_before | object | Yes | Pass as before for the next page; null when this page is the last. |
Errors this endpoint can return
401 · 403 · 404 · 422