Vai al contenuto
GET /v1/list

List observatories

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/observatories-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/observatories-api/v1/list" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/observatories-api/v1/list", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/observatories-api/v1/list");
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/observatories-api/v1/list",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "count": 50,
        "total": 2675,
        "observatories": [
            {
                "code": "100",
                "name": "Ahtari",
                "latitude": 62.4597,
                "lon_east": 24.1414,
                "longitude": 24.1414,
                "rho_cos_phi": 0.461165,
                "rho_sin_phi": 0.88437,
                "has_location": true
            },
            {
                "code": "101",
                "name": "Kharkiv",
                "latitude": 49.8131,
                "lon_east": 36.2322,
                "longitude": 36.2322,
                "rho_cos_phi": 0.64403,
                "rho_sin_phi": 0.76246,
                "has_location": true
            },
            {
                "code": "102",
                "name": "Zvenigorod",
                "latitude": 55.5201,
                "lon_east": 36.7595,
                "longitude": 36.7595,
                "rho_cos_phi": 0.564841,
                "rho_sin_phi": 0.822468,
                "has_location": true
            },
            {
                "code": "103",
                "name": "Ljubljana",
                "latitude": 45.8515,
                "lon_east": 14.5277,
                "longitude": 14.5277,
                "rho_cos_phi": 0.695365,
                "rho_sin_phi": 0.716346,
                "has_location": true
            },
            {
                "code": "104",
                "name": "San Marcello Pistoiese",
                "latitude": 43.8719,
                "lon_east": 10.8038,
                "longitude": 10.8038,
                "rho_cos_phi": 0.719842,
                "rho_sin_phi": 0.69204,
                "has_location": true
            },
            {
                "code": "105",
                "name": "Moscow",
                "latitude": 55.5765,
                "lon_east": 37.5706,
                "longitude": 37.5706,
                "rho_cos_phi": 0.56403,
                "rho_sin_phi": 0.82302,
                "has_location": true
            },
            {
                "code": "106",
                "name": "Crni Vrh",
                "latitude": 45.7536,
                "lon_east": 14.0711,
                "longitude": 14.0711,
                "rho_cos_phi": 0.69662,
                "rho_sin_phi": 0.71519,
                "has_location": true
            },
            {
                "code": "107",
                "name": "Cavezzo",
                "latitude": 44.6705,
                "lon_east": 11.003,
                "longitude": 11.003,
                "rho_cos_phi": 0.70998,
                "rho_sin_phi": 0.70186,
                "has_location": true
            },
            {
                "code": "108",
                "name": "Montelupo",
                "latitude": 43.5459,
                "lon_east": 11.0278,
                "longitude": 11.0278,
                "rho_cos_phi": 0.72367,
                "rho_sin_phi": 0.68784,
                "has_loc
…