Check a domain's availability
import requests
url = "https://platform.ankra.app/api/v1/org/domains/availability"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/domains/availability', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/domains/availability \
--header 'Authorization: Bearer <token>'{
"name": "<string>",
"is_available": true,
"is_premium": true,
"currency": "<string>",
"price_cents": 123,
"renewal_cents": 123,
"suggestions": [
{
"name": "<string>",
"is_available": true,
"is_premium": true,
"price_cents": 123,
"renewal_cents": 123,
"currency": "<string>"
}
],
"registration_agreement_url": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}DNS
Check a domain's availability
Answer whether a domain can be bought through Ankra, its price per year and on renewal, and the same name on other offered endings. Available to organisations with domain purchase enabled; answers 404 otherwise.
GET
/
api
/
v1
/
org
/
domains
/
availability
Check a domain's availability
import requests
url = "https://platform.ankra.app/api/v1/org/domains/availability"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/domains/availability', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/domains/availability \
--header 'Authorization: Bearer <token>'{
"name": "<string>",
"is_available": true,
"is_premium": true,
"currency": "<string>",
"price_cents": 123,
"renewal_cents": 123,
"suggestions": [
{
"name": "<string>",
"is_available": true,
"is_premium": true,
"price_cents": 123,
"renewal_cents": 123,
"currency": "<string>"
}
],
"registration_agreement_url": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}Authorizations
Response
Successful Response
Whether a domain can be bought, at what price per year (price_cents) and on renewal (renewal_cents), in currency.