---
title: "Get search and question analytics"
method: GET
path: "/v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/queries"
tags: ["Docs7 Analytics"]
---

# Get search and question analytics

`GET /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/queries`

## Request

- Base URL: `https://context7.com/api`
- URL: `https://context7.com/api/v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/queries`
- Auth: HTTP bearer

What readers search for, what agents ask the docs, and the assistant questions grouped by topic. Works for GitHub and CLI sites. Any member.

## Path parameters

- `teamspaceId` string, uuid, required
- `siteId` string, uuid, required

## Query parameters

- `days` integer
- `previews` '1'
- `summary` '1'

## Response `200`

The report

- object
  - `data` Docs7QueryAnalytics, required: With `summary=1` only `days`, `questions` and `dailyQuestions`; else the other fields.
    - `days` integer, required
    - `hosts` string[]: Hostnames the site serves now.
    - `hasPreviews` boolean: The site has branch previews.
    - `totals` object
      - `searches` integer
      - `noResultSearches` integer
      - `questions` integer
      - `conversations` integer
    - `topSearches` object[]
      - `query` string
      - `language` string
      - `version` string
      - `searches` integer
      - `visitors` integer
      - `noResults` integer
    - `categories` object[]: Assistant questions by topic.
      - `name` string
      - `questions` integer
      - `examples` string[]
    - `agentQuestions` object[]
      - `query` string
      - `source` 'WebMCP' | 'Ask endpoint'
      - `asked` integer
    - `questions` integer
    - `dailyQuestions` object[]
      - `date` string
      - `questions` integer

## Other responses

- `400`: Invalid teamspace or site id
- `401`: Missing or invalid bearer
- `403`: Not a member, missing role, or an API key of another teamspace
- `404`: No such site in this teamspace
- `500`: Internal error
- `503`: Analytics is not configured

## Changes

- **2026-10-22** `e17589fd8767`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/context7/apis/context7-public-api/changes/v2/teamspaces/:teamspaceId/sites/:siteId/analytics/queries/get.md)

---

[API](https://skmtc.dev/context7/apis/context7-public-api.md) - [All operations](https://skmtc.dev/context7/apis/context7-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/context7/apis/context7-public-api/revisions/945f7834fa8c?raw)
