> ## 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-URL drill-down for a specific domain

> Returns a paginated list of the individual URLs cited from the given domain with their citation metrics; the path domain id overrides any body value, and an unknown domain returns an empty page.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json post /api/v1/analytics/sources/domains/{sourceDomainId}/urls
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/v1/analytics/sources/domains/{sourceDomainId}/urls:
    post:
      tags:
        - Analytics - Sources
      summary: Per-URL drill-down for a specific domain
      description: >-
        Returns a paginated list of the individual URLs cited from the given
        domain with their citation metrics; the path domain id overrides any
        body value, and an unknown domain returns an empty page.
      operationId: SourcesV1Controller_getDomainUrls_v1
      parameters:
        - name: sourceDomainId
          required: true
          in: path
          description: >-
            Identifier of the source domain whose cited URLs are returned.
            Overrides any value in the request body.
          schema:
            example: d1f8c3a2-9b4e-4c7a-8f21-6e0a5b2c9d10
            type: string
        - 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/SourceDomainUrlsDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceDomainUrlsResponse'
        '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:
    SourceDomainUrlsDto:
      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
        page:
          type: number
          description: Page number (1-based).
          default: 1
          example: 1
        pageSize:
          type: number
          description: Items per page (max 200).
          default: 50
          example: 50
        sourceDomainId:
          type: string
          description: Source domain ID to drill down into.
          example: 01234567-89ab-cdef-0123-456789abcdef
        entityIds:
          description: >-
            Entity IDs to compute brand metrics for (defaults to primary
            non-blacklisted).
          example:
            - 01234567-89ab-cdef-0123-456789abcdef
          type: array
          items:
            type: string
        sort:
          description: >-
            Sorting instructions for the result set. Allowed fields are url,
            citationCount, citationShare, brandCitationCount,
            brandCitationShare, successCount and failureCount.
          example:
            - field: citationCount
              direction: desc
          type: array
          items:
            $ref: '#/components/schemas/SortOptions'
      required:
        - sourceDomainId
    SourceDomainUrlsResponse:
      type: object
      properties:
        totalResponses:
          type: number
          description: Total number of AI responses in the filtered scope.
          example: 720
        globalTotalCitations:
          type: number
          description: >-
            Sum of per-domain citation counts across ALL domains. Denominator
            for citationShare. Consistent with totalCitations in all-domains.
          example: 712
        globalTotalBrandCitations:
          type: number
          description: >-
            Sum of per-domain brand citation counts across ALL domains.
            Denominator for brandCitationShare.
          example: 200
        urls:
          description: >-
            Per-URL statistics ordered by citationCount descending (unless
            sorted).
          type: array
          items:
            $ref: '#/components/schemas/SourceDomainUrlPoint'
        page:
          description: Pagination metadata.
          allOf:
            - $ref: '#/components/schemas/Paging'
      required:
        - totalResponses
        - globalTotalCitations
        - globalTotalBrandCitations
        - urls
        - page
    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
    SortOptions:
      type: object
      properties:
        field:
          type: string
          description: Field name to sort by
        direction:
          type: string
          enum:
            - ASC
            - DESC
          description: Sort direction
      required:
        - field
        - direction
    SourceDomainUrlPoint:
      type: object
      properties:
        url:
          type: string
          description: Full URL of the cited page.
          example: https://www.reddit.com/r/technology/comments/abc123/title
        title:
          type: string
          description: Page title (may be null if not captured).
          example: Best tools for project management - Reddit
          nullable: true
        citationCount:
          type: number
          description: >-
            Number of distinct AI responses that cited this specific URL. Each
            AI response is counted once regardless of how many times it
            references the URL.
          example: 15
        citationShare:
          type: number
          description: >-
            This URL's share of all citations globally (across all domains).
            Formula: (citationCount / globalTotalCitations) × 100. Consistent
            with citationShare in all-domains (same denominator concept).
          example: 2.1
        brandCitationCount:
          type: number
          description: >-
            Number of AI responses where this URL was cited AND the brand entity
            was found on the page. Subset of citationCount.
          example: 6
        brandCitationShare:
          type: number
          description: >-
            This URL's share of all brand citations globally. Formula:
            (brandCitationCount / globalTotalBrandCitations) × 100. Shows how
            much of the global brand citation volume flows through this specific
            page.
          example: 3.4
        successCount:
          type: number
          description: Number of successful page scrapes for this URL.
          example: 12
        failureCount:
          type: number
          description: Number of failed page scrapes for this URL.
          example: 3
        entities:
          description: >-
            Entities found on this URL (canonical-deduplicated, excludes
            blacklisted). Shows which brands/entities are associated with this
            specific page.
          type: array
          items:
            $ref: '#/components/schemas/SourceDomainUrlEntity'
      required:
        - url
        - title
        - citationCount
        - citationShare
        - brandCitationCount
        - brandCitationShare
        - successCount
        - failureCount
        - entities
    Paging:
      type: object
      properties:
        totalRecords:
          type: number
        limit:
          type: number
        currentPage:
          type: number
        totalPages:
          type: number
        nextPage:
          type: number
        prevPage:
          type: number
      required:
        - totalRecords
        - limit
        - currentPage
        - totalPages
        - nextPage
        - prevPage
    SourceDomainUrlEntity:
      type: object
      properties:
        entityId:
          type: string
          description: Canonical entity ID.
          example: 01234567-89ab-cdef-0123-456789abcdef
        entityName:
          type: string
          description: Entity display name.
          example: Acme Corp
        isOwned:
          type: boolean
          description: Whether this entity is owned by the project owner.
          example: true
        isPrimary:
          type: boolean
          description: Whether this is the primary entity for the project.
          example: true
        isCompetitor:
          type: boolean
          description: Whether this entity is marked as a competitor.
          example: false
      required:
        - entityId
        - entityName
        - isOwned
        - isPrimary
        - isCompetitor

````