Availability
GET/keys/:key
Returns public information on your API Key.
This endpoint can be used for the following:
- Determine if the key is currently useable via the
available
property - Determine available contexts for a an API Key
- Identify the currently likely context of a user given their location
You may pass both API Keys (beginning ak_
) and Sub-licensed Keys (beginning sl_
).
Requestβ
Path Parameters
API Key
The API Key to retrieve. Begins ak_
.
Responsesβ
- 200
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Context
- No Context Provided
- 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
result objectrequired
contexts object[]required
A list of available contexts for a key
3 letter ISO code
2 letter ISO code
Country descriptor to show in Address Finder
Emoji text icon
Indicates availability of reverse geolocation search
context object required
Returns current context if it is in the list of available contexts for this key.
string
string
Determines whether the key can be used by the requesting agent.
Returns false if one of the following conditions are met:
Possible values: [Success
]
Possible values: [2000
]
{
"result": {
"contexts": [
{
"iso_3": "USA",
"iso_2": "US",
"description": "United States",
"emoji": "πΊπΈ",
"rgeo": true
}
],
"context": "string",
"available": true
},
"message": "Success",
"code": 2000
}
Invalid Key
- application/json
- Schema
- Example (from schema)
Schema
API Response Code. Non 2xxx
code indicates a failure. This code will provide a more specific reason when a failure occurs and facilitates debugging.
Human readable error message supplied with every error response.
{
"code": 0,
"message": "string"
}