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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Website Traffic Trend

> Website Traffic Trend

## 请求规范

* **方法与路径:** GET /apis/v1/similarweb/website-traffic-trend
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/similarweb/website-traffic-trend`
* **country:** query; 可选
* **domain:** query; 必填
* **end\_date:** query; 可选
* **metrics:** query; 可选
* **start\_date:** query; 可选

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/similarweb.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "get_similarweb_website_traffic_trend",
  "method": "GET",
  "path": "/apis/v1/similarweb/website-traffic-trend",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "examples": {
        "default": {
          "value": "ww"
        }
      },
      "in": "query",
      "name": "country",
      "required": false,
      "schema": {
        "default": "ww",
        "description": "Worldwide data only; values are case-insensitive.",
        "enum": [
          "ww"
        ],
        "type": "string"
      }
    },
    {
      "examples": {
        "default": {
          "value": "example.com"
        },
        "minimal": {
          "value": "example.com"
        }
      },
      "in": "query",
      "name": "domain",
      "required": true,
      "schema": {
        "description": "Bare website hostname without scheme, path, port, or credentials.",
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "end_date",
      "required": false,
      "schema": {
        "description": "Inclusive last complete UTC month in YYYY-MM.",
        "type": "string"
      }
    },
    {
      "examples": {
        "default": {
          "value": "visits"
        }
      },
      "in": "query",
      "name": "metrics",
      "required": false,
      "schema": {
        "default": "visits",
        "description": "One to four supported Traffic & Engagement metrics.",
        "type": "string",
        "x-aisa-delimiter": ",",
        "x-aisa-item-enum": [
          "average_visit_duration",
          "bounce_rate",
          "new_users",
          "page_views",
          "pages_per_visit",
          "returning_users",
          "unique_visitors",
          "visits"
        ],
        "x-aisa-maxItems": 4
      }
    },
    {
      "in": "query",
      "name": "start_date",
      "required": false,
      "schema": {
        "description": "Inclusive first month in YYYY-MM; provide together with end_date.",
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

请求费用。 默认请求预估费用：\$0.45 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。

### 请求约束与用量说明

* country 仅支持 ww，默认值为 ww。
* 仅支持月粒度。
* 仅支持全站来源（total web）和主域名。
* 默认使用最近六个完整 UTC 月份；时间范围最长为 12 个月。
* 上游用量随包含两端的月份数乘以去重后的请求指标数增长。


## OpenAPI

````yaml openapi/zh/similarweb.json GET /apis/v1/similarweb/website-traffic-trend
openapi: 3.1.0
info:
  description: ''
  title: SimilarWeb
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    similarweb:
      description: ''
      title: SimilarWeb
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 82432d27d73a88ae91d051dcb75c63cade810c975f5d9a7299e5837a51f822ba
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
        seed_month: 2026-10
      x-aisa-plans:
        builder: 1
        display_plan: similarweb_payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/similarweb/keyword-analysis/keywords/overview
    - /apis/v1/similarweb/search/keyword-competitors
    - /apis/v1/similarweb/search/landing-pages
    - /apis/v1/similarweb/search/serp-players-aggregated
    - /apis/v1/similarweb/search/serp-players-timeseries
    - /apis/v1/similarweb/search/website-keywords
    - /apis/v1/similarweb/segment-analysis/segments/traffic-and-engagement
    - /apis/v1/similarweb/segment-analysis/segments/traffic-sources
    - /apis/v1/similarweb/website-analysis/websites/conversion-rates
    - /apis/v1/similarweb/website-analysis/websites/conversion-rates/aggregated
    - >-
      /apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated
    - /apis/v1/similarweb/website-top-geographies
    - /apis/v1/similarweb/website-traffic-snapshot
    - /apis/v1/similarweb/website-traffic-trend
    - /apis/v1/similarweb/website/ad-networks
    - /apis/v1/similarweb/website/audience-interest
    - /apis/v1/similarweb/website/audience-overlap
    - /apis/v1/similarweb/website/deduplicated-audience
    - /apis/v1/similarweb/website/demographics
    - /apis/v1/similarweb/website/folders
    - /apis/v1/similarweb/website/marketing-channel-sources-legacy
    - /apis/v1/similarweb/website/popular-pages
    - /apis/v1/similarweb/website/ppc-spend
    - /apis/v1/similarweb/website/ranking
    - /apis/v1/similarweb/website/referrals
    - /apis/v1/similarweb/website/similar-sites
    - /apis/v1/similarweb/website/subdomains
    - /apis/v1/similarweb/website/technologies
    - /apis/v1/similarweb/website/top-sites-ranking
    - /apis/v1/similarweb/website/traffic-engagement
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:21db840935adbdc3acb62fe521d80ff6826bf2ca7096b08fc059c8f9a986f9a9
    facts_hash: 82432d27d73a88ae91d051dcb75c63cade810c975f5d9a7299e5837a51f822ba
    generator_version: '3'
    protocol_version: '1'
    response_pending:
      - method: GET
        operation_id: similarwebFolders
        path: /apis/v1/similarweb/website/folders
        reason: public success response has no authoritative payload declaration
        statuses:
          - '200'
    schema_version: '1'
    seed_month: 2026-10
  x-aisa-plans:
    builder: 1
    display_plan: similarweb_payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: similarweb
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/similarweb/website-traffic-trend:
    get:
      tags:
        - website
      summary: Website Traffic Trend
      operationId: get_similarweb_website_traffic_trend
      parameters:
        - examples:
            default:
              value: ww
          in: query
          name: country
          required: false
          schema:
            default: ww
            description: Worldwide data only; values are case-insensitive.
            enum:
              - ww
            type: string
        - examples:
            default:
              value: example.com
            minimal:
              value: example.com
          in: query
          name: domain
          required: true
          schema:
            description: Bare website hostname without scheme, path, port, or credentials.
            type: string
        - in: query
          name: end_date
          required: false
          schema:
            description: Inclusive last complete UTC month in YYYY-MM.
            type: string
        - examples:
            default:
              value: visits
          in: query
          name: metrics
          required: false
          schema:
            default: visits
            description: One to four supported Traffic & Engagement metrics.
            type: string
            x-aisa-delimiter: ','
            x-aisa-item-enum:
              - average_visit_duration
              - bounce_rate
              - new_users
              - page_views
              - pages_per_visit
              - returning_users
              - unique_visitors
              - visits
            x-aisa-maxItems: 4
        - in: query
          name: start_date
          required: false
          schema:
            description: Inclusive first month in YYYY-MM; provide together with end_date.
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    additionalProperties: false
                    properties:
                      domain:
                        type: string
                      metrics:
                        items:
                          enum:
                            - average_visit_duration
                            - bounce_rate
                            - new_users
                            - page_views
                            - pages_per_visit
                            - returning_users
                            - unique_visitors
                            - visits
                          type: string
                        maxItems: 4
                        minItems: 1
                        type: array
                        uniqueItems: true
                      points:
                        items:
                          additionalProperties: false
                          properties:
                            month:
                              pattern: ^[0-9]{4}-[0-9]{2}$
                              type: string
                            values:
                              additionalProperties: false
                              properties:
                                average_visit_duration:
                                  type:
                                    - number
                                    - 'null'
                                bounce_rate:
                                  type:
                                    - number
                                    - 'null'
                                new_users:
                                  type:
                                    - number
                                    - 'null'
                                page_views:
                                  type:
                                    - number
                                    - 'null'
                                pages_per_visit:
                                  type:
                                    - number
                                    - 'null'
                                returning_users:
                                  type:
                                    - number
                                    - 'null'
                                unique_visitors:
                                  type:
                                    - number
                                    - 'null'
                                visits:
                                  type:
                                    - number
                                    - 'null'
                              type: object
                          required:
                            - month
                            - values
                          type: object
                        minItems: 1
                        type: array
                    required:
                      - domain
                      - metrics
                      - points
                    type: object
                  meta:
                    additionalProperties: false
                    properties:
                      country:
                        enum:
                          - ww
                        type: string
                      end_date:
                        pattern: ^[0-9]{4}-[0-9]{2}$
                        type: string
                      granularity:
                        const: monthly
                        type: string
                      request_id:
                        type: string
                      retrieved_at:
                        format: date-time
                        type: string
                      source:
                        const: similarweb
                        type: string
                      start_date:
                        pattern: ^[0-9]{4}-[0-9]{2}$
                        type: string
                    required:
                      - source
                      - request_id
                      - retrieved_at
                      - country
                      - granularity
                      - start_date
                      - end_date
                    type: object
                required:
                  - data
                  - meta
                type: object
          description: Normalized successful response
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
      x-codeSamples:
        - label: Reference example
          lang: text
          source: >-
            # Fixed reference example. Playground inputs do not update this
            sample.

            curl --request GET \
              --url 'https://api.aisa.one/apis/v1/similarweb/website-traffic-trend?country=ww&domain=example.com&metrics=visits' \
              --header 'Authorization: Bearer <token>'
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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