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

# 事实

> 获取公司事实数据



## OpenAPI

````yaml openapi/zh/openapi-financial.json GET /company/facts
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:
  /company/facts:
    get:
      tags:
        - Company Information
      summary: 获取公司事实数据
      description: 获取某个股票代码对应的公司基本信息。
      operationId: getCompanyFacts
      parameters:
        - name: ticker
          in: query
          description: 股票代码。
          required: false
          schema:
            type: string
        - name: cik
          in: query
          description: 公司的 CIK。
          required: false
          schema:
            type: string
      responses:
        '200':
          description: 公司信息响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyFactsResponse'
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  schemas:
    CompanyFactsResponse:
      type: object
      properties:
        company_facts:
          $ref: '#/components/schemas/CompanyFacts'
    CompanyFacts:
      type: object
      properties:
        ticker:
          type: string
          description: 公司的股票代码。
        name:
          type: string
          description: 公司名称。
        cik:
          type: string
          description: 公司的中央索引键（CIK）。
        industry:
          type: string
          description: 公司的所属行业。
        sector:
          type: string
          description: 公司所属行业。
        category:
          type: string
          description: 公司的类别。
        exchange:
          type: string
          description: 公司所在的交易所。
        is_active:
          type: boolean
          description: 公司当前是否处于活跃状态。
        listing_date:
          type: string
          format: date
          description: 公司在证券交易所上市的日期。
        location:
          type: string
          description: 公司所在地。
        market_cap:
          type: number
          description: 公司的市值。
        number_of_employees:
          type: number
          description: 公司的员工人数。
        sec_filings_url:
          type: string
          format: uri
          description: 公司的 SEC 申报文件 URL。
        sic_code:
          type: string
          description: 公司的标准行业分类（SIC）代码。
        sic_industry:
          type: string
          description: 根据 SIC 代码确定的公司所属行业。
        sic_sector:
          type: string
          description: 基于 SIC 代码确定的公司行业。
        website_url:
          type: string
          format: uri
          description: 公司网站的 URL。
        weighted_average_shares:
          type: number
          description: 公司的加权平均股数。
    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
    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

````