Skip to main content

v0/usage/rpc/by-method REST API Endpoint

Retrieves usage data by method.

Updated on
Sep 27, 2024

v0/usage/rpc/by-method 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:
methods
array
An array of method calls and their corresponding credit usage
method_name
string
The name of the method called
credits_used
integer
The number of credits used by the method
archive
boolean
Indicates whether the request used archived data
start_time
integer
The start timestamp for the data in second
end_time
integer
The end timestamp for the data in second
error
string
A field containing an error message if any issue occurs
Request
1
curl -X 'GET' \
2
'https://api.quicknode.com/v0/usage/rpc/by-method' \
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