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

# Demographics

> Demographics — SimilarWeb

<Note>
  **First time?** Point any MCP client at `https://mcp.aisa.one/mcp` — Claude
  Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client
  opens a browser, you click Allow once, and there is no key to paste. The
  commands per client, and what each call costs, are on
  [aisa.one/mcp](https://aisa.one/mcp#connect).
</Note>

[Set this endpoint up in your agent →](https://aisa.one/mcp?from=/api-reference/similarweb/get_similarweb-website-demographics)


## OpenAPI

````yaml openapi/similarweb.json GET /similarweb/website/demographics
openapi: 3.0.3
info:
  title: SimilarWeb API
  version: 1.0.0
  description: >-
    SimilarWeb digital-intelligence data routed through the AIsa gateway:
    website traffic & engagement, ranking, traffic sources, audience, website
    content, and keyword/search insights.


    **Billing model**: SimilarWeb uses a two-phase (pre-authorization ->
    settlement) credit-based model, not a fixed unit price. (1) Before the call,
    an upper bound is estimated from the request dimensions and pre-authorized
    (response header `X-AISA-Estimated-Credits`); (2) the upstream call is made;
    (3) actual consumption is settled (response headers
    `X-AISA-Accounted-Credits`, `X-AISA-Price-USD`).

    - Billing dimensions: metrics x countries x time buckets (time-series
    endpoints); number of returned rows (list endpoints, capped at 20 rows,
    excess auto-truncated).

    - Countries: each country multiplies the cost once; world/global is
    normalized to world.

    - Settlement rounds up to whole credits; charged only when HTTP 2xx and data
    is non-empty; 4xx/5xx or empty data is not charged.
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - BearerAuth: []
paths:
  /similarweb/website/demographics:
    get:
      summary: Demographics
      description: >-
        Demographics. Response follows the SimilarWeb v5 envelope (meta + data).
        Date constraint: start_date and end_date must fall in the SAME month
        (exactly one monthly bucket). Geographic coverage: worldwide (ww,
        default) and United States (us) only.
      operationId: get_similarweb_demographics
      parameters:
        - name: domain
          in: query
          required: true
          description: Target domain, e.g. example.com.
          schema:
            type: string
        - name: start_date
          in: query
          required: true
          description: Start month, format YYYY-MM.
          schema:
            type: string
        - name: end_date
          in: query
          required: true
          description: End month, format YYYY-MM.
          schema:
            type: string
        - name: granularity
          in: query
          required: true
          description: 'Time granularity. Allowed: monthly.'
          schema:
            type: string
            enum:
              - monthly
        - name: country
          in: query
          required: false
          description: >-
            Two-letter country code. Allowed: us, ww. Default: ww. Coverage is
            limited to ww and us on the current plan.
          schema:
            type: string
            enum:
              - us
              - ww
            default: ww
        - name: web_source
          in: query
          required: false
          description: 'Traffic source device split. Allowed: total.'
          schema:
            type: string
            enum:
              - total
        - name: main_domain_only
          in: query
          required: false
          description: Restrict to the main domain only (true/false).
          schema:
            type: boolean
        - name: format
          in: query
          required: false
          description: 'Response format. Allowed: json.'
          schema:
            type: string
            enum:
              - json
      responses:
        '200':
          description: SimilarWeb v5 envelope (meta + data).
          content:
            application/json:
              example:
                meta:
                  request:
                    format: json
                    domain: cnn.com
                    granularity: monthly
                    country: us
                    start_date: '2026-06-01'
                    end_date: '2026-06-30'
                    metrics:
                      - age_18_to_24_share
                      - age_25_to_34_share
                      - age_35_to_44_share
                      - age_45_to_54_share
                      - age_55_to_64_share
                      - age_65_plus_share
                      - male_share
                      - female_share
                  status: success
                  last_updated: '2026-07-31'
                data:
                  - age_18_to_24_share: 0.0684928856109901
                    age_25_to_34_share: 0.16978297333160164
                    age_35_to_44_share: 0.202684431962113
                    age_45_to_54_share: 0.2104190356035189
                    age_55_to_64_share: 0.21167119791609917
                    age_65_plus_share: 0.1369494755756772
                    male_share: 0.5816619373492008
                    female_share: 0.4183380626507992
              schema:
                type: object
                properties:
                  meta:
                    $ref: '#/components/schemas/SimilarWebMeta'
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        age_18_to_24_share:
                          type: number
                        age_25_to_34_share:
                          type: number
                        age_35_to_44_share:
                          type: number
                        age_45_to_54_share:
                          type: number
                        age_55_to_64_share:
                          type: number
                        age_65_plus_share:
                          type: number
                        male_share:
                          type: number
                        female_share:
                          type: number
components:
  schemas:
    SimilarWebMeta:
      type: object
      description: SimilarWeb v5 response envelope metadata.
      properties:
        status:
          type: string
          description: Upstream status; 'success' on a successful call.
          example: success
        last_updated:
          type: string
          description: Date of the most recent data point available upstream (YYYY-MM-DD).
          example: '2026-06-30'
        request:
          type: object
          description: >-
            Full echo of the normalized upstream request (parameters as
            received).
        query:
          type: object
          description: Pagination/sort echo when applicable (limit, offset, asc, sort).
      required:
        - status
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: AISA API Key

````

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