---
title: "Get raw request logs"
method: GET
path: "/api/mcp/projects/{projectId}/traffic/logs"
tags: ["Traffic"]
---

# Get raw request logs

`GET /api/mcp/projects/{projectId}/traffic/logs`

## Request

- Base URL: `https://app.searchable.com`
- URL: `https://app.searchable.com/api/mcp/projects/{projectId}/traffic/logs`
- Auth: HTTP bearer

The raw request feed with the in-app Logs tab's filters (path, status code, bots-only, host, sitemap-only). Cursor-paginated: pass the previous response's `nextCursor.timestamp` and `nextCursor.event_id` back as `cursorTimestamp` and `cursorEventId`. `limit` defaults to 25, max 100.

`ip_address` and `user_agent` are deliberately not returned — the IP is personal data with no analytical value once `country` is present, and the user-agent is superseded by the resolved `botName` / `botVendor`.

## Path parameters

- `projectId` string, uuid, required

## Query parameters

- `days` integer
- `from` string
- `to` string
- `host` string
- `limit` integer
- `path` string
- `statusCode` integer
- `botsOnly` boolean
- `onlyInSitemap` boolean
- `cursorTimestamp` string
- `cursorEventId` string

## Response `200`

A page of raw request events.

- TrafficLogsResponse: Raw request feed. Never includes ip_address or user_agent.
  - `events` object[], required
    - `timestamp` string, date-time, required
    - `method` string, required
    - `host` string, required
    - `path` string, required
    - `statusCode` number, required
    - `responseTimeMs` number, required
    - `isBot` boolean, required
    - `botName` string, required
    - `botVendor` string, nullable, required
    - `botCategory` string, required
    - `country` string, required
    - `referrerDomain` string, required
  - `nextCursor` object: Pass BOTH halves as cursorTimestamp + cursorEventId for the next page.
    - `timestamp` string, required
    - `event_id` string, required
  - `hasMore` boolean, required
  - `dateRange` object, required
    - `from` string, date-time, required
    - `to` string, date-time, required

## Other responses

- `400`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.
- `401`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.
- `403`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.
- `404`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.
- `409`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.
- `429`: Rate limited. Usually the per-API-key REST limit (600 requests/minute); on Google-backed endpoints it can also relay an upstream Google rate limit. `Retry-After` (seconds) is present when the limit was applied by Searchable's own rate limiter; it may be absent when an upstream provider rate-limits.
- `504`: Error response. `code` is the machine-readable reason — see the [error reference](/api/errors) for the full catalog and remediation per code.

## Changes

- **2026-11-03** `28a5e2a65cd3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/searchable/apis/searchable-rest-api/changes/api/mcp/projects/:projectId/traffic/logs/get.md)

---

[API](https://skmtc.dev/searchable/apis/searchable-rest-api.md) - [All operations](https://skmtc.dev/searchable/apis/searchable-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/searchable/apis/searchable-rest-api/revisions/a1cc70e46e73?raw)
