This API delivers insights about how visitors interact with your site, including page views and user engagement, helping you measure and optimize your content strategy.
GitBook Site Insights API is one of 65 APIs that GitBook publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.
This API exposes 7 JSON Schema definitions.
Tagged areas include site-insights. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, a JSON-LD context, and 7 JSON Schemas.
This API exposes
4 operations
across 4 paths,
and defines 70 schemas.
It is described by OpenAPI 3.2.0, at version 0.0.1-beta.
Requests are made against a single base URL, {host}/v1.
4 operations4 paths70 schemas1 GET3 POST
Metadata
The identity and technical contract details declared by the specification.
GitBook Site Insights API declares
6 security schemes
for authenticating requests.
It accepts HTTP bearer tokens (user).
It accepts HTTP bearer tokens (user-internal).
It accepts HTTP bearer tokens (user-staff).
It accepts HTTP bearer tokens (integration).
It accepts HTTP bearer tokens (integration-installation).
It supports OAuth 2.0 (oauth) using the authorizationCode flow, exposing 29 scopes.
By default, every request must be authenticated.
Paths & Operations 4
Across 4 paths, the API surfaces 4 operations — 1 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.
site-insights 4
This API delivers insights about how visitors interact with your site, including page views and user engagement, helping you measure and optimize your content strategy.
The contract defines 70 schemas that model the data the API accepts and returns. The most detailed are SiteInsightsEventLocation (9 properties), SiteInsightsQueryEventsAggregation (6 properties), SiteInsightsVisitorSegment (5 properties), ContentRefAnchor (4 properties). Each schema is shown below with its type and property counts.
SiteInsightsDisplayContext
string
Context in which the event was recorded.
SiteInsightsQueryEventsValues
SiteInsightsEventBase
object
3 properties2 required
SiteInsightsQueryRange
SiteInsightsLLMSVariant
string
PlainObject
ContentRefTag
object
3 properties2 required
ContentRefOpenAPI
object
2 properties2 required
SiteInsightsEventAskView
Event when a user views the ask UI.
SiteInsightsQueryOperator
string
SiteInsightsEventAgentFeedback
SiteInsightsQueryEventsFilter
ContentRefCollection
object
2 properties2 required
ContentRefPage
object
3 properties2 required
SiteInsightsEventRSSRequest
SiteInsightsMarkdownSource
string
How a page's markdown was requested. page-action means a reader used the site's page-actions menu — its copy or view-as-markdown action — rather than a client…
OpenAPIOperationPointer
object
Pointer to an operation in the OpenAPI spec.
2 properties2 required
SiteInsightsEventTrademarkClick
ContentRefSpace
object
2 properties2 required
SiteInsightsEventAskRateResponse
SiteInsightsEventAPIClientRequest
SiteInsightsVisitorOS
string
ContentRefUser
object
2 properties2 required
ContentRefReusableContent
object
3 properties2 required
SiteInsightsEventPageMarkdownRequest
SiteInsightsEventLLMSRequest
SiteInsightsQueryEventsAggregation
object
6 properties1 required
SiteInsightsQueryDateTimeColumn
object
2 properties1 required
SiteInsightsQueryRangePreset
string
SiteInsightsSession
object
Identifiers for a GitBook site session, used for analytics and adaptive content.
2 properties2 required
ContentRef
A relative reference to content in GitBook.
SiteInsightsVisitorBot
stringnull
SiteInsightsVisitorBrowser
string
SiteInsightsEventAskQuestion
SiteInsightsEventType
string
SiteInsightsQueryRangeCustom
object
2 properties2 required
SiteInsightsPageNotFoundType
string
Why a site URL returned a 404. conditional means the URL targets content gated by an adaptive-content condition, so the visitor lacked access to a page that ex…
SiteInsightsEventAdDisplay
SiteInsightsQueryEventsColumn
SiteInsightsQueryEventsAggregationResult
object
1 property1 required
SiteInsightsEventSession
Timestamp
string
ContentRefAnchor
object
4 properties2 required
SiteInsightsEventPageView
SiteInsightsEventSearchOpenResult
SiteInsightsEventLinkClick
ContentRefURL
object
2 properties2 required
EntityId
string
A unique entity identifier
SiteInsightsEventAPIClientOpen
SiteInsightsVisitorSegment
object
A segment of visitors with the same characteristics.
5 properties5 required
SiteInsightsEventSearchTypeQuery
SiteInsightsTrademarkPlacement
string
SiteInsightsLinkPosition
string
SiteInsightsEventMCPRequest
ContentRefFile
object
3 properties2 required
SiteInsightsAdPlacement
string
SiteInsightsEventPagePostFeedback
List
object
2 properties
AgentFeedbackSource
string
The surface the agent was running on when it submitted the feedback: the MCP server exposed by the site, or the site assistant.
URL
string
SiteInsightsEventAskTriggerClick
Event when a user clicks an entry point that opens the ask UI.
SiteInsightsEventSearchOpen
SiteInsightsEventAdClick
SiteInsightsAd
object
3 properties3 required
SiteInsightsVisitorDevice
string
AgentGoal
string
The end goal the agent is trying to accomplish on behalf of the user. Unlike the immediate query, the goal describes the broader task or outcome the agent is w…
PageFeedbackRating
string
SiteInsightsEventLocation
object
Location of the event.
9 properties7 required
SiteInsightsEventPagePostFeedbackComment
SiteInsightsEvent
Specification
The full machine-readable OpenAPI contract behind this narrative.
Every API here is available over the API and to AI agents over MCP. APIs is not yet its own endpoint on the v1 API. Reach this content through network search and the tag graph, or the MCP server below.
Installs https://mcp.apievangelist.com/mcp in Claude, Cursor, VS Code and the rest — one button, every client.
MCP tools for apis
4 tools reach this content
search_api_evangelistSearch every content type across the network at once.
find_relatedThe shared-tag relevance graph — what else covers this.
get_tagEverything one tag labels, across all content types.
guide_topicPRO — a curated bundle for a topic: area, guidance, rules, papers, stories, services.
A second provider on the same verified email joins the account you already have.
Your account
ⓘWhere this information came from
This is an independent, third-party profile of GitBook Site Insights API, published by
API Evangelist. We do not operate, host, resell, or
support these APIs, and we are not affiliated with or endorsed by the company unless stated above.
Everything here is built from publicly available information — the company's own site,
developer portal, documentation, public repositories, and the specifications it publishes for public use.
Nothing is obtained by breaching a system, defeating an access control, or using credentials.
The Kin Score and Agent Readiness rating are independently calculated assessments of a company's
public API artifacts, scored against a published rubric. They are not certifications,
endorsements, security assessments, or audits.
Corrections, re-scores, and removal are free — no partnership or purchase required, and
you do not need to justify the request. A removed company is recorded as unrated, never scored
zero for having asked. Acknowledgement within one business day; removal within two.
info@apievangelist.com
·
Read the full data-sourcing policy → On a security or compliance team? Put security in the subject line and
you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.