Availability
GET/keys/:key
Returns public information on key. Currently only returns whether the key is currently useable via the available
property. Use this to discover if the key is useable before making further requests.
You may pass both API Keys (beginning ak_
) and Sub-licensed Keys (beginning sl_
).
Testingβ
To test your implementation of our API, you may use the following test keys.
- iddqd Availability will return as
true
- idkfa Availability will return as
false
Requestβ
Path Parameters
Responsesβ
- 200
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Context
- No Context Provided
- string
Limits search results within a geographical boundary or country.
- string
Possible values: [``]
Empty string if no context is provided or key check has failed
- 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 objectrequired
Returns current context if it is in the list of available contexts for this key.
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"
}