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

# 备案文件

> 获取 SEC 申报文件



## OpenAPI

````yaml openapi/zh/openapi-financial.json GET /filings
openapi: 3.0.1
info:
  title: Financial Datasets API
  description: 股票市场 API，提供超过 30 年、涵盖 30,000 多个股票代码的实时和历史金融数据，包括财务报表、股票价格、内部人士交易、SEC 申报文件等。
  version: 1.0.0
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  contact:
    name: API Support
    url: https://financialdatasets.ai/support
    email: support@financialdatasets.ai
  termsOfService: https://financialdatasets.ai/terms
servers:
  - url: https://api.aisa.one/apis/v1/financial
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Financial Statements
    description: Access to income statements, balance sheets, and cash flow statements
  - name: Market Data
    description: Real-time and historical price data
  - name: Company Information
    description: Company facts like ticker, name, and description
  - name: Earnings
    description: Earnings press releases and related data
  - name: Crypto
    description: Cryptocurrency price data and market information
  - name: News
    description: Real-time and historical news articles
  - name: SEC Filings
    description: SEC filings and regulatory documents
  - name: Insider Trades
    description: Insider trading activity and transactions
  - name: Institutional Ownership
    description: Equity holdings of investment managers
  - name: Financial Metrics
    description: Financial ratios, metrics, and key performance indicators
paths:
  /filings:
    get:
      tags:
        - SEC Filings
      summary: 获取 SEC 申报文件
      description: 获取某公司的 SEC 申报文件。
      operationId: getFilings
      parameters:
        - name: cik
          in: query
          description: 公司的中央索引键（CIK）。
          required: false
          schema:
            type: string
        - name: ticker
          in: query
          description: 股票代码。
          required: false
          schema:
            type: string
        - name: filing_type
          in: query
          description: 按一种或多种申报类型筛选。重复使用查询参数可传递多个值（例如 filing_type=10-Q&filing_type=10-K）。
          required: false
          schema:
            type: array
            items:
              type: string
              enum:
                - 10-K
                - 10-Q
                - 8-K
                - 20-F
                - 6-K
          style: form
          explode: true
        - name: limit
          in: query
          description: 返回的申报文件最大数量（默认值：10）。
          required: false
          schema:
            type: integer
            minimum: 1
            default: 10
      responses:
        '200':
          description: SEC 申报文件响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilingsResponse'
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '402':
          $ref: '#/components/responses/PaymentRequiredError'
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  schemas:
    FilingsResponse:
      type: object
      properties:
        filings:
          type: array
          items:
            $ref: '#/components/schemas/Filing'
    Filing:
      type: object
      properties:
        cik:
          type: integer
          description: 公司的中央索引键（CIK）。
        accession_number:
          type: string
          description: 申报文件的登记号。
        filing_type:
          type: string
          description: SEC 申报文件的类型（例如 10-Q、8-K）。
        report_date:
          type: string
          format: date
          description: 报告日期。
        ticker:
          type: string
          description: 股票代码。
        url:
          type: string
          format: uri
          description: SEC 申报文件的 URL。
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: 简短的错误消息。
        message:
          type: string
          description: 更详细的错误消息。
  responses:
    BadRequestError:
      description: 错误请求
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Bad Request
            message: Invalid request parameters
    UnauthorizedError:
      description: 未授权
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Unauthorized
            message: Invalid API key provided
    PaymentRequiredError:
      description: 该请求需要付费订阅
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Payment Required
            message: >-
              This endpoint requires a paid subscription. Please upgrade your
              plan.
    NotFoundError:
      description: 未找到指定的资源
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Not Found
            message: Ticker XXXX not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````