Verify IndexNow key file
curl --request POST \
--url https://api.aranx.com/api/v1/public/indexnow/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"host": "blog.example.com"
}
'import requests
url = "https://api.aranx.com/api/v1/public/indexnow/verify"
payload = { "host": "blog.example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({host: 'blog.example.com'})
};
fetch('https://api.aranx.com/api/v1/public/indexnow/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aranx.com/api/v1/public/indexnow/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'host' => 'blog.example.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aranx.com/api/v1/public/indexnow/verify"
payload := strings.NewReader("{\n \"host\": \"blog.example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aranx.com/api/v1/public/indexnow/verify")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"host\": \"blog.example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aranx.com/api/v1/public/indexnow/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"host\": \"blog.example.com\"\n}"
response = http.request(request)
puts response.read_body{
"key": "3f2a9c41d07e4b6a8c5d2e1f0a9b8c7d",
"key_file": "3f2a9c41d07e4b6a8c5d2e1f0a9b8c7d.txt",
"hosts": [
{
"host": "www.example.com",
"key_file_url": "https://www.example.com/3f2a9c41d07e4b6a8c5d2e1f0a9b8c7d.txt",
"status": "verified",
"last_checked_at": "2026-11-19T10:00:00.000Z",
"last_verified_at": "2026-11-19T10:00:00.000Z",
"last_error": null
}
]
}{
"error": "invalid_host",
"message": "host must be the site host, the site host without \"www.\", or a subdomain of it."
}{
"error": "Invalid API key"
}{
"error": "API access suspended: subscription inactive"
}{
"error": "rate_limited",
"message": "Wait 60 seconds between checks."
}IndexNow
Verify IndexNow Key File
Checks the IndexNow key file on every host now
POST
/
api
/
v1
/
public
/
indexnow
/
verify
Verify IndexNow key file
curl --request POST \
--url https://api.aranx.com/api/v1/public/indexnow/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"host": "blog.example.com"
}
'import requests
url = "https://api.aranx.com/api/v1/public/indexnow/verify"
payload = { "host": "blog.example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({host: 'blog.example.com'})
};
fetch('https://api.aranx.com/api/v1/public/indexnow/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aranx.com/api/v1/public/indexnow/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'host' => 'blog.example.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aranx.com/api/v1/public/indexnow/verify"
payload := strings.NewReader("{\n \"host\": \"blog.example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aranx.com/api/v1/public/indexnow/verify")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"host\": \"blog.example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aranx.com/api/v1/public/indexnow/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"host\": \"blog.example.com\"\n}"
response = http.request(request)
puts response.read_body{
"key": "3f2a9c41d07e4b6a8c5d2e1f0a9b8c7d",
"key_file": "3f2a9c41d07e4b6a8c5d2e1f0a9b8c7d.txt",
"hosts": [
{
"host": "www.example.com",
"key_file_url": "https://www.example.com/3f2a9c41d07e4b6a8c5d2e1f0a9b8c7d.txt",
"status": "verified",
"last_checked_at": "2026-11-19T10:00:00.000Z",
"last_verified_at": "2026-11-19T10:00:00.000Z",
"last_error": null
}
]
}{
"error": "invalid_host",
"message": "host must be the site host, the site host without \"www.\", or a subdomain of it."
}{
"error": "Invalid API key"
}{
"error": "API access suspended: subscription inactive"
}{
"error": "rate_limited",
"message": "Wait 60 seconds between checks."
}POST /api/v1/public/indexnow/verify
status: "verified".
You do not need to call it again later. Aranx checks the key file about every
24 hours on its own.
Request body
The body is optional.| Field | Type | Required | Description |
|---|---|---|---|
host | string | No | A host to add to the list before the check. It must be the site’s host, the site’s host without www., or a subdomain of it, for example example.com or blog.example.com for www.example.com. A website has at most 10 hosts |
Example request
const response = await fetch(
'https://api.aranx.com/api/v1/public/indexnow/verify',
{
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({ host: 'blog.example.com' })
}
);
const data = await response.json();
import requests
response = requests.post(
"https://api.aranx.com/api/v1/public/indexnow/verify",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"host": "blog.example.com"},
)
data = response.json()
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"host": "blog.example.com"}' \
https://api.aranx.com/api/v1/public/indexnow/verify
Response
{
"key": "3f2a9c41d07e4b6a8c5d2e1f0a9b8c7d",
"key_file": "3f2a9c41d07e4b6a8c5d2e1f0a9b8c7d.txt",
"hosts": [
{
"host": "www.example.com",
"key_file_url": "https://www.example.com/3f2a9c41d07e4b6a8c5d2e1f0a9b8c7d.txt",
"status": "verified",
"last_checked_at": "2026-11-19T10:00:00.000Z",
"last_verified_at": "2026-11-19T10:00:00.000Z",
"last_error": null
},
{
"host": "blog.example.com",
"key_file_url": "https://blog.example.com/3f2a9c41d07e4b6a8c5d2e1f0a9b8c7d.txt",
"status": "not_set_up",
"last_checked_at": "2026-11-19T10:00:00.000Z",
"last_verified_at": null,
"last_error": "The key file redirects. Serve it directly with a 200."
}
]
}
Error responses
| Status | Description |
|---|---|
400 | invalid_host: host is not the site’s host, the site’s host without www., or a subdomain of it |
400 | too_many_hosts: the website has 10 hosts, so host cannot be added |
401 | Missing or invalid API key |
403 | Subscription inactive |
429 | rate_limited: you called this endpoint within the last 60 seconds. Or the rate limit is exceeded |
{
"error": "invalid_host",
"message": "host must be the site host, the site host without \"www.\", or a subdomain of it."
}
Authorizations
Body
application/json
Response
The IndexNow key and the status of each host after the check.

