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

# Search Financial Line Items

> 一次跨多家公司拉取指定科目，而不必为每家公司取三张完整报表。

一次调用跨一家或多家公司拉取指定的财务科目。请求体接受 `tickers` 和 `line_items`（两者均为必填，均为数组），以及 `period`（annual、quarterly 或 ttm）和 `limit`。返回 `search_results`，每个 ticker 和期间一行，只包含你请求的字段，同时附带 `report_period`、`period` 和 `currency`。适合用于构建对比表，而不必为每家公司拉取三张完整报表。科目名称与报表接口返回的字段名一致，如不确定可先在那里查一下。如需某一家公司的全部信息，请使用 [`get_financial_financials`](https://aisa.one/docs/zh/api-reference/financial/get_financials)。

> [!NOTE]
>
> **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
> Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
> Allow，不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点：
> `search`、`list_categories`、`get_details` 和 `batch_quote` 免费，`batch_use`
> 按次计费。各客户端的接入步骤见[通过 MCP 连接](https://aisa.one/docs/zh/agent-quickstart.md)；实时工具列表和
> 每次调用的价格见 [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。

[在你的 agent 里把这个端点跑起来 →](https://aisa.one/mcp?from=/zh/api-reference/financial/post_financials-search-line-items)

## 请求规范

* **方法与路径:** POST /apis/v1/financial/financials/search/line-items
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/financial/financials/search/line-items`
* **Runtime 事实版本:** 694a99fb21efca575a4b8ff0db4c82ec36667c583b6490faf3c0b3ff64e0beaa

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

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

```json theme={null}
{
  "operationId": "post_financial_financials_search_line_items",
  "method": "POST",
  "path": "/apis/v1/financial/financials/search/line-items",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "limit": {
              "default": 1,
              "description": "The maximum number of results to return.",
              "minimum": 1,
              "type": "integer"
            },
            "line_items": {
              "description": "An array of line items to apply to the search.",
              "items": {
                "description": "The financial metric to search for.",
                "type": "string"
              },
              "minItems": 1,
              "type": "array"
            },
            "period": {
              "default": "ttm",
              "description": "The time period for the financial data.",
              "enum": [
                "annual",
                "quarterly",
                "ttm"
              ],
              "type": "string"
            },
            "tickers": {
              "description": "An array of tickers to apply to the search.",
              "items": {
                "description": "The tickers to search for.",
                "type": "string"
              },
              "minItems": 1,
              "type": "array"
            }
          },
          "required": [
            "line_items",
            "tickers"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

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


## OpenAPI

````yaml openapi/zh/financial.json POST /apis/v1/financial/financials/search/line-items
openapi: 3.1.0
info:
  description: ''
  title: FinancialAPI
  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:
    financial:
      description: ''
      title: FinancialAPI
      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: 694a99fb21efca575a4b8ff0db4c82ec36667c583b6490faf3c0b3ff64e0beaa
        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/financial/analyst-estimates
    - /apis/v1/financial/company/facts
    - /apis/v1/financial/company/facts/ticker
    - /apis/v1/financial/crypto/prices
    - /apis/v1/financial/crypto/prices/snapshot
    - /apis/v1/financial/earnings
    - /apis/v1/financial/earnings/press-releases
    - /apis/v1/financial/filings
    - /apis/v1/financial/filings/items
    - /apis/v1/financial/financial-metrics
    - /apis/v1/financial/financial-metrics/snapshot
    - /apis/v1/financial/financials
    - /apis/v1/financial/financials/balance-sheets
    - /apis/v1/financial/financials/cash-flow-statements
    - /apis/v1/financial/financials/income-statements
    - /apis/v1/financial/financials/search/line-items
    - /apis/v1/financial/financials/search/screener
    - /apis/v1/financial/financials/segmented-revenues
    - /apis/v1/financial/insider-trades
    - /apis/v1/financial/institutional-ownership
    - /apis/v1/financial/kpi/guidance
    - /apis/v1/financial/kpi/metrics
    - /apis/v1/financial/kpi/non-gaap
    - /apis/v1/financial/macro/interest-rates
    - /apis/v1/financial/macro/interest-rates/snapshot
    - /apis/v1/financial/news
    - /apis/v1/financial/prices
    - /apis/v1/financial/prices/snapshot
  x-aisa-document:
    composer_version: '29'
    document_hash: sha256:7bb26fc98f271d14de5a4c9e7976bcf708371acbb186e484371b565c7b0b1549
    facts_hash: 694a99fb21efca575a4b8ff0db4c82ec36667c583b6490faf3c0b3ff64e0beaa
    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: financial
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/financial/financials/search/line-items:
    post:
      tags:
        - One
      summary: Search Financial Line Items
      description: >-
        Search for specific financial metrics across income statements, balance
        sheets, and cash flow statements for a list of tickers.
      operationId: post_financial_financials_search_line_items
      requestBody:
        content:
          application/json:
            schema:
              properties:
                limit:
                  default: 1
                  description: 要返回的最大结果数量。
                  minimum: 1
                  type: integer
                line_items:
                  description: 要应用于搜索的行项目数组。
                  items:
                    description: 要搜索的财务指标。
                    type: string
                  minItems: 1
                  type: array
                period:
                  default: ttm
                  description: 财务数据的时间段。
                  enum:
                    - annual
                    - quarterly
                    - ttm
                  type: string
                tickers:
                  description: 要应用于搜索的股票代码数组。
                  items:
                    description: 要搜索的股票代码。
                    type: string
                  minItems: 1
                  type: array
              required:
                - line_items
                - tickers
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response4F907C495Caf_FinancialsSearchResponse
          description: 搜索成功响应
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response4F907C495Caf_FinancialsSearchResponse:
      properties:
        search_results:
          items:
            additionalProperties:
              description: 基于搜索条件的其他财务指标。
              type: string
            properties:
              currency:
                description: 财务数据的货币。
                type: string
              period:
                description: 财务数据的时间周期。
                enum:
                  - annual
                  - quarterly
                  - ttm
                type: string
              report_period:
                description: 财务数据的报告期。
                format: date
                type: string
              ticker:
                description: 公司的股票代码。
                type: string
            type: object
          type: array
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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