XeoRank Knowledge API

The knowledge API from XeoRank — 7 operation(s) for knowledge.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 10

POST /kb/ask Ask Knowledge Base #
GET /kb/stats Knowledge Base Stats #
POST /kb/index Index Knowledge Base Endpoint #
POST /knowledge/documents Add Document #
GET /knowledge/documents List Documents #
GET /knowledge/documents/{doc_id} Get Document #
PATCH /knowledge/documents/{doc_id} Update Document #
DELETE /knowledge/documents/{doc_id} Delete Document #
POST /knowledge/search Search #
GET /knowledge/context Context #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/xeorank-com:xeorank-com-knowledge-api"
All apis
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.

Get an API 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 Specification

xeorank-com-knowledge-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SEO Intelligence Engine Knowledge API
  version: 0.1.0
tags:
- name: Knowledge
paths:
  /kb/ask:
    post:
      tags:
      - Knowledge
      summary: Ask Knowledge Base
      description: Expert Q&A — returns a grounded answer from XeoRank's internal knowledge.
      operationId: ask_knowledge_base_kb_ask_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KBQueryRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KBAnswerResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /kb/stats:
    get:
      tags:
      - Knowledge
      summary: Knowledge Base Stats
      description: Return knowledge base indexing statistics.
      operationId: knowledge_base_stats_kb_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Knowledge Base Stats Kb Stats Get
      security:
      - APIKeyHeader: []
  /kb/index:
    post:
      tags:
      - Knowledge
      summary: Index Knowledge Base Endpoint
      description: Trigger knowledge base indexing (admin).
      operationId: index_knowledge_base_endpoint_kb_index_post
      security:
      - APIKeyHeader: []
      parameters:
      - 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/KBIndexResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /knowledge/documents:
    post:
      tags:
      - Knowledge
      summary: Add Document
      description: Add text, a URL or a small file. JSON body, or multipart with ``file``.
      operationId: add_document_knowledge_documents_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      - name: X-Via
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Via
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Add Document Knowledge Documents Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Knowledge
      summary: List Documents
      description: A brand's documents plus its workspace-wide ones (or only workspace-wide ones).
      operationId: list_documents_knowledge_documents_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Site Id
      - name: org_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Org Id
      - name: kind
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Kind
      - name: tag
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Tag
      - name: q
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Q
      - 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: true
                title: Response List Documents Knowledge Documents Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /knowledge/documents/{doc_id}:
    get:
      tags:
      - Knowledge
      summary: Get Document
      operationId: get_document_knowledge_documents__doc_id__get
      security:
      - APIKeyHeader: []
      parameters:
      - name: doc_id
        in: path
        required: true
        schema:
          type: string
          title: Doc 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: true
                title: Response Get Document Knowledge Documents  Doc Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Knowledge
      summary: Update Document
      operationId: update_document_knowledge_documents__doc_id__patch
      security:
      - APIKeyHeader: []
      parameters:
      - name: doc_id
        in: path
        required: true
        schema:
          type: string
          title: Doc Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      - name: X-Via
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Via
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocPatch'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Update Document Knowledge Documents  Doc Id  Patch
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Knowledge
      summary: Delete Document
      operationId: delete_document_knowledge_documents__doc_id__delete
      security:
      - APIKeyHeader: []
      parameters:
      - name: doc_id
        in: path
        required: true
        schema:
          type: string
          title: Doc Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      - name: X-Via
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Via
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Delete Document Knowledge Documents  Doc Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /knowledge/search:
    post:
      tags:
      - Knowledge
      summary: Search
      operationId: search_knowledge_search_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/SearchIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Search Knowledge Search Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /knowledge/context:
    get:
      tags:
      - Knowledge
      summary: Context
      description: 'What an agent should know before writing for a brand: every preference, the

        documents linked to the task, and the best matches for the task or query.'
      operationId: context_knowledge_context_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: query
        required: true
        schema:
          type: string
          title: Site Id
      - name: task_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Task Id
      - name: query
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Query
      - 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: true
                title: Response Context Knowledge Context Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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
    SearchIn:
      properties:
        site_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Site Id
        org_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Org Id
        query:
          type: string
          maxLength: 2000
          minLength: 1
          title: Query
        k:
          type: integer
          maximum: 20.0
          minimum: 1.0
          title: K
          default: 8
        kinds:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Kinds
        tags:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Tags
      type: object
      required:
      - query
      title: SearchIn
    KBQueryRequest:
      properties:
        question:
          type: string
          title: Question
        context_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Context Url
        topic:
          anyOf:
          - type: string
          - type: 'null'
          title: Topic
        n_sources:
          type: integer
          maximum: 20.0
          minimum: 1.0
          title: N Sources
          default: 5
      type: object
      required:
      - question
      title: KBQueryRequest
    KBAnswerResponse:
      properties:
        answer:
          type: string
          title: Answer
        grounded:
          type: boolean
          title: Grounded
          default: false
      type: object
      required:
      - answer
      title: KBAnswerResponse
    KBIndexResponse:
      properties:
        status:
          type: string
          title: Status
        chunks_indexed:
          additionalProperties:
            type: integer
          type: object
          title: Chunks Indexed
        total_chunks:
          type: integer
          title: Total Chunks
          default: 0
      type: object
      required:
      - status
      title: KBIndexResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DocPatch:
      properties:
        title:
          anyOf:
          - type: string
            maxLength: 300
          - type: 'null'
          title: Title
        kind:
          anyOf:
          - type: string
          - type: 'null'
          title: Kind
        pinned:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Pinned
        tags:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Tags
        text:
          anyOf:
          - type: string
          - type: 'null'
          title: Text
      type: object
      title: DocPatch
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Agent-Key