Key Usage
/v1/keys/{key}/usageReports the number of lookups a key consumed over a date range, as a total and a daily breakdown.
The range defaults to the last 21 days. start and end take UNIX timestamps in milliseconds, and end defaults to the current time. The maximum range is 90 days.
Query at most three tags at once.
Path parameters
keystringAPI Key
The API Key to retrieve. Begins
ak_.
Query parameters
user_tokenstring optionalPrivate User Token
A secret key used for sensitive operations on your account and API Keys.
Your user token can be retrieved and managed from your accounts page.
Typically begins
uk_...startinteger optionalStart Timestamp
A start date/time in the form of a UNIX Timestamp in milliseconds. E.g.
1418556452651endinteger optionalEnd Timestamp
An end date/time in the form of a UNIX Timestamp in milliseconds. E.g.
1418556477882tagsstring optionalTags
A comma separated list of tags to query over.
Useful if you want to specify the circumstances in which the request was made.
If you specify multiple tags, the response comprises only requests that satisfy all of them. Searching
"foo,bar"queries only requests tagged both"foo"and"bar".licenseestring optionalLicensee Key
Uniquely identifies a licensee.
Response
result is a single object containing the total lookup count and a daily breakdown for the requested period.
resultKeyUsageResultstartstringStart date in ISO 8601 format.
endstringEnd date in ISO 8601 format.
totalintegerTotal of paid lookups performed in specified period.
dailyCountobject[]An array of objects representing number of paid lookups made on specific days, ordered by date. Each object contains a
dateattribute, which represents the day and acountattribute, which represents the number of paid lookups made on that day.datestringcountinteger
The result sits inside the standard { result, code, message } envelope — see
the API reference for the wrapper format.