List of countries
The country codes one engine accepts, from the same rules that validate a submission. Filter with ?model=.
GET
/
v1
/
countries
List of countries
curl --request GET \
--url https://api.querying.ai/v1/countriesimport requests
url = "https://api.querying.ai/v1/countries"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.querying.ai/v1/countries', 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.querying.ai/v1/countries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.querying.ai/v1/countries"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.querying.ai/v1/countries")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.querying.ai/v1/countries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
"AE",
"AU",
"BR",
"CA",
"DE",
"EE",
"ES",
"FR",
"GB",
"HK",
"HU",
"IE",
"IN",
"IT",
"JP",
"MX",
"NL",
"PL",
"PT",
"RO",
"RS",
"SE",
"SG",
"SK",
"TR",
"US",
"ZA"
]{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": [
{
"field": "model",
"message": "'grok' is not a model we serve; use one of ..."
}
],
"timestamp": "2026-11-10T02:00:00.000Z"
}
}Without
model the endpoint returns every assigned ISO 3166-1 alpha-2 code. With model it returns the countries that engine accepts, so a picker built from it cannot offer a pair that submit rejects with 422 REGION_UNSUPPORTED.
COMMERCE_SERP and COMMERCE_PRODUCT list the countries of all their storefronts. Each storefront serves one country, so send the site or product URL that belongs to the country you pick; another pair returns 422 REGION_UNSUPPORTED.
Cloro’s provider names work as well as our taskTypes. aioverview and GOOGLE both name the AI Overviews engine; google and GOOGLE_SERP name the search one. A model we do not sell returns 400 VALIDATION_ERROR.
The list changes rarely, so fetch it at start-up and cache it for 24 hours or more. The answer is a bare array, as in Cloro, and it carries Cache-Control: public, max-age=3600.Query Parameters
Response
Country codes, ascending.
⌘I
List of countries
curl --request GET \
--url https://api.querying.ai/v1/countriesimport requests
url = "https://api.querying.ai/v1/countries"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.querying.ai/v1/countries', 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.querying.ai/v1/countries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.querying.ai/v1/countries"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.querying.ai/v1/countries")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.querying.ai/v1/countries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
"AE",
"AU",
"BR",
"CA",
"DE",
"EE",
"ES",
"FR",
"GB",
"HK",
"HU",
"IE",
"IN",
"IT",
"JP",
"MX",
"NL",
"PL",
"PT",
"RO",
"RS",
"SE",
"SG",
"SK",
"TR",
"US",
"ZA"
]{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": [
{
"field": "model",
"message": "'grok' is not a model we serve; use one of ..."
}
],
"timestamp": "2026-11-10T02:00:00.000Z"
}
}