> ## Documentation Index
> Fetch the complete documentation index at: https://docs.surnex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Top AI-cited domains

> Fetch top domains mentioned in AI responses for a keyword (live DataForSEO call, cached 6h).



## OpenAPI

````yaml https://api.surnex.io/openapi.json get /v1/projects/{project_id}/geo/top-domains
openapi: 3.1.0
info:
  title: Surnex API
  description: |-
    Surnex SEO Platform API — api.surnex.io

    Provides the complete backend for the Surnex SEO dashboard including:
    - Multi-tenant organization management
    - Project tracking (domains)
    - Keyword rank tracking (Phase 1+)
    - Backlink analysis (Phase 3+)
    - Site auditing (Phase 4+)
    - Stripe billing integration
    - MCP endpoint for AI agents at /mcp
  version: 0.1.0
servers: []
security: []
paths:
  /v1/projects/{project_id}/geo/top-domains:
    get:
      tags:
        - GEO / AI Visibility
      summary: Top AI-cited domains
      description: >-
        Fetch top domains mentioned in AI responses for a keyword (live
        DataForSEO call, cached 6h).
      operationId: get_top_domains_v1_projects__project_id__geo_top_domains_get
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - name: keyword
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 500
            title: Keyword
        - name: location_code
          in: query
          required: true
          schema:
            type: integer
            title: Location Code
        - name: language_code
          in: query
          required: true
          schema:
            type: string
            maxLength: 10
            title: Language Code
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Limit
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponse_list_GeoTopDomainItem__'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    APIResponse_list_GeoTopDomainItem__:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          anyOf:
            - items:
                $ref: '#/components/schemas/GeoTopDomainItem'
              type: array
            - type: 'null'
          title: Data
      type: object
      title: APIResponse[list[GeoTopDomainItem]]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GeoTopDomainItem:
      properties:
        domain:
          type: string
          title: Domain
          description: Domain name appearing in AI responses.
        mention_count:
          type: integer
          title: Mention Count
          description: Number of AI responses mentioning this domain.
        visibility_score:
          anyOf:
            - type: number
            - type: 'null'
          title: Visibility Score
          description: >-
            DataForSEO-computed AI visibility score for this domain (higher =
            more prominent in AI responses). NULL if unavailable.
        category:
          anyOf:
            - type: string
            - type: 'null'
          title: Category
          description: Domain category/industry.
        trend_direction:
          anyOf:
            - type: string
            - type: 'null'
          title: Trend Direction
          description: Trend direction (up/down/stable).
        platform_breakdown:
          anyOf:
            - additionalProperties:
                type: integer
              type: object
            - type: 'null'
          title: Platform Breakdown
          description: Per-platform mention counts.
      type: object
      required:
        - domain
        - mention_count
      title: GeoTopDomainItem
      description: A single domain entry from the AI top-domains analysis.
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````