Skip to content

List provider data balances

GET
/providers/data-balances
curl --request GET \
--url https://api.proxyrequest.com/api/v1/providers/data-balances \
--header 'Accept-Language: de' \
--header 'Authorization: Bearer <token>'

Requires a JWT belonging to an active superuser or an API key owned by an active superuser, including requests using X-Impersonate-User. Returns one result per provider with recorded balances. The latest observation by observed_at is the baseline; available_bytes is that observation’s balance, not a sum of purchased data. All byte amounts are decimal strings. Calculations are saved asynchronously; inspect freshness, error and calculated_at before using them. History is ordered by creation time descending and limited by PROVIDER_DATA_BALANCE_HISTORY_LIMIT (default 10). Pagination counts providers, not history entries.

limit
integer

Number of results to return per page.

offset
integer

The initial index from which to return the results.

Accept-Language
string
default: en

Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English.

Examples
de

The operation completed successfully.

Media typeapplication/json
object
count
required
integer
next
string format: uri
nullable
previous
string format: uri
nullable
results
required
Array<object>
object
checkpoint_id
required
string format: uuid
provider_id
required
string
provider_name
required
string
observed_at
required

Time the available balance was observed.

string format: date-time
available_bytes
required

Observed balance in bytes, as a decimal string.

string
used_bytes
required

Calculated usage since the observation, in bytes.

string
nullable
remaining_bytes
required

Remaining bytes at calculated_at, as a decimal string.

string
nullable
remaining_percent
required
number format: double
nullable
severity
required
One of:
  • warning - warning * danger - danger
string
Allowed values: warning danger
freshness
required
  • fresh - fresh * stale - stale * unavailable - unavailable
string
Allowed values: fresh stale unavailable
error
required
string
calculated_at
required

Time of the last successful calculation.

string format: date-time
nullable
history
required

Latest entries by creation time, limited by PROVIDER_DATA_BALANCE_HISTORY_LIMIT (default 10).

Array<object>
object
id
required
string format: uuid
available_bytes
required

Observed balance in bytes, as a decimal string.

string
observed_at
required
string format: date-time
created
required
string format: date-time
created_by
required
string
nullable
Examples
ExampleProviderDataBalance

Provider data balance

{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"provider_id": "550e8400-e29b-41d4-a716-446655440001",
"provider_name": "Example provider",
"checkpoint_id": "550e8400-e29b-41d4-a716-446655440002",
"available_bytes": "5000000000000",
"used_bytes": "1000000000000",
"remaining_bytes": "4000000000000",
"remaining_percent": 80,
"observed_at": "2026-09-25T12:00:00Z",
"calculated_at": "2026-09-25T12:30:00Z",
"severity": null,
"freshness": "fresh",
"error": "",
"history": [
{
"id": "550e8400-e29b-41d4-a716-446655440002",
"available_bytes": "5000000000000",
"observed_at": "2026-09-25T12:00:00Z",
"created": "2026-09-25T12:01:00Z",
"created_by": "admin"
}
]
}
]
}

The request is malformed or violates a business rule.

Media typeapplication/json

Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.

object
detail
string
non_field_errors
Array<string>
key
additional properties
One of:
string
Examples
Exampleexample

Validation error

{
"non_field_errors": [
"The request could not be processed."
]
}
Content-Language
string

Language used for human-readable errors.

Authentication credentials are missing, expired, or invalid.

Media typeapplication/json

Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.

object
detail
string
non_field_errors
Array<string>
key
additional properties
One of:
string
Examples
ExampleAuthenticationRequired

Authentication required

{
"detail": "Authentication credentials were not provided."
}
Content-Language
string

Language used for human-readable errors.

The authenticated account cannot perform this operation.

Media typeapplication/json

Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.

object
detail
string
non_field_errors
Array<string>
key
additional properties
One of:
string
Examples
ExamplePermissionDenied

Permission denied

{
"detail": "You do not have permission to perform this action."
}
Content-Language
string

Language used for human-readable errors.