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

# 加密货币新闻

> CoinGecko 聚合的最新加密货币新闻文章。



## OpenAPI

````yaml openapi/zh/coingecko.json GET /coingecko/news
openapi: 3.0.3
info:
  title: CoinGecko API
  version: 1.0.0
  description: >-
    通过 AIsa 网关路由的 CoinGecko 加密货币市场数据。涵盖代币元数据、实时和历史价格、OHLC、交易所、行情代码、类别及热门搜索。代理位于
    `https://api.coingecko.com/api/v3/` 的公共 CoinGecko v3 API。
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - BearerAuth: []
paths:
  /coingecko/news:
    get:
      summary: 加密货币新闻
      description: >-
        由 CoinGecko 聚合的最新加密货币新闻文章。此上游端点受 CoinGecko
        套餐限制（Analyst/Lite/Pro/Enterprise 或同等访问权限）。
      operationId: coingeckoNews
      parameters:
        - name: coin_id
          in: query
          schema:
            type: string
          description: 按 CoinGecko 币种 ID 筛选新闻。
          example: bitcoin
        - name: language
          in: query
          schema:
            type: string
          description: 按语言筛选新闻。
          example: en
        - name: type
          in: query
          schema:
            type: string
            enum:
              - news
              - guides
          description: 按文章类型筛选。
          example: news
        - name: page
          in: query
          schema:
            type: integer
            default: 1
          description: 对结果进行分页。
        - name: per_page
          in: query
          schema:
            type: integer
            default: 100
          description: 每页结果总数。
      responses:
        '200':
          description: 新闻文章数组。
          content:
            application/json:
              example:
                data:
                  - title: Bitcoin hits new high
                    url: https://example.com/article
                    published_at: 1713398400
              schema:
                $ref: '#/components/schemas/CoinGeckoNewsArticleArray'
        '401':
          description: 上游提供商返回的 CoinGecko 套餐限制或授权错误。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CoinGeckoError'
components:
  schemas:
    CoinGeckoNewsArticleArray:
      type: array
      items:
        type: object
        properties:
          title:
            type: string
          url:
            type: string
          image:
            type: string
          author:
            type: string
          posted_at:
            type: string
          type:
            type: string
          source_name:
            type: string
          related_coin_ids:
            type: array
            items:
              type: string
        additionalProperties: true
    CoinGeckoError:
      type: object
      properties:
        status:
          type: object
          additionalProperties: true
        error:
          type: object
          additionalProperties: true
      additionalProperties: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: AISA API Key

````