---
title: "Check the analytics script"
method: GET
path: "/v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics-script"
tags: ["Docs7 Sites"]
---

# Check the analytics script

`GET /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics-script`

## Request

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

For a site hosted elsewhere: whether the page at its `analyticsUrl` serves the Docs7 analytics script tag. 400 `no_analytics_url` when the site has none.

## Response `200`

Script check

- object
  - `data` object

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid bearer
- `403`: Not allowed for this caller or plan
- `404`: Not found
- `500`: Internal error

## Changes

- **2026-10-28** `1fd763a39c5d`: 1 info
  - endpoint added

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