Aller au contenu
GET /v1/predictions

Tide predictions

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/tides-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/tides-api/v1/predictions" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tides-api/v1/predictions", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tides-api/v1/predictions");
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/tides-api/v1/predictions",
    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": 8,
        "datum": "MLLW",
        "units": "feet",
        "station": "9414290",
        "interval": "high/low",
        "predictions": [
            {
                "time": "2026-05-30 05:49",
                "type": "low",
                "value": -0.663
            },
            {
                "time": "2026-05-30 13:10",
                "type": "high",
                "value": 4.355
            },
            {
                "time": "2026-05-30 17:17",
                "type": "low",
                "value": 3.056
            },
            {
                "time": "2026-05-30 23:18",
                "type": "high",
                "value": 5.931
            },
            {
                "time": "2026-05-31 06:23",
                "type": "low",
                "value": -0.738
            },
            {
                "time": "2026-05-31 13:53",
                "type": "high",
                "value": 4.394
            },
            {
                "time": "2026-05-31 17:55",
                "type": "low",
                "value": 3.225
            },
            {
                "time": "2026-05-31 23:51",
                "type": "high",
                "value": 5.869
            }
        ]
    },
    "meta": {
        "timestamp": "2026-05-30T18:17:02.250Z",
        "request_id": "1732eb99-af40-4919-b220-0527037f3df2"
    },
    "status": "ok",
    "message": "Predictions retrieved",
    "success": true
}