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

# 列出被引用来源

> 列出引擎引用的域名或页面，按不同回答数计数。



## OpenAPI

````yaml GET /v1/monitors/{id}/sources
openapi: 3.1.0
info:
  title: querying.ai
  description: >-
    One API for every AI answer engine. Every task is asynchronous: submit, then
    collect the result via webhook or polling.
  version: 1.0.0
servers:
  - url: https://api.querying.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/monitors/{id}/sources:
    get:
      tags:
        - Monitors
      summary: List cited sources
      description: >-
        Which domains or pages the engines cited inside the same window and
        filters as the report, counted in distinct answers rather than raw
        citations, so a page cited three times in one answer counts once. Ranks
        by answer count with an opaque keyset cursor: pass nextCursor back
        unchanged until it is null. This endpoint has no silent top-N cut -
        every combination is reachable, unlike the 12 domains and 20 pages the
        legacy detail returns.
      operationId: listMonitorSources
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: groupBy
          in: query
          required: false
          schema:
            type: string
            enum:
              - domain
              - page
            default: domain
          description: >-
            domain groups by host (www stripped); page keeps the full URL and
            its label.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: >-
            Opaque keyset cursor. Pass the previous response's nextCursor
            unchanged; do not construct or decode it.
        - name: days
          in: query
          required: false
          schema:
            type: integer
            enum:
              - 7
              - 30
              - 90
            default: 30
          description: Window length ending now. Cannot be combined with since/until.
        - name: since
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: Inclusive ISO instant with a timezone offset. Requires until.
        - name: until
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: Exclusive ISO instant with a timezone offset. Requires since.
        - name: engine
          in: query
          required: false
          schema:
            type: string
          description: Same filter as the report.
        - name: prompt
          in: query
          required: false
          schema:
            type: string
            maxLength: 2000
          description: Same exact-prompt filter as the report.
      responses:
        '200':
          description: One page of ranked sources.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorSourcesResponse'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    MonitorSourcesResponse:
      type: object
      properties:
        success:
          type: boolean
          const: true
        data:
          type: object
          properties:
            results:
              type: array
              items:
                $ref: '#/components/schemas/MonitorSourceRow'
            nextCursor:
              type:
                - string
                - 'null'
              description: >-
                Pass back unchanged as cursor; null means this was the last
                page.
            groupBy:
              type: string
              enum:
                - domain
                - page
            window:
              type: object
              description: >-
                The resolved half-open window, echoed so a client can pin the
                same cohort across pages.
              properties:
                since:
                  type: string
                  format: date-time
                until:
                  type: string
                  format: date-time
            filters:
              $ref: '#/components/schemas/MonitorAnalyticsFilters'
            counting:
              type: string
              const: distinct_answers
              description: How citations and prompts are counted.
            ownership:
              type: string
              const: current_monitor_domains
              description: >-
                own is decided against the monitor's domains as configured now,
                not as they were at collection time.
    MonitorSourceRow:
      type: object
      description: >-
        One cited domain or page in the window. citations and prompts count
        distinct answers, so a page cited three times in one answer counts once.
      properties:
        key:
          type: string
          description: >-
            The grouping value: a host for domain, the full URL for page. Opaque
            - use it as an identity, not as a URL.
        domain:
          type: string
          description: Host with www stripped and any credentials or port removed.
        url:
          type:
            - string
            - 'null'
          description: Present when groupBy=page, null when groupBy=domain.
        label:
          type:
            - string
            - 'null'
          description: The title the engine gave, when it gave one.
        citations:
          type: integer
          description: Distinct answers in the window citing this key.
        prompts:
          type: integer
          description: Distinct prompts among those answers.
        own:
          type: boolean
          description: >-
            True when this host is one of the monitor's registered domains (or a
            subdomain of one).
        evidenceTaskId:
          type: string
          description: >-
            A task id citing this key, safe to request from GET
            /v1/monitors/{id}/answers/{taskId}.
    MonitorAnalyticsFilters:
      type: object
      description: >-
        The filters that were applied to every section, echoed back resolved:
        engine is the canonical id even when an alias was passed, and null means
        no filter.
      properties:
        engine:
          type:
            - string
            - 'null'
        prompt:
          type:
            - string
            - 'null'
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          $ref: '#/components/schemas/ErrorDetail'
    ErrorDetail:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Stable, safe to branch on. See the Errors guide for the full list.
        message:
          type: string
          description: For humans. May change.
        details:
          description: >-
            Context for the error. An array of `{field, message}` on most
            `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on
            `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted
            when there is nothing to add.
          oneOf:
            - type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
            - type: object
              additionalProperties: true
        timestamp:
          type: string
          format: date-time
  responses:
    ValidationError:
      description: >-
        The request is malformed — bad JSON, unrecognised `taskType`, or neither
        `payload.prompt` nor `payload.query` present. `details` names the
        offending field.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingPrompt:
              summary: Neither prompt nor query supplied
              value:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Request validation failed
                  details:
                    - field: payload.prompt
                      message: payload.prompt or payload.query is required
                  timestamp: '2026-07-09T04:12:00.000Z'
            badTaskType:
              summary: Unrecognised taskType
              value:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Request validation failed
                  details:
                    - field: taskType
                      message: '''NOPE'' is not recognized'
                  timestamp: '2026-07-09T04:12:00.000Z'
    Unauthorized:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: MISSING_API_KEY
              message: Missing or invalid API key
              timestamp: '2026-07-09T04:12:00.000Z'
    NotFound:
      description: >-
        No monitor with that id for this key, or no scored row with that task
        id. A monitor owned by another account is reported the same way rather
        than as a 403.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: NOT_FOUND
              message: No monitor with that id
              timestamp: '2026-09-22T04:12:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer <key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.