Info

Get Usage

GET
The usage endpoint provides a simple interface to retrieve information on usage made by your API account. This includes both views per API path and credits consumed. The time period for the usage query is also specified in the response and whether or not this includes total usage.

Query parameters

fromdateOptional
An ISO 8601 encoded date string indicating the starting time period to obtain usage stats. In the format YYYY-MM-DD
todateOptional
An ISO 8601 encoded date string indicating the ending time period to obtain usage stats. In the format YYYY-MM-DD

Response

This endpoint returns an object
usage
object
Usage information for each endpoint
from
string
The start date of the returned usage information.
to
string
The end date of the returned usage information.
GET
1curl -G https://api.sayari.com/v1/usage \
2 -H "Authorization: Bearer <token>" \
3 -d from=2023-01-01 \
4 -d to=2023-01-01
200
Retrieved
1{
2 "usage": {
3 "entity": 0,
4 "entity_summary": 0,
5 "record": 0,
6 "resolve": 0,
7 "search_entities": 0,
8 "search_records": 0,
9 "search_trade": 0,
10 "traversal": 0
11 },
12 "from": "string",
13 "to": "string"
14}