GET /v1/snapshots/content
Read the content snapshot without recording a rebuild request.
Last updated on
GET /v1/snapshots/content
Authentication
Send Authorization: Bearer with the full dbk_live_ or dbk_test_ secret. The prefix is a label. Authorization is the HMAC of the secret.
Parameters and response
Playground, code samples, and the response schema below are generated from docs/data-api.openapi.yaml.
Same body as GET /v1/reports/content. Does not insert a content watch.
Does not query Analytics Engine.
dataApiKeyAuthorizationBearer <dbk_live_ or dbk_test_>Public data API key. The dbk_live_ or dbk_test_ prefix is a label. Send the full secret. Missing, unknown, and revoked keys are 401. dbw_ and legacy dbr_ keys are 401. This response does not include Retry-After.
period*string"7d""28d"project_id?stringRequired when the key can read every site in the org. Optional when the key is limited to one site. A different site in the same org is 403. A missing project and a project in another org are both 404.
content_id?stringOne content id. Do not combine with content_ids.
content_ids?stringComma-separated content ids. At most 20. Do not combine with content_id.
Stored content snapshot.
application/json- response
report*stringperiod*string"7d""28d"items*array<>items <= 20curl -X GET 'https://api.databob.dev/v1/snapshots/content?period=7d'{ "report": "content", "period": "7d", "items": [ { "id": "string", "views": 0, "previous_views": 0, "enough_data": true } ]}