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

# API日次使用量

> 指定した期間内におけるワークスペースの日次APIリクエスト数とクレジット消費量を取得します。1日ごとの集計タイムシリーズと、エンドポイント別に積み上げたデータを含み、使用状況グラフの作成に利用できます。



## OpenAPI

````yaml jp-openapi POST /api_keys/usage/daily
openapi: 3.0.0
info:
  description: >-
    Pubrio API は、コンタクトおよびアカウント情報の検索・プレビュー・エンリッチメントに利用できます。Pubrio データベースは、豊富な B2B
    連絡先データとセールスインテリジェンスを提供します。
  version: 1.0.0
  title: Pubrio OpenAPI
  termsOfService: https://pubrio.com/ja/terms-of-service
  contact:
    email: king.lai@pubrio.com
    name: King Lai
    url: https://pubrio.com/ja/get-in-touch
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.pubrio.com
security:
  - pubrio_api_key: []
tags:
  - name: Profile
    description: ワークスペースプロフィール情報と使用統計
  - name: Enrichment
    description: 詳細なB2Bデータで人物・企業レコードをエンリッチメント
  - name: Lookalike
    description: 指定した企業に類似する企業を検索
  - name: Search
    description: フィルターを使用して人物、企業、求人、ニュース、広告を検索
  - name: Lookup
    description: 特定の人物、企業、求人、ニュース、広告、テクノロジーの詳細情報を検索
  - name: LinkedIn
    description: LinkedInプロフィールURLから人物・企業データを検索
  - name: Redeem
    description: クレジットを消費して人物の連絡先情報をアンロック（単件・バッチ）
  - name: Channels
    description: アウトリーチチャネルテンプレートの管理（作成・更新・削除・一覧）
  - name: Monitor
    description: Webhook、統計、処理を含むデータモニターの作成と管理
  - name: Filters
    description: 検索パラメータで使用可能なフィルター値を取得（テクノロジー、地域、バーティカルなど）
  - name: API Keys
    description: APIキーのリクエストログと使用状況分析を表示
externalDocs:
  description: >-
    Pubrio API は、コンタクトおよびアカウント情報の検索・プレビュー・エンリッチメントに利用できます。Pubrio データベースは、豊富な B2B
    連絡先データとセールスインテリジェンスを提供します。
  url: https://docs.pubrio.com
paths:
  /api_keys/usage/daily:
    post:
      tags:
        - API Keys
      summary: APIの日次使用量タイムシリーズの取得
      description: >-
        指定した期間内におけるワークスペースの日次APIリクエスト数とクレジット消費量を取得します。1日ごとの集計タイムシリーズと、エンドポイント別に積み上げたデータを含み、使用状況グラフの作成に利用できます。
      operationId: api_keys_get_usage_daily
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - start_date
                - end_date
              properties:
                profile_id:
                  $ref: '#/components/schemas/profile_id'
                start_date:
                  type: string
                  example: '2026-05-01'
                  description: 期間の開始日（`YYYY-MM-DD` 形式、ワークスペースのタイムゾーンで解釈されます）。
                end_date:
                  type: string
                  example: '2026-05-14'
                  description: 期間の終了日(`YYYY-MM-DD` 形式、ワークスペースのタイムゾーンで解釈されます)。
                keys:
                  type: array
                  items:
                    type: string
                  description: >-
                    省略可。マスク済みAPIキー識別子（例:
                    `0••••••••••••••••f39`）で結果を絞り込みます。`/api_keys` のレスポンスやログエントリの
                    `masked_authentication` フィールドの値を指定できます。
                log_type_slugs:
                  type: array
                  items:
                    type: string
                  description: >-
                    省略可。ログタイプスラッグ（例:
                    `people_search`、`company_search`、`people_redeem`）で結果を絞り込み、特定エンドポイントに限定します。
      responses:
        '200':
          description: 日次使用量タイムシリーズを返す成功レスポンス。
          content:
            application/json:
              schema:
                type: object
                properties:
                  metadata:
                    type: object
                    properties:
                      filters:
                        type: object
                        description: 本レスポンスの生成に使用したリクエストフィルターのエコー（空値は除外）。
                        additionalProperties: true
                  data:
                    type: object
                    properties:
                      series:
                        type: array
                        description: 全エンドポイント合計の日次データ。日付の昇順で並びます。
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                              description: 日付（`YYYY-MM-DD` 形式）。
                            credits:
                              type: number
                              description: 当日に消費されたクレジット。
                            requests:
                              type: integer
                              description: 当日のAPIリクエスト件数。
                      by_log_type:
                        type: array
                        description: エンドポイント別の積み上げシリーズ。クレジット、リクエスト数の順で降順にソート。
                        items:
                          type: object
                          properties:
                            slug:
                              type: string
                              description: >-
                                ログタイプスラッグ。`__unknown__`
                                は請求対象のログタイプに紐付かないリクエストを表します。
                            name:
                              type: string
                              description: 人間が読めるログタイプ名。
                            totals:
                              type: object
                              properties:
                                credits:
                                  type: number
                                requests:
                                  type: integer
                            series:
                              type: array
                              items:
                                type: object
                                properties:
                                  date:
                                    type: string
                                  credits:
                                    type: number
                                  requests:
                                    type: integer
                      totals:
                        type: object
                        properties:
                          credits:
                            type: number
                          requests:
                            type: integer
              example:
                metadata:
                  filters:
                    start_date: '2026-05-01'
                    end_date: '2026-05-14'
                data:
                  series:
                    - date: '2026-05-01'
                      credits: 26352
                      requests: 2827
                    - date: '2026-05-05'
                      credits: 798
                      requests: 402
                    - date: '2026-05-11'
                      credits: 187
                      requests: 187
                  by_log_type:
                    - slug: people_redeem
                      name: Redeem People
                      totals:
                        credits: 40835
                        requests: 4083
                      series:
                        - date: '2026-05-01'
                          credits: 26140
                          requests: 2614
                        - date: '2026-05-11'
                          credits: 185
                          requests: 15
                    - slug: people_search
                      name: People Search
                      totals:
                        credits: 633
                        requests: 212
                      series:
                        - date: '2026-05-05'
                          credits: 594
                          requests: 199
                  totals:
                    credits: 41892
                    requests: 4896
        '400':
          $ref: '#/components/responses/general_error'
        '429':
          $ref: '#/components/responses/rate_limit_error'
        '500':
          $ref: '#/components/responses/server_error'
components:
  schemas:
    profile_id:
      type: integer
      description: >-
        オプション。リクエストを送信するチームを表す識別子です。API
        キーにワークスペース情報が既に含まれているため、このパラメータは必須ではなくなりました。指定した場合、検索結果が特定のチーム（ワークスペース）に紐づけられ、データ取得およびクレジット利用状況の追跡が可能になります。詳しくは、チーム関連の「ユーザー詳細」エンドポイントを参照してください。
  responses:
    general_error:
      description: リクエストエラー。リクエストの形式が不正であるか、無効なパラメータが含まれています。エラーコードとメッセージを確認してください。
      content:
        application/json:
          schema:
            required:
              - code
              - message
              - details
            type: object
            properties:
              code:
                example: 40001
                type: integer
              message:
                example: エラーの背景やフィールド単位の情報などを含む追加データオブジェクトです。
                type: string
              details:
                type: object
    rate_limit_error:
      description: レート制限超過。一定期間内に多すぎるリクエストが送信されました。レート制限ウィンドウがリセットされた後に再試行してください。
      content:
        application/json:
          schema:
            required:
              - error
            type: object
            properties:
              error:
                example: クライアントはしばらく待ってから再試行することが推奨されます。
                type: string
    server_error:
      description: 内部サーバーエラー。サーバーで予期しないエラーが発生しました。エラーが続く場合はサポートにお問い合わせください。
      content:
        application/json:
          schema:
            required:
              - error
            type: object
            properties:
              error:
                example: レスポンスボディには `error` フィールドが含まれ、問題の概要がメッセージとして記載されます。
                type: string
  securitySchemes:
    pubrio_api_key:
      type: apiKey
      name: pubrio-api-key
      description: >-
        API で実行する操作内容と、その操作に付与された権限を識別するための一意の API トークンです。このトークンはダッシュボードの
        [設定](https://dashboard.pubrio.com/#/settings/) 画面から発行できます。
      in: header

````