RankControl Queries API
The Queries API from RankControl — 5 operation(s) for queries.
Operations 6
GET
/api/v1/queries/slots
How many queries you track against your plan's limit, as Tracked Questions…
#
The Queries API from RankControl — 5 operation(s) for queries.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/rctrl-com:rctrl-com-queries-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: RankControl Queries API
version: 1.0.0
description: 'The REST API behind the RankControl dashboard, CLI, and MCP server. Authenticate every request with an API key as a Bearer header; keys are minted in Settings > API and carry scopes (see each operation''s x-required-scope). Full docs: https://rctrl.com/docs/api. MCP endpoint for AI agents: https://api.rctrl.com/mcp (OAuth 2.1, see https://rctrl.com/docs/mcp).'
contact:
email: help@rctrl.com
url: https://rctrl.com/contact
termsOfService: https://rctrl.com/terms
servers:
- url: https://api.rctrl.com
security:
- bearerAuth: []
tags:
- name: Queries
paths:
/api/v1/queries:
get:
operationId: list_tracked_queries
summary: The workspace's tracked queries — the questions RankControl checks weekly…
description: Requires the `read:citations` scope.
x-required-scope: read:citations
x-rate-limit-per-minute: 30
security:
- bearerAuth: []
responses:
'200':
description: Success; the payload is wrapped in a data envelope
content:
application/json:
schema:
type: object
properties:
data: {}
'400':
description: Bad input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: API key lacks the required scope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found in this workspace
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited; the body includes a retryAfterMs hint
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: topic
in: query
required: false
schema:
type: string
description: 'One topic''s questions only: its id or name from get_topics, or none for questions with no topic. Leave it out for the whole workspace.'
- name: engines
in: query
required: false
schema:
type: string
description: 'Only these engines'' answers: their ids, comma-separated (chatgpt, perplexity, claude, gemini, grok, google_ai_mode, google_ai_overview). Leave it out for all seven.'
tags:
- Queries
post:
operationId: add_tracked_query
summary: Add a query.
description: Requires the `write:content` scope.
x-required-scope: write:content
x-rate-limit-per-minute: 10
security:
- bearerAuth: []
responses:
'200':
description: Success; the payload is wrapped in a data envelope
content:
application/json:
schema:
type: object
properties:
data: {}
'400':
description: Bad input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: API key lacks the required scope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found in this workspace
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited; the body includes a retryAfterMs hint
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
queryText:
type: string
description: The search/AI query to track
coveredByContentId:
type: string
description: contentPage id of the article that already answers this query
required:
- queryText
tags:
- Queries
/api/v1/queries/remove:
post:
operationId: remove_tracked_query
summary: Delete a query. Frees its tracking slot if it was tracked
description: Requires the `write:content` scope.
x-required-scope: write:content
x-rate-limit-per-minute: 20
security:
- bearerAuth: []
responses:
'200':
description: Success; the payload is wrapped in a data envelope
content:
application/json:
schema:
type: object
properties:
data: {}
'400':
description: Bad input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: API key lacks the required scope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found in this workspace
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited; the body includes a retryAfterMs hint
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
queryId:
type: string
description: Query id from get_tracked_queries
required:
- queryId
tags:
- Queries
/api/v1/queries/set-tracking:
post:
operationId: set_query_tracking
summary: Pause or resume weekly AI citation checks on a saved query.
description: Requires the `write:content` scope.
x-required-scope: write:content
x-rate-limit-per-minute: 20
security:
- bearerAuth: []
responses:
'200':
description: Success; the payload is wrapped in a data envelope
content:
application/json:
schema:
type: object
properties:
data: {}
'400':
description: Bad input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: API key lacks the required scope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found in this workspace
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited; the body includes a retryAfterMs hint
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
queryId:
type: string
description: Query id from get_tracked_queries
tracked:
type: boolean
description: true to track weekly, false to pause
required:
- queryId
- tracked
tags:
- Queries
/api/v1/queries/slots:
get:
operationId: get_query_slots
summary: How many queries you track against your plan's limit, as Tracked Questions…
description: Requires the `read:citations` scope.
x-required-scope: read:citations
x-rate-limit-per-minute: 30
security:
- bearerAuth: []
responses:
'200':
description: Success; the payload is wrapped in a data envelope
content:
application/json:
schema:
type: object
properties:
data: {}
'400':
description: Bad input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: API key lacks the required scope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found in this workspace
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited; the body includes a retryAfterMs hint
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Queries
/api/v1/queries/update:
post:
operationId: update_tracked_query
summary: Edit a tracked query's text. A spelling fix keeps its history.
description: Requires the `write:content` scope.
x-required-scope: write:content
x-rate-limit-per-minute: 20
security:
- bearerAuth: []
responses:
'200':
description: Success; the payload is wrapped in a data envelope
content:
application/json:
schema:
type: object
properties:
data: {}
'400':
description: Bad input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: API key lacks the required scope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found in this workspace
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited; the body includes a retryAfterMs hint
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
queryId:
type: string
description: Query id from get_tracked_queries
queryText:
type: string
description: New query text (min 5 characters)
required:
- queryId
- queryText
tags:
- Queries
components:
schemas:
Error:
type: object
properties:
error:
type: string
required:
- error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key from Settings > API, e.g. `Authorization: Bearer rctrl_pk_...`'