> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evocrawl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 历史积分用量

按月返回历史积分用量。该端点还可选按 API key 分解用量。

> 你是需要 EvoCrawl API 密钥的 AI 代理吗？请参见 [evocrawl.dev/agent-onboarding/SKILL.md](https://www.evocrawl.com/agent-onboarding/SKILL.md) 获取自动化引导说明。


## OpenAPI

````yaml /zh/api-reference/v2-openapi.json GET /team/credit-usage/historical
openapi: 3.0.0
info:
  title: Evocrawl API
  version: v2
  description: 用于与 Evocrawl 服务交互，执行网页抓取和爬取任务的 API。
  contact:
    name: Evocrawl Support
    url: https://evocrawl.com/support
    email: support@evocrawl.dev
servers:
  - url: https://api.evocrawl.com/v2
security:
  - bearerAuth: []
paths:
  /team/credit-usage/historical:
    get:
      tags:
        - Billing
      summary: 获取已认证团队的历史额度使用记录
      operationId: getHistoricalCreditUsage
      parameters:
        - name: byApiKey
          in: query
          description: 按 API 密钥查询历史额度用量
          required: false
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: 成功的响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  periods:
                    type: array
                    items:
                      type: object
                      properties:
                        startDate:
                          type: string
                          format: date-time
                          description: 计费周期开始日期
                          example: '2025-01-01T00:00:00Z'
                        endDate:
                          type: string
                          format: date-time
                          description: 计费周期结束日期
                          example: '2025-01-31T23:59:59Z'
                        apiKey:
                          type: string
                          description: 该计费周期中使用的 API 密钥名称。若 byApiKey 为 false（默认），则为 null
                          nullable: true
                        totalCredits:
                          type: integer
                          description: 账单周期内使用的积分总数
                          example: 1000
        '500':
          description: 服务器错误
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: >-
                      Internal server error while fetching historical credit
                      usage
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````