Billing

Get Billing Info

Changed on

Retrieves credit balance, current-period credit usage, tier, and billing limits for the authenticated project. Pass from_date, to_date, or granularity to additionally receive a usage time series of credits used per period, matching GET /v1/sessions/history?metrics=credits_used.

get/v1/billing

Request

  • Base URL
    https://api.anchorbrowser.io
  • Auth
    API key in header anchor-api-key

Query parameters

from_datestring date-time

Start of the usage window (ISO 8601 format, UTC). Passing any of from_date, to_date, or granularity adds a usage block to the response. Defaults to 30 days ago.

to_datestring date-time

End of the usage window (ISO 8601 format, UTC). Defaults to now.

granularity'hour' | 'day' | 'week' | 'month'

Time granularity for the usage time series.

Response

Billing information retrieved successfully.

Changes

    • info

      added the new optional query request parameter from_date

    • info

      added the new optional query request parameter granularity

    • info

      added the new optional query request parameter to_date

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      endpoint added