/v1/inflect
Count-aware inflection
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/inflector-api/v1/inflect" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/inflector-api/v1/inflect", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/inflector-api/v1/inflect");
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/inflector-api/v1/inflect",
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": {
"word": "item",
"count": 3,
"result": "3 items",
"inflected": "items",
"is_plural": true
},
"meta": {
"timestamp": "2026-06-01T00:04:23.710Z",
"request_id": "cce4a605-422d-4c60-ae13-71bb9496261e"
},
"status": "ok",
"message": "Inflected",
"success": true
}