Aller au contenu
GET /v1/similar

Similar-meaning words

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/words-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/words-api/v1/similar" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/words-api/v1/similar", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/words-api/v1/similar");
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/words-api/v1/similar",
    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": {
        "type": "similar_meaning",
        "word": "ocean",
        "count": 20,
        "results": [
            {
                "tags": [
                    "syn",
                    "n",
                    "results_type:primary_rel"
                ],
                "word": "sea",
                "score": 40041792
            },
            {
                "tags": [
                    "n"
                ],
                "word": "expanse",
                "score": 30041645
            },
            {
                "tags": [
                    "adj",
                    "n",
                    "prop"
                ],
                "word": "oceanic",
                "score": 30041524
            },
            {
                "tags": [
                    "n"
                ],
                "word": "seabed",
                "score": 30040935
            },
            {
                "tags": [
                    "n"
                ],
                "word": "seafloor",
                "score": 30040708
            },
            {
                "tags": [
                    "adj",
                    "prop"
                ],
                "word": "oceanographic",
                "score": 30040704
            },
            {
                "tags": [
                    "n"
                ],
                "word": "pelagic",
                "score": 30040597
            },
            {
                "tags": [
                    "n"
                ],
                "word": "oceanography",
                "score": 30040196
            },
            {
                "tags": [
                    "n"
                ],
                "word": "marine",
                "score": 30039769
            },
            {
                "tags": [
                    "n"
                ],
                "word": "midstream",
                "score": 30039492
            },
            {
                "tags": [
                    "n"
                ],
                "word": "coast",
                "score": 30039440
            },
            {
                "tags": [
                    "n"
                ],
                "word": "pond",
                "score": 30039027
            },
            {
                "tags": [
                    "n"
                ],
                "word": "water",
                "score": 30035370
            },
            {
                "tags": [
                    "n"
                ],
                "word": "seawater",
                "score": 30029515
            },
            {
                "tags": [
                    "n"
                ],
                "word": "waters",
                "score": 30015259
            },
            {
                "tags": [
                    "n"
                ],
                "word": "seaway",
                "score": 30012345
            },
            {
                "tags": [
          
…