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

# APIキーの使用量

> 現在のAPIキーの割り当て総数、残りのリクエスト数、割り当て量の有効期限を返します。パラメーターは不要で、`ApiKey`ヘッダーのキーを使います。



## OpenAPI

````yaml /openapi-ja.json get /key-usage-info
openapi: 3.0.3
info:
  contact: {}
  title: Sorsa.io API
  version: '3.0'
servers:
  - url: https://api.sorsa.io/v3
security: []
paths:
  /key-usage-info:
    get:
      tags:
        - ユーティリティ
      summary: APIキーの使用量
      description: >-
        現在のAPIキーの割り当て総数、残りのリクエスト数、割り当て量の有効期限を返します。パラメーターは不要で、`ApiKey`ヘッダーのキーを使います。
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/technical.KeysResp'
          description: 成功
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 不正なリクエスト
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: アクセス拒否
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 見つかりません
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 内部サーバーエラー
      security:
        - ApiKeyAuth: []
components:
  schemas:
    technical.KeysResp:
      properties:
        key_requests:
          description: 現在の期間に割り当てられたリクエスト数。
          example: 100
          type: integer
        remaining_requests:
          description: 残りのリクエスト数。
          example: 100
          type: integer
        total_requests:
          description: 全期間を通じた累計使用リクエスト数。
          example: 1000
          type: integer
        valid_until:
          description: 現在のリクエスト残高の有効期限。ISO 8601形式。
          example: '2021-01-01T00:00:00Z'
          type: string
      type: object
    handler.ErrorResponse:
      properties:
        message:
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: ApiKey
      type: apiKey

````