---
title: "Get prompt rankings within a topic"
method: GET
path: "/api/mcp/projects/{projectId}/topics/prompt-rankings"
tags: ["Topics"]
---

# Get prompt rankings within a topic

`GET /api/mcp/projects/{projectId}/topics/prompt-rankings`

## Request

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

The prompt-level drill-down into one topic: for every prompt assigned to it, the brand's average rank, its visibility, and the competitors ranking above it. Answers which specific questions a weak topic is losing on. `topicId` is required — rankings are scoped to a single topic.

## Path parameters

- `projectId` string, uuid, required

## Query parameters

- `topicId` string, uuid, required
- `days` integer
- `from` string
- `to` string
- `platform` string
- `unbranded` 'true'
- `branded` 'true'

## Response `200`

Per-prompt rankings within the topic.

- TopicPromptRankingsResponse: Per-prompt brand rank inside one topic, with the competitors outranking you.
  - `project` object, required
    - `id` string, required
    - `name` string, required
    - `domain` string, nullable, required
    - `brandName` string, required
  - `topicId` string, required
  - `prompts` object[], required
    - `id` string, required
    - `text` string, required
    - `rank` number, nullable, required: Brand's average position; null when it never appeared (never 0).
    - `visibility` number, required
    - `responses` number, required
    - `topCompetitors` object[], required
      - `name` string, required
      - `domain` string, nullable, required
      - `rank` number, required
  - `totalPrompts` number, 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/topics/prompt-rankings/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)
