Search a name across domain endings
import requests
url = "https://platform.ankra.app/api/v1/org/domains/search"
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/search', 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/search \
--header 'Authorization: Bearer <token>'{
"query": "<string>",
"label": "<string>",
"results": [
{
"name": "<string>",
"tld": "<string>",
"availability": "available",
"is_premium": true,
"currency": "<string>",
"price_cents": 123,
"renewal_cents": 123,
"is_purchasable": true,
"source": "<string>"
}
],
"registration_agreement_url": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}DNS
Search a name across domain endings
Answer the names a query can be bought as across the offered endings, each with its availability, price per year and on renewal, and whether it can be bought now. Available to organisations with domain purchase enabled; answers 404 otherwise.
GET
/
api
/
v1
/
org
/
domains
/
search
Search a name across domain endings
import requests
url = "https://platform.ankra.app/api/v1/org/domains/search"
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/search', 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/search \
--header 'Authorization: Bearer <token>'{
"query": "<string>",
"label": "<string>",
"results": [
{
"name": "<string>",
"tld": "<string>",
"availability": "available",
"is_premium": true,
"currency": "<string>",
"price_cents": 123,
"renewal_cents": 123,
"is_purchasable": true,
"source": "<string>"
}
],
"registration_agreement_url": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}{
"detail": "<string>",
"reason": "<string>"
}Authorizations
Query Parameters
Response
Successful Response
The names a query can be bought as across the offered endings: the query as asked, the label it was read as, and one result per name.