Key Availability
/v1/keys/{key}Returns public information on an API Key: whether it can be used right now (available), the search contexts the key is licensed for (contexts) and the context that best matches the caller's IP address (context).
The endpoint accepts API Keys (beginning ak_) and sub-licensed keys (beginning sl_), and needs no user_token.
A key that exists but cannot be used, because it has no lookups left or has breached a limit, returns 200 with "available": false. An unknown or malformed key returns an error.
Supply a valid user_token and the endpoint returns the key's private details instead, as GET /keys/{key}/details does. A user_token that does not own the key is rejected.
Path parameters
keystringAPI Key
The API Key to retrieve. Begins
ak_.
Response
result is a small, fixed object — shown here in full. Each address record in
contexts describes a country the key may search within.
resultApiKeycontextsobject[]A list of available contexts for a key
iso_3string3 letter ISO code
iso_2string2 letter ISO code
descriptionstringCountry descriptor to show in Address Finder
emojistringEmoji text icon
rgeobooleanIndicates availability of reverse geolocation search
contextone ofReturns current context if it is in the list of available contexts for this key.
- string
Limits search results within a geographical boundary or country.
- string
Empty string if no context is provided or key check has failed
availablebooleanDetermines whether the key can be used by the requesting agent.
Returns false if one of the following conditions are met:
- Key has no lookups remaining
- Daily limit has been reached on the key
- Daily individual limit has been reached
- Key is not being used via an authorised URL
- (Sublicensed key only) Key has a valid licensee attached
- (Sublicensed key only) Key is not being used via an authorised URL specified by licensee
The result sits inside the standard { result, code, message } envelope — see
the API reference for the wrapper format.