/api/v2/search/translations does not actually return translations

I can't seem to actually get any results in the specified target language using the /search/translations API. Maybe I'm misunderstanding something, but these results seem incorrect (or at least misleading) to me.

Example searching for translations of the Spanish word "querer" in English:

URL: https://od-api.oxforddictionaries.com/api/v2/search/translations/es/en?q=querer

Response:

{
    "metadata": {
        "limit": "500",
        "offset": "0",
        "operation": "search",
        "provider": "Oxford University Press",
        "schema": "WordList",
        "sourceLanguage": "es",
        "targetLanguage": "en",
        "total": "1"
    },
    "results": [
        {
            "id": "querer",
            "inflection_id": "querer",
            "label": "querer",
            "matchString": "querer",
            "matchType": "inflection",
            "score": 162.50175,
            "word": "querer"
        }
    ]
}

Example searching for translations of the English word "want" in Spanish:

URL: https://od-api.oxforddictionaries.com/api/v2/search/translations/en/es?q=want

Response:

{
    "metadata": {
        "limit": "500",
        "offset": "0",
        "operation": "search",
        "provider": "Oxford University Press",
        "schema": "WordList",
        "sourceLanguage": "en",
        "targetLanguage": "es",
        "total": "12"
    },
    "results": [
        {
            "id": "want",
            "inflection_id": "want",
            "label": "want",
            "matchString": "want",
            "matchType": "inflection",
            "region": "gb",
            "score": 171.50887,
            "word": "want"
        },
        {
            "id": "wanted",
            "label": "wanted",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 21.417131,
            "word": "wanted"
        },
        {
            "id": "want_for",
            "label": "want for",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 20.02587,
            "word": "want for"
        },
        {
            "id": "want_out",
            "label": "want out",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 20.02587,
            "word": "want out"
        },
        {
            "id": "want_ad",
            "label": "want ad",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 20.02587,
            "word": "want ad"
        },
        {
            "id": "want_in",
            "label": "want in",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 20.02587,
            "word": "want in"
        },
        {
            "id": "waste_not%2C_want_not",
            "label": "waste not, want not",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 15.750978,
            "word": "waste not, want not"
        },
        {
            "id": "what_do_you_want%3F",
            "label": "what do you want?",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 15.750978,
            "word": "what do you want?"
        },
        {
            "id": "for_%28the%29_want_of_sth",
            "label": "for (the) want of sth",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 14.166969,
            "word": "for (the) want of sth"
        },
        {
            "id": "%28do_you%29_want_to_bet%3F",
            "label": "(do you) want to bet?",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 13.384733,
            "word": "(do you) want to bet?"
        },
        {
            "id": "not_to_want_to_know",
            "label": "not to want to know",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 13.384733,
            "word": "not to want to know"
        },
        {
            "id": "to_want_one%27s_bread_buttered_on_both_sides",
            "label": "to want one's bread buttered on both sides",
            "matchString": "want",
            "matchType": "headword",
            "region": "gb",
            "score": 8.473963,
            "word": "to want one's bread buttered on both sides"
        }
    ]
}

Comments

  • jvallejodiazjvallejodiaz Member

    Thank you very much for your comment.

    search/translations/<source-lang>/<target-lang> endpoint retrieves the API ids, for the given word, in the translations endpoint. We could say that it is the "search" for the bilingual datasets.

    Please, let me know if you have any further questions .

Sign In or Register to comment.