TheAPI Usage Analyze API allows you to fetch the number of operations made in last hour, so as to keep track of rate limit on API operations per hour.
TheAPI Usage Analyze API allows you to fetch the number of operations made in last hour, so as to keep track of rate limit on API operations per hour.
Description: Get a count of how many total API operations are recorded in last hour from current timestamp, by user.
URL: GET/api/v1/api_usage_analyze
Query Parameters
No specific request parameters should be required to retrieve the last hour API usage.
Response
Element | Description | Type |
count | Total number of API operations made in last hour | integer |
Sample Response
[
{
"count": 500
}
]
There is a rate limit in place on the allowed number of API operations per hour.
Operations per hour are computed as the sum of number of changes requested across all API requests during the hour.
For example, 5 keyword bid changes, creation of an ad group, adding an item, and a snapshot report request in any given hour, would be counted as 8 operations.
You will receive an HTTP 429 status error code and an error message about rule enforced in case of breaking ops limit.
To learn more about current applicable limits specific to your integration, please reach out to the API Partner Enablement team.