Get site analytics
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/analytics';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.deploybase.eu/api/v1/api/v1/projects/example/analytics \ --header 'Authorization: <Authorization>'Daily page views, top pages, referrer hosts, countries, not-found pages and crawlers for a project’s production hosts, aggregated from CDN logs. No IP, user agent or visitor identifier is ever stored. The window ends on the last processed UTC day (data_through) and is clamped to the plan’s history_days.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID
Query Parameters
Section titled “ Query Parameters ”Window length in days (1-761, default 30), clamped to the plan
Rows per ranked list (1-100, default 10)
Responses
Section titled “ Responses ”OK
object
object
object
object
Category is set on crawler rows only: ai_training, ai_search, ai_answers, ai (an AI crawler whose operator publishes no purpose), search, seo or monitor (“” for other bots).
object
Category is set on crawler rows only: ai_training, ai_search, ai_answers, ai (an AI crawler whose operator publishes no purpose), search, seo or monitor (“” for other bots).
DataThrough is the last complete UTC day the meter processed, or null before the first.
HistoryDays is the plan’s cap on how far back the window may reach.
object
Category is set on crawler rows only: ai_training, ai_search, ai_answers, ai (an AI crawler whose operator publishes no purpose), search, seo or monitor (“” for other bots).
object
Category is set on crawler rows only: ai_training, ai_search, ai_answers, ai (an AI crawler whose operator publishes no purpose), search, seo or monitor (“” for other bots).
object
Category is set on crawler rows only: ai_training, ai_search, ai_answers, ai (an AI crawler whose operator publishes no purpose), search, seo or monitor (“” for other bots).
object
object
object
Clamped is true when the plan’s history cap shortened the requested window.
Example
{ "data": { "series": [ { "day": "2026-09-27" } ], "window": { "days": 30, "from": "2026-08-29", "requested_days": 365, "to": "2026-09-27" } }}Bad Request
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Not Found
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live 174db30c built