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

# Get References

> See which domains and pages AI platforms cited, how often they appeared, and how that changed over time. Filter by platform, region, or date.



## OpenAPI

````yaml /openapi/public-api-v1.json get /v1/sites/{siteId}/reports/references
openapi: 3.0.0
info:
  title: Onsomble API
  description: >-
    Connect Onsomble to your reporting and operational workflows. Read
    discoverability results or start a Scan from another system.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.onsomble.ai
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Sites
    description: Sites connected to your account.
  - name: Clients
    description: Clients managed by agency accounts.
  - name: Scans
    description: Scan history, status, and controls.
  - name: Reports
    description: AI discoverability results.
paths:
  /v1/sites/{siteId}/reports/references:
    get:
      tags:
        - Reports
      summary: Get References
      description: >-
        See which domains and pages AI platforms cited, how often they appeared,
        and how that changed over time. Filter by platform, region, or date.
      operationId: getReferences
      parameters:
        - name: siteId
          required: true
          in: path
          schema:
            type: string
        - name: platform
          required: false
          in: query
          description: >-
            Repeat to select AI platforms and collection methods, for example
            ?platform=chatgpt_app&platform=chatgpt_api. Omit to include every
            platform.
          schema:
            example:
              - chatgpt_app
              - chatgpt_api
            type: array
            items:
              type: string
              enum:
                - claude_api
                - chatgpt_api
                - gemini_api
                - perplexity_sonar_pro
                - chatgpt_app
                - gemini_app
                - google_ai_summaries_app
                - google_ai_mode_app
                - microsoft_copilot_app
                - perplexity_app
        - name: region
          required: false
          in: query
          description: >-
            Repeat to select regions, for example ?region=NZ&region=AU. Omit to
            include all regions.
          schema:
            example:
              - NZ
              - AU
            type: array
            items:
              type: string
        - name: startDate
          required: false
          in: query
          description: >-
            Inclusive ISO calendar-date lower bound. Omit to include all earlier
            report data.
          schema:
            type: string
            example: '2026-07-01'
        - name: endDate
          required: false
          in: query
          description: >-
            Inclusive ISO calendar-date upper bound. Omit to include all later
            report data.
          schema:
            example: '2026-07-31'
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferencesReportResponseDto'
components:
  schemas:
    ReferencesReportResponseDto:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ReferenceDomainDto'
        filters:
          $ref: '#/components/schemas/AppliedReportFiltersDto'
      required:
        - data
        - filters
    ReferenceDomainDto:
      type: object
      properties:
        domain:
          type: string
          example: docs.acme.test
        urls:
          example:
            - https://docs.acme.test/guide
          type: array
          items:
            type: string
        citationCount:
          type: number
          example: 3
        referenceCount:
          type: number
          example: 4
        promptCount:
          type: number
          example: 2
        platforms:
          type: array
          items:
            $ref: '#/components/schemas/PublicPlatformDto'
        trends:
          type: array
          items:
            $ref: '#/components/schemas/ReferenceTrendPointDto'
      required:
        - domain
        - urls
        - citationCount
        - referenceCount
        - promptCount
        - platforms
        - trends
    AppliedReportFiltersDto:
      type: object
      properties:
        platform:
          example:
            - chatgpt_app
            - chatgpt_api
          description: Platform IDs applied to the report. Empty means all.
          type: array
          items:
            type: string
        region:
          example:
            - NZ
            - AU
          description: Region codes applied to the report. Empty means all.
          type: array
          items:
            type: string
        startDate:
          type: string
          nullable: true
          example: '2026-07-01'
        endDate:
          type: string
          nullable: true
          example: '2026-07-31'
      required:
        - platform
        - region
        - startDate
        - endDate
    PublicPlatformDto:
      type: object
      properties:
        id:
          type: string
          example: chatgpt_app
          description: Stable ID for the platform and collection method.
        name:
          type: string
          example: ChatGPT
        method:
          type: string
          enum:
            - web
            - api
          example: web
          description: >-
            How Onsomble collected the result: from the public website or
            through an API.
      required:
        - id
        - name
        - method
    ReferenceTrendPointDto:
      type: object
      properties:
        date:
          type: string
          example: '2026-07-01'
        scanId:
          type: string
          format: uuid
        citationCount:
          type: number
          example: 3
        referenceCount:
          type: number
          example: 4
      required:
        - date
        - scanId
        - citationCount
        - referenceCount
  securitySchemes:
    apiKeyAuth:
      scheme: bearer
      bearerFormat: ons_…
      type: http
      description: An API key created in Settings → Account → API Keys.

````