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

# Perform Smart Search

> Perform Smart Search

## 请求规范

* **方法与路径:** GET /apis/v1/search/smart
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/search/smart`
* **Pragma:** header; 可选
* **blockWebsites:** query; 可选
* **contentTimeout:** query; 可选
* **contentType:** query; 可选
* **count:** query; 可选
* **enableContent:** query; 可选
* **freshness:** query; 可选
* **mainText:** query; 可选
* **offset:** query; 可选
* **q:** query; 必填
* **sites:** query; 可选

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

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

```json theme={null}
{
  "operationId": "any_search_apis_v1_search_smart",
  "method": "GET",
  "path": "/apis/v1/search/smart",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "Input value: no-cache. When no-cache is provided, the response results will not be cached and each request is independent; if not provided, the response results for the same query term will be cached for 10 minutes",
      "in": "header",
      "name": "Pragma",
      "required": false,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "The value must be in host address format (e.g., baijiahao.baidu.com). Excludes results from the specified site(s).",
      "in": "query",
      "name": "blockWebsites",
      "required": false,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Timeout for reading long abstracts. If reading exceeds this time, it will terminate and no long abstract will be returned for that result. Defaults to 0 (seconds), maximum 10s.",
      "in": "query",
      "name": "contentTimeout",
      "required": false,
      "schema": {
        "default": 0.0,
        "maximum": 10.0,
        "type": "number"
      }
    },
    {
      "description": "The format of the long abstract (content) to return. Options:：- HTML- MARKDOWN- TEXT(default)",
      "in": "query",
      "name": "contentType",
      "required": false,
      "schema": {
        "default": "TEXT",
        "enum": [
          "HTML",
          "MARKDOWN",
          "TEXT"
        ],
        "type": "string"
      }
    },
    {
      "description": "The number of search results to return. Defaults to 10, maximum 50. Enumerated values: 10 / 20 / 30 / 40 / 50 The actual number returned may be less than requested. Use this parameter with the offset parameter for pagination.",
      "in": "query",
      "name": "count",
      "required": false,
      "schema": {
        "default": 10,
        "enum": [
          10,
          20,
          30,
          40,
          50
        ],
        "maximum": 50,
        "type": "integer"
      }
    },
    {
      "description": "ontrols whether to return long abstract content: -true: Return long abstracts -false: Do not return long abstracts Defaults to false",
      "in": "query",
      "name": "enableContent",
      "required": false,
      "schema": {
        "default": false,
        "type": "boolean"
      }
    },
    {
      "description": "Filter search results by time range: - Day (past 24 hours) -Week (past 7 days) - Month (past 30 days)",
      "in": "query",
      "name": "freshness",
      "required": false,
      "schema": {
        "enum": [
          "Day",
          "Week",
          "Month"
        ],
        "type": "string"
      }
    },
    {
      "description": "Controls whether to return key fragments of dynamic abstracts:true： Return key fragmentsfalse：Do not return key fragmentsDefault false",
      "in": "query",
      "name": "mainText",
      "required": false,
      "schema": {
        "default": false,
        "type": "boolean"
      }
    },
    {
      "description": "The zero-based offset indicating how many results to skip before returning. Defaults to 0. Use with the count parameter for pagination. There is no upper limit for offset; setting a large value may result in no results being returned.",
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
        "default": 0,
        "minimum": 0,
        "type": "integer"
      }
    },
    {
      "description": "The user's search query term, which cannot be empty.",
      "in": "query",
      "name": "q",
      "required": true,
      "schema": {
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "description": "The value must be in host address format (e.g., baijiahao.baidu.com). Returns results only from the specified site(s).",
      "in": "query",
      "name": "sites",
      "required": false,
      "schema": {
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

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


## OpenAPI

````yaml openapi/zh/search.json GET /apis/v1/search/smart
openapi: 3.1.0
info:
  description: ''
  title: Search
  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:
    search:
      description: ''
      title: Search
      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: 2d91cc2e3cdc5e843b48489e7c1ef47a0cf03ed51d5ab6cc38ec8ea5a9711c3e
        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/search/full
    - /apis/v1/search/smart
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:5300860ba78b9a01b73edccbc8f12381d9d396f63e425f7ba5804dbef289188e
    facts_hash: 2d91cc2e3cdc5e843b48489e7c1ef47a0cf03ed51d5ab6cc38ec8ea5a9711c3e
    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: search
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/search/smart:
    get:
      tags:
        - search
      summary: Perform Smart Search
      operationId: any_search_apis_v1_search_smart
      parameters:
        - description: >-
            Input value: no-cache. When no-cache is provided, the response
            results will not be cached and each request is independent; if not
            provided, the response results for the same query term will be
            cached for 10 minutes
          in: header
          name: Pragma
          required: false
          schema:
            type: string
        - description: >-
            The value must be in host address format (e.g.,
            baijiahao.baidu.com). Excludes results from the specified site(s).
          in: query
          name: blockWebsites
          required: false
          schema:
            type: string
        - description: >-
            Timeout for reading long abstracts. If reading exceeds this time, it
            will terminate and no long abstract will be returned for that
            result. Defaults to 0 (seconds), maximum 10s.
          in: query
          name: contentTimeout
          required: false
          schema:
            default: 0
            maximum: 10
            type: number
        - description: >-
            The format of the long abstract (content) to return. Options:：-
            HTML- MARKDOWN- TEXT(default)
          in: query
          name: contentType
          required: false
          schema:
            default: TEXT
            enum:
              - HTML
              - MARKDOWN
              - TEXT
            type: string
        - description: >-
            The number of search results to return. Defaults to 10, maximum 50.
            Enumerated values: 10 / 20 / 30 / 40 / 50 The actual number returned
            may be less than requested. Use this parameter with the offset
            parameter for pagination.
          in: query
          name: count
          required: false
          schema:
            default: 10
            enum:
              - 10
              - 20
              - 30
              - 40
              - 50
            maximum: 50
            type: integer
        - description: >-
            ontrols whether to return long abstract content: -true: Return long
            abstracts -false: Do not return long abstracts Defaults to false
          in: query
          name: enableContent
          required: false
          schema:
            default: false
            type: boolean
        - description: >-
            Filter search results by time range: - Day (past 24 hours) -Week
            (past 7 days) - Month (past 30 days)
          in: query
          name: freshness
          required: false
          schema:
            enum:
              - Day
              - Week
              - Month
            type: string
        - description: >-
            Controls whether to return key fragments of dynamic abstracts:true：
            Return key fragmentsfalse：Do not return key fragmentsDefault false
          in: query
          name: mainText
          required: false
          schema:
            default: false
            type: boolean
        - description: >-
            The zero-based offset indicating how many results to skip before
            returning. Defaults to 0. Use with the count parameter for
            pagination. There is no upper limit for offset; setting a large
            value may result in no results being returned.
          in: query
          name: offset
          required: false
          schema:
            default: 0
            minimum: 0
            type: integer
        - description: The user's search query term, which cannot be empty.
          in: query
          name: q
          required: true
          schema:
            minLength: 1
            type: string
        - description: >-
            The value must be in host address format (e.g.,
            baijiahao.baidu.com). Returns results only from the specified
            site(s).
          in: query
          name: sites
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  queryContext:
                    properties:
                      originalQuery:
                        description: The user's original search query
                        type: string
                    type: object
                  webPages:
                    properties:
                      value:
                        description: Detailed result data returned
                        items:
                          properties:
                            content:
                              description: >-
                                Long abstract information of the webpage,
                                retrieved from the main text. MARKDOWN and HTML
                                formats include image links with anchor
                                positions
                              type: string
                            contentCrawled:
                              description: >-
                                Long abstract retrieval status: true for success
                                (content is included in content), false for
                                failure (content is empty)
                              type: boolean
                            datePublished:
                              description: >-
                                Page publication time (included in some sites)
                                Example: 2025-07-14T01:15:00.0000000Z
                              type: string
                            imageList:
                              description: >-
                                List of image URLs in the webpage (included in
                                some webpages, depending on whether the page
                                contains images)
                              type: array
                            logo:
                              description: Website logo (included in some webpages)
                              type: string
                            mainText:
                              description: >-
                                Dynamic abstract fragment extracted from the
                                text, most relevant to the query. More
                                intelligent than snippet
                              type: string
                            name:
                              description: Webpage title
                              type: string
                            score:
                              description: Content relevance score
                              type: number
                            siteName:
                              description: Website name (included in some webpages)
                              type: string
                            snippet:
                              description: Text snippet describing the webpage content
                              type: string
                            url:
                              description: Webpage URL
                              type: string
                          type: object
                        type: array
                    type: object
                type: object
          description: >-
            Official typed response table; required fields and undeclared array
            item types are not inferred.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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