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

# Visitor domains

> Returns up to 100 domains from which visitors access your website, ranked by page view count.

**Required scopes:** `reports_read`


## OpenAPI

````yaml /api/reports/v3.7/openapi.json post /reports/stats/visitor_domains
openapi: 3.0.0
info:
  title: Reports API
  description: Access and extract all the Reports data available in Text.
  version: '3.7'
servers:
  - url: https://api.livechatinc.com/v3.7
    description: Production
security:
  - PersonalAccessToken: []
  - OAuth2BearerToken: []
tags:
  - name: Chats
  - name: Agents
  - name: Customers
  - name: Tags
  - name: Stats
  - name: Sales
    description: Sales performance reports.
paths:
  /reports/stats/visitor_domains:
    post:
      tags:
        - Stats
      summary: Visitor domains
      description: >-
        Returns up to 100 domains from which visitors access your website,
        ranked by page view count.
      operationId: post-stats-visitor-domains
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VisitorDomainsRequest'
            example:
              filters:
                from: '2026-06-01T00:00:00-00:00'
                to: '2026-06-07T23:59:59-00:00'
        required: true
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VisitorDomainsResponse'
              example:
                name: visitor-domains-report
                summary:
                  example.com: 1523
                  another-site.org: 847
                  customer-portal.net: 612
                  shop.example.com: 458
                  blog.example.com: 234
components:
  schemas:
    VisitorDomainsRequest:
      type: object
      properties:
        filters:
          $ref: '#/components/schemas/CustomerFilters'
    VisitorDomainsResponse:
      type: object
      properties:
        name:
          type: string
          description: 'The report name: `visitor-domains-report`.'
        summary:
          type: object
          description: A map of domain names with their page view counts.
          additionalProperties:
            type: integer
            description: The number of page views from the specified domain.
    CustomerFilters:
      type: object
      description: >-
        Filters for customer reports. If none provided, the report spans the
        last seven days. If filters are provided, they must contain exactly one
        time-based filter (`from`/`to`).
      properties:
        from:
          type: string
          description: >-
            The start of the time range. Date and time format compatible with
            RFC3339 with optional microsecond resolution:
            `YYYY-MM-DDTHH:MM:SS.ssssss+HH:MM`.
        to:
          type: string
          description: >-
            The end of the time range. Date and time format compatible with
            RFC3339 with optional microsecond resolution:
            `YYYY-MM-DDTHH:MM:SS.ssssss+HH:MM`.
  securitySchemes:
    PersonalAccessToken:
      type: http
      scheme: basic
      description: >-
        Use your `account ID` as the username and your personal access token
        (PAT) as the password, or pass a Base64-encoded value directly in the
        Authorization header. For more information, see the <a
        href="/authentication/personal-access-tokens">personal access tokens
        guide</a>.
    OAuth2BearerToken:
      type: http
      scheme: bearer
      description: Authenticate using an OAuth 2.0 Bearer token.
      x-example: us-south1:MQraNrGCsoJvtxD7KNJQB1kM3d5

````