XeoRank Keywords API
The keywords API from XeoRank — 6 operation(s) for keywords.
The keywords API from XeoRank — 6 operation(s) for keywords.
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/xeorank-com:xeorank-com-keywords-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: SEO Intelligence Engine Keywords API
version: 0.1.0
tags:
- name: Keywords
paths:
/keywords/sessions:
get:
tags:
- Keywords
summary: List Sessions
description: 'List the user''s keyword research sessions, optionally scoped to one brand.
limit is applied in SQL. Callers have been sending it since the MCP tool was
written; it was accepted and ignored, so every call fanned out a per-session
message count over the user''s entire history.'
operationId: list_sessions_keywords_sessions_get
security:
- APIKeyHeader: []
parameters:
- name: email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Email
- name: site_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Site Id
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 25
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/KeywordSessionOut'
title: Response List Sessions Keywords Sessions Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Keywords
summary: Create Session
description: 'Create a new keyword research session.
Checks the ``keyword_sessions.monthly`` billing cap.'
operationId: create_session_keywords_sessions_post
security:
- APIKeyHeader: []
parameters:
- name: email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Email
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateSessionRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/KeywordSessionOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/keywords/sessions/{session_id}:
get:
tags:
- Keywords
summary: Get Session
description: Get a keyword session with its messages and clusters.
operationId: get_session_keywords_sessions__session_id__get
security:
- APIKeyHeader: []
parameters:
- name: session_id
in: path
required: true
schema:
type: string
title: Session Id
- name: email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Email
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/KeywordSessionDetailOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Keywords
summary: Delete Session
description: Delete a keyword research session and all its messages/clusters.
operationId: delete_session_keywords_sessions__session_id__delete
security:
- APIKeyHeader: []
parameters:
- name: session_id
in: path
required: true
schema:
type: string
title: Session Id
- name: email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Email
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties:
type: boolean
title: Response Delete Session Keywords Sessions Session Id Delete
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/keywords/sessions/{session_id}/chat:
post:
tags:
- Keywords
summary: Chat
description: 'Streaming chat endpoint.
Saves the user message before streaming, saves the assistant message
after the stream completes. Returns SSE (``text/event-stream``).
Free plan: 20 messages per session. Pro plan: unlimited.'
operationId: chat_keywords_sessions__session_id__chat_post
security:
- APIKeyHeader: []
parameters:
- name: session_id
in: path
required: true
schema:
type: string
title: Session Id
- name: email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Email
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/api__routers__keywords__ChatRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/keywords/sessions/{session_id}/clusters:
post:
tags:
- Keywords
summary: Save Clusters
description: Save extracted keyword clusters for a session.
operationId: save_clusters_keywords_sessions__session_id__clusters_post
security:
- APIKeyHeader: []
parameters:
- name: session_id
in: path
required: true
schema:
type: string
title: Session Id
- name: email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Email
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SaveClustersRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/KeywordClusterOut'
title: Response Save Clusters Keywords Sessions Session Id Clusters Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- Keywords
summary: Get Clusters
description: Get all keyword clusters for a session.
operationId: get_clusters_keywords_sessions__session_id__clusters_get
security:
- APIKeyHeader: []
parameters:
- name: session_id
in: path
required: true
schema:
type: string
title: Session Id
- name: email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Email
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/KeywordClusterOut'
title: Response Get Clusters Keywords Sessions Session Id Clusters Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/keywords/sessions/{session_id}/promote:
post:
tags:
- Keywords
summary: Promote Session
description: 'RECORD a research session against a brand: promote its clusters into the
brand''s tracked keywords (source=''research'', keeps cluster + intent +
session provenance). Pure storage — no external calls.'
operationId: promote_session_keywords_sessions__session_id__promote_post
security:
- APIKeyHeader: []
parameters:
- name: session_id
in: path
required: true
schema:
type: string
title: Session Id
- name: email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Email
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PromoteRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PromoteResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/keywords/domain-profile:
get:
tags:
- Keywords
summary: Domain Profile
description: 'Traffic, ranking keywords and URLs for ANY domain — no site ownership,
no GSC/GA connection. The self-serve version of the domain_keyword_profile
/ discover_competitors MCP tools, previously reachable only by asking an
AI agent for it; this puts the same DataForSEO-backed lookup behind a
plain page a person can use directly.
Two Labs calls, ~$0.07 total — gated to paid plans and rate-limited per
user, the same way the agent-only version already reasoned about cost.'
operationId: domain_profile_keywords_domain_profile_get
security:
- APIKeyHeader: []
parameters:
- name: domain
in: query
required: true
schema:
type: string
minLength: 3
title: Domain
- name: limit
in: query
required: false
schema:
type: integer
maximum: 300
minimum: 1
default: 100
title: Limit
- name: email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Email
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DomainProfileOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
KeywordMessageOut:
properties:
id:
type: string
title: Id
role:
type: string
title: Role
content:
type: string
title: Content
created_at:
title: Created At
type: object
required:
- id
- role
- content
- created_at
title: KeywordMessageOut
CreateSessionRequest:
properties:
site_id:
anyOf:
- type: string
- type: 'null'
title: Site Id
title:
anyOf:
- type: string
- type: 'null'
title: Title
topic:
anyOf:
- type: string
- type: 'null'
title: Topic
country:
anyOf:
- type: string
- type: 'null'
title: Country
language:
anyOf:
- type: string
- type: 'null'
title: Language
type: object
title: CreateSessionRequest
DomainProfileOut:
properties:
domain:
type: string
title: Domain
estimated_visits:
anyOf:
- type: integer
- type: 'null'
title: Estimated Visits
organic_traffic:
anyOf:
- type: integer
- type: 'null'
title: Organic Traffic
paid_traffic:
anyOf:
- type: integer
- type: 'null'
title: Paid Traffic
organic_keywords_count:
anyOf:
- type: integer
- type: 'null'
title: Organic Keywords Count
backlinks_count:
anyOf:
- type: integer
- type: 'null'
title: Backlinks Count
referring_domains:
anyOf:
- type: integer
- type: 'null'
title: Referring Domains
traffic_trend:
anyOf:
- type: string
- type: 'null'
title: Traffic Trend
keywords:
items:
$ref: '#/components/schemas/DomainRankedKeywordOut'
type: array
title: Keywords
default: []
keywords_returned:
type: integer
title: Keywords Returned
default: 0
note:
type: string
title: Note
default: Source is DataForSEO's index of Google — it lags a live SERP and is not device- or location-specific.
type: object
required:
- domain
title: DomainProfileOut
description: 'SEMrush-style domain overview: works for ANY domain, no site ownership
or GSC/GA connection required — just DataForSEO''s index of Google.'
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
PromoteRequest:
properties:
site_id:
anyOf:
- type: string
- type: 'null'
title: Site Id
cluster_ids:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Cluster Ids
max_keywords:
type: integer
maximum: 500.0
minimum: 1.0
title: Max Keywords
default: 200
type: object
title: PromoteRequest
KeywordSessionOut:
properties:
id:
type: string
title: Id
site_id:
anyOf:
- type: string
- type: 'null'
title: Site Id
title:
anyOf:
- type: string
- type: 'null'
title: Title
status:
type: string
title: Status
created_at:
title: Created At
updated_at:
title: Updated At
message_count:
type: integer
title: Message Count
default: 0
type: object
required:
- id
- status
- created_at
- updated_at
title: KeywordSessionOut
KeywordSessionDetailOut:
properties:
id:
type: string
title: Id
site_id:
anyOf:
- type: string
- type: 'null'
title: Site Id
title:
anyOf:
- type: string
- type: 'null'
title: Title
status:
type: string
title: Status
created_at:
title: Created At
updated_at:
title: Updated At
message_count:
type: integer
title: Message Count
default: 0
messages:
items:
$ref: '#/components/schemas/KeywordMessageOut'
type: array
title: Messages
default: []
clusters:
items:
$ref: '#/components/schemas/KeywordClusterOut'
type: array
title: Clusters
default: []
type: object
required:
- id
- status
- created_at
- updated_at
title: KeywordSessionDetailOut
PromoteResponse:
properties:
added:
type: integer
title: Added
duplicates:
type: integer
title: Duplicates
clusters_promoted:
type: integer
title: Clusters Promoted
site_id:
type: string
title: Site Id
keywords:
items:
type: string
type: array
title: Keywords
default: []
next_step:
anyOf:
- type: string
- type: 'null'
title: Next Step
type: object
required:
- added
- duplicates
- clusters_promoted
- site_id
title: PromoteResponse
KeywordClusterOut:
properties:
id:
type: string
title: Id
cluster_name:
type: string
title: Cluster Name
primary_keyword:
type: string
title: Primary Keyword
keywords:
title: Keywords
intent:
anyOf:
- type: string
- type: 'null'
title: Intent
content_brief:
anyOf:
- type: string
- type: 'null'
title: Content Brief
created_at:
title: Created At
type: object
required:
- id
- cluster_name
- primary_keyword
- keywords
- created_at
title: KeywordClusterOut
SaveClustersRequest:
properties:
clusters:
items:
additionalProperties: true
type: object
type: array
title: Clusters
type: object
required:
- clusters
title: SaveClustersRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
DomainRankedKeywordOut:
properties:
keyword:
type: string
title: Keyword
search_volume:
anyOf:
- type: integer
- type: 'null'
title: Search Volume
position:
anyOf:
- type: integer
- type: 'null'
title: Position
url:
anyOf:
- type: string
- type: 'null'
title: Url
type: object
required:
- keyword
title: DomainRankedKeywordOut
api__routers__keywords__ChatRequest:
properties:
message:
type: string
maxLength: 4000
minLength: 1
title: Message
type: object
required:
- message
title: ChatRequest
securitySchemes:
APIKeyHeader:
type: apiKey
in: header
name: X-Agent-Key