Skip to main content
GET
Get library analytics

Authorizations

Authorization
string
header
required

Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely. Every key can read the management API (/v2/teamspaces/*), except personal data: member and invitation emails, library requesters, visitor questions, Docs7 reader searches, conversations, feedback and feature requests, and the GitHub account behind a build. To read those or make changes there, the key must be created with Write access ticked; other keys get 403 write_access_required.

Path Parameters

teamspaceId
string<uuid>
required

Teamspace id (uuid).

owner
string
required

First segment of the library id /owner/repo (for example vercel in /vercel/next.js, websites in /websites/docs_example_com). Case-insensitive.

repo
string
required

Second segment of the library id /owner/repo. Case-insensitive.

Query Parameters

report
enum<string>
default:usage

usage (default): request counts. topics, countries: lifetime breakdowns. clients: daily unique MCP users per client.

Available options:
usage,
topics,
countries,
clients
days
integer
default:30

Days of daily data (usage, clients).

Required range: 1 <= x <= 365

Response

The report

report=usage: request counts.

current
object
required

Cumulative request counts.

daily
object[]
required

Per-day counts, oldest first, for up to days days.