Get Usage

GA
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.

Headers

AuthorizationstringRequired

OAuth authentication of the form <token>.

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

OK
usageobject
Usage information for each endpoint
fromstring
The start date of the returned usage information.
tostring
The end date of the returned usage information.

Errors