---
title: "Sync analytics traffic"
method: POST
path: "/projects/{project_id}/analytics/sync"
tags: ["analytics"]
---

# Sync analytics traffic

`POST /projects/{project_id}/analytics/sync`

## Request

- Base URL: `https://eu.bisibility.com/api/v1`
- URL: `https://eu.bisibility.com/api/v1/projects/{project_id}/analytics/sync`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `/api/auth/oauth2/authorize`, token URL `/api/auth/oauth2/token`, scopes: `api:write`)

## Path parameters

- `project_id` string, required: Public project ID; membership and token scope are enforced.

## Headers

- `Bisibility-API-Version` 'v1'
- `X-Bisibility-Source` 'sdk' | 'cli' | 'mcp'

## Response `200`

JSON response

- TrafficSyncSummary
  - `connections` integer, required
  - `keyword_snapshots` integer, required
  - `page_snapshots` integer, required
  - `project_id` string, required
  - `runs` TrafficSyncRun[], required
    - `connection_id` string, required
    - `error` string
    - `error_class` string
    - `provider` string, required
    - `status` 'succeeded_with_data' | 'succeeded_empty' | 'deferred_rate_limit' | 'failed' | 'not_applicable', required
    - `rows_fetched` integer, required
    - `rows_matched` integer, required
    - `rows_upserted` integer, required
    - `truncated` boolean, required
  - `skipped` object[], required
    - `provider` string, required
    - `reason` 'no_capability' | 'rate_limited', required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Unsupported API version
- `429`: Rate limited

## Changes

- **2026-10-19** `a6e1ec0dec82`: 1 breaking, 6 info
  - added the new path request parameter `project_id`
  - the endpoint scheme security `AppOAuth` was added to the API
  - media type `application/json` was changed to a more specific media type `application/problem+json` for the response status `400`
  - media type `application/json` was changed to a more specific media type `application/problem+json` for the response status `401`
  - …3 more

[Operation history](https://skmtc.dev/bisibility/apis/bisibility-public-api/changes/projects/:project_id/analytics/sync/post.md)

---

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