/v1/geos
Supported country codes
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/googletrends-api/v1/geos" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/googletrends-api/v1/geos", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/googletrends-api/v1/geos");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/googletrends-api/v1/geos",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"geos": [
"US",
"GB",
"DE",
"FR",
"ES",
"IT",
"NL",
"CA",
"AU",
"BR",
"MX",
"AR",
"JP",
"KR",
"IN",
"ID",
"TR",
"RU",
"PL",
"SE",
"ZA",
"NG",
"SA",
"AE",
"SG"
],
"note": "The country codes supported by the trending and news endpoints — 2-letter ISO 3166-1 country codes. The feed also accepts other valid country codes beyond this common list.",
"count": 25,
"source": "Google Trends"
},
"meta": {
"timestamp": "2026-06-14T17:03:40.785Z",
"request_id": "a6b155cd-b534-45da-8c13-c2c8ba3a28f9"
},
"status": "ok",
"message": "Geos retrieved successfully",
"success": true
}