Aller au contenu
GET /v1/meta

Spec

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/advice-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/advice-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/advice-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/advice-api/v1/meta");
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/advice-api/v1/meta",
    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": {
        "service": "advice-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/advice": "A specific slip by id (id=).",
            "GET /v1/random": "A random advice slip.",
            "GET /v1/search": "Search the collection for a phrase (q=, min 2 chars, limit=)."
        },
        "description": "Short pieces of advice via the open Advice Slip API: pull a random advice slip, fetch a specific slip by id, or search the collection for slips containing a phrase. Real advice, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:48:45.475Z",
        "request_id": "617a0a75-21b2-4d00-8086-40aabda71bc0"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}