Ask or search…
K
Comment on page

Insights

Insights in GitBook are the entity for analytics coming from a site.

GET content analytics for a specific space

get
https://api.gitbook.com/v1
/spaces/{spaceId}/insights/content
Get content analytics for a given space.

GET search analytics for a specific space

GET page traffic analytics for a specific space

get
https://api.gitbook.com/v1
/spaces/{spaceId}/insights/traffic
Get traffic page views for a given space

Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.

Parameters
Path
spaceId*
string
The unique id of the space
Query
interval
string
Responses
200: OK
Traffic over time for the given space.
default
Unexpected Error
Last modified 23d ago