/v1/countries
Countries with station counts
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/radio-api/v1/countries" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/radio-api/v1/countries", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/radio-api/v1/countries");
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/radio-api/v1/countries",
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": {
"count": 237,
"results": [
{
"code": "AD",
"name": "Andorra",
"stations": 8
},
{
"code": "AE",
"name": "The United Arab Emirates",
"stations": 774
},
{
"code": "AF",
"name": "Afghanistan",
"stations": 124
},
{
"code": "AG",
"name": "Antigua And Barbuda",
"stations": 6
},
{
"code": "AI",
"name": "Anguilla",
"stations": 6
},
{
"code": "AL",
"name": "Albania",
"stations": 37
},
{
"code": "AM",
"name": "Armenia",
"stations": 17
},
{
"code": "AO",
"name": "Angola",
"stations": 16
},
{
"code": "AQ",
"name": "Antarctica",
"stations": 10
},
{
"code": "AR",
"name": "Argentina",
"stations": 763
},
{
"code": "AS",
"name": "American Samoa",
"stations": 15
},
{
"code": "AT",
"name": "Austria",
"stations": 341
},
{
"code": "AU",
"name": "Australia",
"stations": 2018
},
{
"code": "AW",
"name": "Aruba",
"stations": 8
},
{
"code": "AX",
"name": "Aland Islands",
"stations": 2
},
{
"code": "AZ",
"name": "Azerbaijan",
"stations": 41
},
{
"code": "BA",
"name": "Bosnia And Herzegovina",
"stations": 143
},
{
"code": "BB",
"name": "Barbados",
"stations": 22
},
{
"code": "BD",
"name": "Bangladesh",
"stations": 19
},
{
"code": "BE",
"name": "Belgium",
"stations": 449
},
{
"code": "BF",
"name": "Burkina Faso",
"stations": 9
},
{
"code": "BG",
"name": "Bulgaria",
"stations": 316
},
{
"code": "BH",
"name": "Bahrain",
"stations": 23
…