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

# Per-domain citation rate and brand true reach

> Returns the project's cited source domains, each with its citation rate, cited page count and the share of those pages that also mention the brand; limited by `size` (default 15, max 50).



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json post /api/analytics/sources/domain-reach
openapi: 3.0.0
info:
  title: MentionLab Public API v0.3.4-rc
  description: ''
  version: 0.3.4-rc
  contact: {}
servers:
  - url: https://api.mentionlab.io
security: []
tags: []
paths:
  /api/analytics/sources/domain-reach:
    post:
      tags:
        - Analytics - Sources
      summary: Per-domain citation rate and brand true reach
      description: >-
        Returns the project's cited source domains, each with its citation rate,
        cited page count and the share of those pages that also mention the
        brand; limited by `size` (default 15, max 50).
      operationId: SourcesController_getDomainReach
      parameters:
        - name: x-project-id
          in: header
          description: Project ID to specify the project context
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SourceDomainReachDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceDomainReachResponse'
        '400':
          description: >-
            The request failed validation — the body, query or path parameters
            are malformed or out of range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: The request is missing valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: >-
            The authenticated principal lacks the required permission, or access
            to the requested organisation/project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    SourceDomainReachDto:
      type: object
      properties:
        startDate:
          type: string
          description: Start date (inclusive)
          example: '2025-01-01'
        endDate:
          type: string
          description: End date (exclusive)
          example: '2025-02-01'
        countries:
          description: Filter by country codes
          example:
            - BE
            - FR
          type: array
          items:
            type: string
        languages:
          description: Filter by language codes
          example:
            - en
            - fr
          type: array
          items:
            type: string
        models:
          description: Filter by AI models
          example:
            - gpt-4o
            - claude-3-5-sonnet
          type: array
          items:
            type: string
        queryIds:
          description: Filter by query IDs
          example:
            - 3fa85f64-5717-4562-b3fc-2c963f66afa6
          type: array
          items:
            type: string
        hasSources:
          type: string
          description: >-
            Filter by source presence: "sources" (only with sources),
            "no_sources" (only without), "all" (no filter). Legacy true/false
            values are still accepted.
          enum:
            - all
            - sources
            - no_sources
        hasShopping:
          type: string
          description: >-
            Filter by shopping presence: "shopping" (only with shopping),
            "no_shopping" (only without), "all" (no filter). Legacy true/false
            values are still accepted.
          enum:
            - all
            - shopping
            - no_shopping
        queryTagIds:
          description: Filter by query tag IDs (numeric — bigint column)
          example:
            - '42'
          type: array
          items:
            type: string
        execTagIds:
          description: Filter by execution tag IDs
          example:
            - 3fa85f64-5717-4562-b3fc-2c963f66afa6
          type: array
          items:
            type: string
        queryTagGroupIds:
          description: >-
            Filter by query tag group IDs — matches rows carrying any tag filed
            under a selected group. Combines with queryTagIds per queryTagMode.
          example:
            - 3fa85f64-5717-4562-b3fc-2c963f66afa6
          type: array
          items:
            type: string
        execTagGroupIds:
          description: >-
            Filter by execution tag group IDs — matches rows carrying any tag
            filed under a selected group. Combines with execTagIds per
            execTagMode.
          example:
            - 3fa85f64-5717-4562-b3fc-2c963f66afa6
          type: array
          items:
            type: string
        queryTypes:
          type: array
          description: >-
            Filter by query type. Include "untyped" to also match queries
            without a type. Results from since-deleted queries are excluded when
            this filter is set.
          items:
            type: string
            enum:
              - comparative
              - informative
              - perception
              - untyped
        queryTagMode:
          type: string
          description: >-
            Query tag matching mode: "or" matches ANY tag (default), "and"
            matches ALL tags.
          enum:
            - and
            - or
          default: or
        execTagMode:
          type: string
          description: >-
            Execution tag matching mode: "or" matches ANY tag (default), "and"
            matches ALL tags.
          enum:
            - and
            - or
          default: or
        timezone:
          type: string
          description: >-
            IANA timezone for date bucketing and filtering (e.g.
            "Europe/Brussels"). Defaults to UTC.
          example: Europe/Brussels
          default: UTC
        groupBy:
          type: string
          description: >-
            Row grouping level for entity results. "none" = one row per entity,
            "division" = one row per division (entities not in a division get
            their own row), "group" = one row per top-level group (divisions
            roll up into their group). Defaults to "none".
          enum:
            - none
            - division
            - group
        groupByEntityGroup:
          type: boolean
          description: >-
            Deprecated — use groupBy instead. true is equivalent to
            groupBy="group".
          deprecated: true
          example: false
        showAllEntities:
          type: boolean
          description: >-
            Include entities that have only ever been seen in a single AI
            response. These are mostly one-off extraction noise and are hidden
            by default.
          example: false
        tlds:
          description: >-
            Restrict to source domains whose ICANN public suffix is one of these
            values. Matched exactly against the full suffix (e.g. "co.uk", not
            "uk").
          example:
            - be
            - co.uk
          type: array
          items:
            type: string
        entityIds:
          description: >-
            Entity IDs to compute true reach for (defaults to primary
            non-blacklisted)
          example:
            - 3fa85f64-5717-4562-b3fc-2c963f66afa6
          type: array
          items:
            type: string
        size:
          type: number
          description: Max domains to return (default 15, max 50)
          default: 15
          example: 15
    SourceDomainReachResponse:
      type: object
      properties:
        totalResponses:
          type: number
          description: >-
            Total number of AI responses in the filtered scope. Used as the
            denominator for citationRate.
          example: 150
        sources:
          description: >-
            Per-domain citation and reach statistics, ordered by resultCount
            descending
          type: array
          items:
            $ref: '#/components/schemas/SourceDomainReachPoint'
      required:
        - totalResponses
        - sources
    ApiErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code of the error.
          example: 400
        message:
          type: string
          description: >-
            Human-readable description of the error. Validation failures return
            an array of per-field validation errors instead of a single string.
          example: Validation failed
        error:
          type: string
          description: Short name of the HTTP error.
          example: Bad Request
      required:
        - statusCode
    SourceDomainReachPoint:
      type: object
      properties:
        domain:
          type: string
          description: Root domain name (e.g. reddit.com)
          example: reddit.com
        resultCount:
          type: number
          description: >-
            Number of distinct AI responses that cited at least one page from
            this domain. A single response citing 3 reddit.com pages counts as
            1.
          example: 42
        citationRate:
          type: number
          description: >-
            Citation rate — how often this domain appears across all AI
            responses. Formula: (resultCount / totalResponses) × 100. Example:
            28% means 28 out of every 100 AI responses reference this domain.
          example: 28
        pageCount:
          type: number
          description: >-
            Total number of individual page citations from this domain. One AI
            response may cite multiple pages from the same domain, each counted
            separately.
          example: 67
        brandPageCount:
          type: number
          description: >-
            Number of cited pages from this domain where the selected entities
            (brand) were mentioned. Subset of pageCount — only pages that also
            reference the brand.
          example: 30
        trueReach:
          type: number
          description: >-
            True Reach — of this domain's total citations, what percentage
            reference the brand. Formula: (brandCitationCount /
            totalCitationCount) × 100. Example: 44.78% means ~45% of citation
            rows from this domain involve the brand.
          example: 44.78
      required:
        - domain
        - resultCount
        - citationRate
        - pageCount
        - brandPageCount
        - trueReach

````