Aller au contenu
GET /v1/styles

Style minor-word lists

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/titlecase-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/titlecase-api/v1/styles" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/titlecase-api/v1/styles", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/titlecase-api/v1/styles");
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/titlecase-api/v1/styles",
    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": {
        "styles": [
            {
                "name": "ap",
                "note": "Associated Press — lowercases articles, conjunctions and short prepositions.",
                "minor_words": [
                    "a",
                    "an",
                    "and",
                    "as",
                    "at",
                    "but",
                    "by",
                    "for",
                    "if",
                    "in",
                    "into",
                    "is",
                    "nor",
                    "of",
                    "off",
                    "on",
                    "or",
                    "out",
                    "per",
                    "so",
                    "the",
                    "to",
                    "up",
                    "v",
                    "via",
                    "vs",
                    "yet"
                ]
            },
            {
                "name": "chicago",
                "note": "Chicago Manual of Style — also lowercases longer prepositions.",
                "minor_words": [
                    "a",
                    "about",
                    "above",
                    "across",
                    "after",
                    "against",
                    "along",
                    "amid",
                    "among",
                    "an",
                    "and",
                    "around",
                    "as",
                    "at",
                    "before",
                    "behind",
                    "below",
                    "beneath",
                    "beside",
                    "between",
                    "beyond",
                    "but",
                    "by",
                    "despite",
                    "down",
                    "during",
                    "except",
                    "for",
                    "from",
                    "if",
                    "in",
                    "inside",
                    "into",
                    "is",
                    "like",
                    "near",
                    "nor",
                    "of",
                    "off",
                    "on",
                    "onto",
                    "or",
                    "out",
                    "over",
                    "per",
                    "since",
                    "so",
                    "than",
                    "the",
                    "through",
                    "throughout",
                    "till",
                    "to",
                    "toward",
                    "under",
                    "until",
                    "unto",
                    "up",
                    "upon",
                    "v",
                    "via",
                    "vs",
                    "with",
                    "within",
                    "without",
                    "yet"
         
…