> ## 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.

# PPC Spend

> PPC Spend — SimilarWeb. 5 credit(s)/call base (billed by metrics x countries x time buckets; charged only on success)



## OpenAPI

````yaml openapi/similarweb.json GET /similarweb/website/ppc-spend
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/ppc-spend:
    get:
      summary: PPC Spend
      description: >-
        PPC Spend. Billing: 5 credit(s)/call base (billed by metrics x countries
        x time buckets; charged only on success). Response follows the
        SimilarWeb v5 envelope (meta + data).
      operationId: similarwebPpcSpend
      parameters:
        - name: domain
          in: query
          required: true
          description: Target domain, e.g. example.com.
          schema:
            type: string
        - name: country
          in: query
          required: false
          description: >-
            Country code, e.g. us; world/global normalized to world (default:
            world).
          schema:
            type: string
        - name: start_date
          in: query
          required: false
          description: Start date (YYYY-MM).
          schema:
            type: string
        - name: end_date
          in: query
          required: false
          description: End date (YYYY-MM).
          schema:
            type: string
        - name: granularity
          in: query
          required: false
          description: 'Granularity: monthly / weekly / daily.'
          schema:
            type: string
      responses:
        '200':
          description: SimilarWeb v5 envelope (meta + data).
          content:
            application/json:
              example:
                meta:
                  request:
                    domain: example.com
                  status: Success
                data:
                  - date: '2026-05-01'
                    value: 123456
              schema:
                type: object
                properties:
                  meta:
                    type: object
                  data:
                    type: array
                    items:
                      type: object
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: AISA API Key

````