Vai al contenuto
GET /v1/search

Example sentences with translations

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/tatoeba-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/tatoeba-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tatoeba-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tatoeba-api/v1/search");
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/tatoeba-api/v1/search",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "to": "deu",
        "from": "eng",
        "count": 10,
        "query": "good morning",
        "total": 105,
        "sentences": [
            {
                "id": 2258234,
                "lang": "eng",
                "text": "Good morning.",
                "lang_name": "English",
                "translations": [
                    {
                        "id": 382123,
                        "lang": "deu",
                        "text": "Guten Morgen!",
                        "lang_name": "German"
                    },
                    {
                        "id": 4325231,
                        "lang": "deu",
                        "text": "Guten Morgen.",
                        "lang_name": "German"
                    },
                    {
                        "id": 380701,
                        "lang": "deu",
                        "text": "Hallo!",
                        "lang_name": "German"
                    },
                    {
                        "id": 659813,
                        "lang": "deu",
                        "text": "Grüß Gott!",
                        "lang_name": "German"
                    },
                    {
                        "id": 676082,
                        "lang": "deu",
                        "text": "Guten Tag!",
                        "lang_name": "German"
                    },
                    {
                        "id": 3631301,
                        "lang": "deu",
                        "text": "Guten Tag.",
                        "lang_name": "German"
                    },
                    {
                        "id": 438751,
                        "lang": "deu",
                        "text": "Guten Abend!",
                        "lang_name": "German"
                    },
                    {
                        "id": 2346428,
                        "lang": "deu",
                        "text": "Ich grüße dich.",
                        "lang_name": "German"
                    },
                    {
                        "id": 1531832,
                        "lang": "deu",
                        "text": "Servus.",
                        "lang_name": "German"
                    },
                    {
                        "id": 10298103,
                        "lang": "deu",
                        "text": "Hallo.",
                        "lang_name": "German"
                    },
                    {
                        "id": 10298104,
                        "lang": "deu",
                        "text": "Morgen.",
                        "lang_name": "German"
                    },
                    {
                        "id": 10298105,
                        "lang": "deu",
                        "text": "Grüß Gott.",
                        "lang_name": "German"
                    },
                    {
                        "id": 1285974,
            
…