Skip to main content

v0/usage/rpc REST API Endpoint

Retrieves usage total for specified time range.

Updated on
Sep 27, 2024

v0/usage/rpc REST API Endpoint

Query Parameters

start_time
integer
Specifies the start of the time period for which the usage data is to be retrieved
end_time
integer
Specifies the end of the time period for which the usage data is to be retrieved

Returns

data
object
The data object which contains the following fields:
credits_used
integer
The number of credits used within the specified time period
credits_remaining
integer
The number of credits remaining in the account
limit
integer
The maximum number of credits available
overages
integer
The number of credits used beyond the limit
start_time
integer
The start timestamp for the usage data in second in second
end_time
integer
The end timestamp for the usage data in second in second
error
string
A string containing an error message, if any issues occur during the request
Request
1
curl -X 'GET' \
2
'https://api.quicknode.com/v0/usage/rpc' \
3
-H 'accept: application/json' \
4
-H 'x-api-key: YOUR_API_KEY'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free