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

# Get Top Sources

> Top source domains (or URLs) appearing in AI citations for the target website.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/public/citations/top-sources
openapi: 3.1.0
info:
  title: Hikoo REST API
  description: >-
    Programmatic access to your Hikoo data: citations, prompts, competitors,
    audits, health and more. Authenticate with a personal API key
    (`Authorization: Bearer <key>`) created from the dashboard settings.
  version: 1.0.0
servers:
  - url: https://api.tryhikoo.com
security:
  - apiKey: []
paths:
  /api/v1/public/citations/top-sources:
    get:
      tags:
        - Citations
      summary: Get Top Sources
      description: >-
        Top source domains (or URLs) appearing in AI citations for the target
        website.
      operationId: get_top_sources_api_v1_public_citations_top_sources_get
      parameters:
        - name: time_range
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/TimeRange'
              - type: 'null'
            title: Time Range
        - name: platforms[]
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/AiPlatform'
              - type: 'null'
            title: Platforms[]
        - name: localizations[]
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: Localizations[]
        - name: topic_ids[]
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: integer
              - type: 'null'
            title: Topic Ids[]
        - name: group_by
          in: query
          required: false
          schema:
            type: string
            pattern: ^(domain|url)$
            default: domain
            title: Group By
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 50
            minimum: 1
            default: 10
            title: Limit
        - name: website_id
          in: query
          required: true
          schema:
            type: integer
            description: Target website id
            title: Website Id
          description: Target website id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Bearer <api_key>
            title: Authorization
          description: Bearer <api_key>
        - name: X-MCP-Secret
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Mcp-Secret
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TopSourceDomain'
                title: >-
                  Response Get Top Sources Api V1 Public Citations Top Sources
                  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TimeRange:
      type: string
      enum:
        - all_time
        - 1y
        - 1m
        - 1w
        - 1d
      title: TimeRange
    AiPlatform:
      type: string
      enum:
        - ChatGPT
        - Gemini
        - AI Overviews
        - Google AI Mode
        - Perplexity
        - Mistral
        - Claude
        - DeepSeek
        - Grok
        - Copilot
      title: AiPlatform
    TopSourceDomain:
      properties:
        domain:
          type: string
          title: Domain
        citation_count:
          type: integer
          title: Citation Count
        percentage:
          anyOf:
            - type: number
            - type: 'null'
          title: Percentage
        avg_position:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Position
      type: object
      required:
        - domain
        - citation_count
      title: TopSourceDomain
      description: |-
        A domain that appears as a source in AI responses.

        ``percentage`` = citation_count divided by the total source-URL
        occurrences in the same scope (same filters / source_class) before the
        top-N slice. None when the scope total is zero.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Personal API key created in the dashboard (Settings > API keys).

````