---
title: "Get Ask site analytics"
method: GET
path: "/v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/analytics"
tags: ["Ask Sites"]
---

# Get Ask site analytics

`GET /v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/analytics`

## Request

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

Requests over time by client, the clients that asked, the questions with no answer (gaps), the top questions and the most recent questions.

## Path parameters

- `teamspaceId` string, uuid, required
- `siteKey` string, required

## Query parameters

- `days` '1' | '7' | '30'

## Response `200`

Analytics for the window

- object
  - `data` AskAnalytics, required
    - `series` object[], required: Daily points (`YYYY-MM-DD`), or hourly points (`YYYY-MM-DD HH:00`) for `days=1`.
      - `date` string, required
      - `total` integer, required
      - `unanswered` integer, required
      - `clients` object, required: Requests per client.
    - `clients` object[], required
      - `client` string, required
      - `count` integer, required
    - `gaps` object[], required: Questions with no answer, most asked first.
      - `question` string, required
      - `count` integer, required
    - `topQuestions` object[], required
      - `question` string, required
      - `count` integer, required
    - `recent` AskQuestion[], required
      - `id` string, required
      - `question` string, required
      - `client` 'anthropic' | 'openai' | 'perplexity' | 'cursor' | 'opencode' | 'meta' | 'mistral' | 'xai' | 'browser' | 'unknown', required: The client that asked, by company.
      - `answered` boolean, required: False when nothing matched.
      - `at` string, date-time, required

## Other responses

- `400`: Invalid teamspace id or days
- `401`: Unauthorized - Invalid or missing API key
- `403`: The caller cannot access this teamspace, or the key belongs to another teamspace
- `404`: No site with this key in this teamspace
- `500`: Internal Server Error

## Changes

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

[Operation history](https://skmtc.dev/context7/apis/context7-public-api/changes/v2/teamspaces/:teamspaceId/ask-sites/:siteKey/analytics/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)
