Skip to main content

v1/account/usage REST API Endpoint

Fetch account usage across bandwidth and storage

Updated on
Oct 19, 2023

v1/account/usage REST API Endpoint

Query Parameters

startDate
string
REQUIRED
Represents the start date of the time interval for which usage data is requested
endDate
string
REQUIRED
Represents the end date of the time interval for which usage data is requested
interval
string
REQUIRED
Specifies the interval between data points in the usage data. It can be day, month or year

Returns

interval
string
Indicates the time interval for which the usage data is provided. It can be day, month or year
startTime
string
Specifies the start time of the usage interval
endTime
string
Specifies the end time of the usage interval. In the given response
storageBytes
string
Represents the amount of storage used by the account within the specified time interval
bandwidthBytes
string
Indicates the amount of bandwidth used by the account within the specified time interval
Request
1
curl --location 'https://api.quicknode.com/ipfs/rest/v1/account/usage?endDate=2023-07-27T22%3A18%3A08.000Z&interval=month&startDate=2023-06-27T22%3A18%3A08.000Z' \
2
--header '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