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

get
https://api.gitbook.com/v1
/spaces/{spaceId}/insights/content
Get content analytics for a given space.
get
https://api.gitbook.com/v1
/spaces/{spaceId}/insights/search
Get an overview of the top search queries in a space.
Parameters
Path
spaceId*
string
The unique id of the space
Query
period
string
Responses
200: OK
Top queries searched on this space.
default
Unexpected Error
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 1mo ago