Skip to main content

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

Retrieves usage data by endpoint.

Updated on
Sep 27, 2024

v0/usage/rpc/by-endpoint 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:
endpoints
array
An array of endpoints which contains the following fields:
name
string
The name of the endpoint
label
string
A custom label for the endpoint
chain
string
The blockchain associated with the endpoint
network
string
The specific network on the blockchain
credits_used
integer
The total number of credits used by the endpoint
methods_breakdown
array
An array of methods_breakdown
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 is using archived data
start_time
integer
The start timestamp for the data in second in second
end_time
integer
The end timestamp for the data in second 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-endpoint' \
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