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

# BytePlus Web Search

> Run a real-time web search built for AI agents and return a ranked list of titled results with links and snippets. `Query` is required; narrow the result set with `Count` (≤ 20), `Filter` (restrict to `Sites` or exclude `BlockHosts`), `Language`, and `TimeRange`. The response wraps `ResponseMetadata.RequestId` and a `Result` list of web results. Use it for RAG retrieval augmentation, competitive/PR monitoring, fact-checking, and content sourcing; pair each result URL with `post_byteplus_fetch` to pull full page content.  failed requests are not charged.

## 请求规范

* **方法与路径:** POST /apis/v1/byteplus/web-search
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/byteplus/web-search`

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

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

```json theme={null}
{
  "operationId": "post_byteplus_web_search",
  "method": "POST",
  "path": "/apis/v1/byteplus/web-search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "basic": {
            "summary": "Minimal query",
            "value": {
              "Query": "OpenAI news"
            }
          },
          "filtered": {
            "summary": "Query with count, domain filter, language and time window",
            "value": {
              "Count": 10,
              "Filter": {
                "BlockHosts": "reddit.com",
                "Sites": "openai.com|bytedance.com"
              },
              "Language": "EN",
              "Query": "OpenAI product launch",
              "TimeRange": "OneWeek"
            }
          }
        },
        "schema": {
          "properties": {
            "Count": {
              "default": 10,
              "description": "Number of results to return. Optional; default 10, maximum 20.",
              "example": 10,
              "maximum": 20,
              "type": "integer"
            },
            "Filter": {
              "description": "Optional result filter. Both fields are pipe-separated strings of full domains (max 5 each).",
              "properties": {
                "BlockHosts": {
                  "description": "Exclude results from these full domains. Pipe-separated, max 5, e.g. \"reddit.com|quora.com\".",
                  "example": "reddit.com|quora.com",
                  "type": "string"
                },
                "Sites": {
                  "description": "Restrict results to these full domains. Pipe-separated, max 5, e.g. \"bytedance.com|byteplus.com\". (Sending an array returns 10400 Invalid Parameter.)",
                  "example": "bytedance.com|byteplus.com",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "Language": {
              "description": "Optional language hint in the upstream format, e.g. EN, ZH-HANS, ZH-HANT.",
              "example": "EN",
              "type": "string"
            },
            "Query": {
              "description": "The search query. Required. Max 400 characters; the upstream engine also effectively caps around 50 words.",
              "example": "OpenAI news",
              "maxLength": 400,
              "type": "string"
            },
            "TimeRange": {
              "description": "Optional recency window. One of the named windows OneDay / OneWeek / OneMonth / OneYear, or a custom range \"YYYY-MM-DD..YYYY-MM-DD\". Omit for no time filter. NOTE: values like \"week\"/\"month\" are silently ignored upstream.",
              "example": "OneWeek",
              "oneOf": [
                {
                  "enum": [
                    "OneDay",
                    "OneWeek",
                    "OneMonth",
                    "OneYear"
                  ],
                  "type": "string"
                },
                {
                  "description": "Custom range, e.g. 2026-08-01..2026-09-01.",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}\\.\\.\\d{4}-\\d{2}-\\d{2}$",
                  "type": "string"
                }
              ]
            }
          },
          "required": [
            "Query"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

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


## OpenAPI

````yaml openapi/zh/byteplus-search.json POST /apis/v1/byteplus/web-search
openapi: 3.1.0
info:
  description: ''
  title: BytePlus SearchInfinity (AI Web Search + Fetch)
  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:
    byteplus-search:
      description: ''
      title: BytePlus SearchInfinity (AI Web Search + Fetch)
      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: c6938a2b68dcd4140f77b783866eb27d207badfaf1ccb92415f8f016896bad6f
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/byteplus/fetch
    - /apis/v1/byteplus/web-search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:60d1a2ff70f29b577bc42f2e0db1f229c1847714866113fb3a035fc2dde850e2
    facts_hash: c6938a2b68dcd4140f77b783866eb27d207badfaf1ccb92415f8f016896bad6f
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: byteplus-search
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/byteplus/web-search:
    post:
      tags:
        - byteplus
      summary: BytePlus Web Search
      description: >-
        Run a real-time web search built for AI agents and return a ranked list
        of titled results with links and snippets. `Query` is required; narrow
        the result set with `Count` (≤ 20), `Filter` (restrict to `Sites` or
        exclude `BlockHosts`), `Language`, and `TimeRange`. The response wraps
        `ResponseMetadata.RequestId` and a `Result` list of web results. Use it
        for RAG retrieval augmentation, competitive/PR monitoring,
        fact-checking, and content sourcing; pair each result URL with
        `post_byteplus_fetch` to pull full page content.  failed requests are
        not charged.
      operationId: post_byteplus_web_search
      requestBody:
        content:
          application/json:
            examples:
              basic:
                summary: Minimal query
                value:
                  Query: OpenAI news
              filtered:
                summary: Query with count, domain filter, language and time window
                value:
                  Count: 10
                  Filter:
                    BlockHosts: reddit.com
                    Sites: openai.com|bytedance.com
                  Language: EN
                  Query: OpenAI product launch
                  TimeRange: OneWeek
            schema:
              properties:
                Count:
                  default: 10
                  description: >-
                    Number of results to return. Optional; default 10, maximum
                    20.
                  example: 10
                  maximum: 20
                  type: integer
                Filter:
                  description: >-
                    Optional result filter. Both fields are pipe-separated
                    strings of full domains (max 5 each).
                  properties:
                    BlockHosts:
                      description: >-
                        Exclude results from these full domains. Pipe-separated,
                        max 5, e.g. "reddit.com|quora.com".
                      example: reddit.com|quora.com
                      type: string
                    Sites:
                      description: >-
                        Restrict results to these full domains. Pipe-separated,
                        max 5, e.g. "bytedance.com|byteplus.com". (Sending an
                        array returns 10400 Invalid Parameter.)
                      example: bytedance.com|byteplus.com
                      type: string
                  type: object
                Language:
                  description: >-
                    Optional language hint in the upstream format, e.g. EN,
                    ZH-HANS, ZH-HANT.
                  example: EN
                  type: string
                Query:
                  description: >-
                    The search query. Required. Max 400 characters; the upstream
                    engine also effectively caps around 50 words.
                  example: OpenAI news
                  maxLength: 400
                  type: string
                TimeRange:
                  description: >-
                    Optional recency window. One of the named windows OneDay /
                    OneWeek / OneMonth / OneYear, or a custom range
                    "YYYY-MM-DD..YYYY-MM-DD". Omit for no time filter. NOTE:
                    values like "week"/"month" are silently ignored upstream.
                  example: OneWeek
                  oneOf:
                    - enum:
                        - OneDay
                        - OneWeek
                        - OneMonth
                        - OneYear
                      type: string
                    - description: Custom range, e.g. 2026-08-01..2026-09-01.
                      pattern: ^\d{4}-\d{2}-\d{2}\.\.\d{4}-\d{2}-\d{2}$
                      type: string
              required:
                - Query
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                success:
                  summary: Live gateway 200 response
                  value:
                    ResponseMetadata:
                      Action: ''
                      Region: ''
                      RequestId: 20260904155503A787EC832774768DC56F
                      Service: ''
                      Version: ''
                    Result:
                      Choices: null
                      LogId: 20260904155503A787EC832774768DC56F
                      ResultCount: 3
                      SearchContext:
                        OriginQuery: OpenAI latest news
                        SearchType: web
                      TimeCost: 935
                      Usage: null
                      WebResults:
                        - Id: 19b903d59c017bbb04c7832574500d49
                          LogoUrl: https://p16-bpsearch-sign.ibyteimg.com/...<signed>
                          PublishTime: '2026-09-03T07:50:20+08:00'
                          PublishTimeUnix: 1788393020
                          SiteName: OpenAI
                          Snippet: >-
                            Stay up to speed on the rapid advancement of AI
                            technology and the benefits it offers to humanity.
                          SortId: 1
                          Summary: >-
                            Stay up to speed on the rapid advancement of AI
                            technology and the benefits it offers to humanity.
                          Title: OpenAI News | OpenAI
                          Url: https://openai.com/news/
              schema:
                properties:
                  ResponseMetadata:
                    description: Upstream request metadata.
                    properties:
                      Action:
                        type: string
                      Region:
                        type: string
                      RequestId:
                        description: Unique identifier for this request.
                        type: string
                      Service:
                        type: string
                      Version:
                        type: string
                    type: object
                  Result:
                    description: Search result payload.
                    properties:
                      Choices:
                        description: Reserved; null unless applicable.
                        items:
                          type: object
                        type:
                          - array
                          - 'null'
                      LogId:
                        description: Upstream log id (equals ResponseMetadata.RequestId).
                        type: string
                      ResultCount:
                        description: Number of web results returned.
                        type: integer
                      SearchContext:
                        description: Echo of the resolved query context.
                        properties:
                          OriginQuery:
                            type: string
                          SearchType:
                            type: string
                        type: object
                      TimeCost:
                        description: Upstream processing time in milliseconds.
                        type: integer
                      Usage:
                        description: Reserved; null unless applicable.
                        type:
                          - object
                          - 'null'
                      WebResults:
                        description: Ranked list of web results.
                        items:
                          properties:
                            Id:
                              description: Opaque result id.
                              type: string
                            LogoUrl:
                              description: Signed site logo URL (time-limited).
                              type: string
                            PublishTime:
                              description: Publish time in ISO 8601 (may be empty).
                              type: string
                            PublishTimeUnix:
                              description: Publish time as Unix seconds (0 if unknown).
                              type: integer
                            SiteName:
                              description: Source site name (may be empty).
                              type: string
                            Snippet:
                              description: Short text snippet from the page.
                              type: string
                            SortId:
                              description: 1-based rank of the result.
                              type: integer
                            Summary:
                              description: Longer summary of the page content.
                              type: string
                            Title:
                              description: 结果标题。
                              type: string
                            Url:
                              description: 结果 URL。
                              type: string
                          type: object
                        type: array
                    type: object
                type: object
          description: >-
            Search completed successfully. `Result` holds the ranked web
            results.
        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 POST \
              --url https://api.aisa.one/apis/v1/byteplus/web-search \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "Query": "OpenAI news"
            }'
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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