visibility

GET /v1/visibility/targets/{targetId}/metric-history

Every domain-score, backlink or brand-mention run over a period, as chart points.

All visibility endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

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}/metric-history?kind=<kind> \
  -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 run of one tool 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 in values and, for brand mentions, the counts per tracked phrase in series. A failed, still running or unmeasured run is not a point. A null value is a gap, never zero. Paged: when next_before is not null, pass it as before (with the same kind and 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

NameTypeRequiredWhat it is
targetId (path)UuidYesThe watched domain's id.
kind (query)string<domain_score, backlinks, brand_mentions>YesWhich tool's history to read.
since (query)stringNoISO 8601 date or date-time; only runs started at or after it. Omit for all time.
before (query)stringNoThe cursor: the next_before of the previous page. Only runs started before it.

Response

NameTypeRequiredWhat it is
kindstring<domain_score, backlinks, brand_mentions>Yes—
pointsVisibilityMetricHistoryPoint[]YesNewest first.
phrasesobject[]YesBrand mentions only; the phrase text for every key on this page.
next_beforeobjectYesPass as before for the next page; null when this page is the last.

Errors this endpoint can return

401 · 403 · 404 · 422