Aller au contenu
GET /v1/categories

Five stress categories

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/ofr-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/ofr-api/v1/categories" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ofr-api/v1/categories", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ofr-api/v1/categories");
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/ofr-api/v1/categories",
    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": {
        "date": "2026-06-05",
        "source": "U.S. Office of Financial Research",
        "headline": -2.472,
        "categories": [
            {
                "label": "Credit",
                "category": "Credit",
                "contribution": -1.214
            },
            {
                "label": "Equity valuation",
                "category": "Equity_Valuation",
                "contribution": -0.572
            },
            {
                "label": "Funding",
                "category": "Funding",
                "contribution": -0.083
            },
            {
                "label": "Safe assets / flight to safety",
                "category": "Flight_to_Safety",
                "contribution": -0.332
            },
            {
                "label": "Volatility",
                "category": "Volatility",
                "contribution": -0.271
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-09T20:24:24.836Z",
        "request_id": "9eaaa782-52e7-45d6-9a72-0c7314ee8967"
    },
    "status": "ok",
    "message": "Categories retrieved successfully",
    "success": true
}