支持的国家列表
某个引擎接受的国家代码,取自校验提交的同一套规则。用 ?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"
}
}不带
model 时返回全部已分配的 ISO 3166-1 alpha-2 国家代码。带上 model 时只返回该引擎接受的国家,因此用它生成的选择器不会给出提交时被 422 REGION_UNSUPPORTED 拒绝的组合。
COMMERCE_SERP 和 COMMERCE_PRODUCT 返回其全部店铺所在国家的合集。每个店铺只对应一个国家,因此请发送与所选国家对应的 site 或商品 URL,不匹配的组合返回 422 REGION_UNSUPPORTED。
除了我们的 taskType,也接受 Cloro 的引擎名。aioverview 和 GOOGLE 都是 AI Overview 引擎,google 和 GOOGLE_SERP 都是搜索引擎。未销售的引擎返回 400 VALIDATION_ERROR。
列表很少变化,请在启动时获取一次并缓存 24 小时以上。响应与 Cloro 一样是数组本身,并带有 Cache-Control: public, max-age=3600。查询参数
响应
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"
}
}