cURL
curl --request GET \ --url https://api.example.com/v1/lexemes/{id}
{ "id": 123, "lemma": "<string>", "language_id": 123, "language": "<string>", "pos": "<string>", "reading": "<string>", "romanization": "<string>", "source": "<string>", "senses": [ {} ], "pronunciations": [ {} ], "etymology": {}, "frequency": {} }
Get a single lexeme with full details
GET https://api.langdex.co/v1/lexemes/{id}
senses
pronunciations
etymology
frequency
forms
translations
curl "https://api.langdex.co/v1/lexemes/56789?include=senses,pronunciations,etymology,frequency" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "id": 56789, "lemma": "水", "language_id": 1234, "language": "jpn", "pos": "noun", "reading": "みず", "romanization": "mizu", "source": "kaikki", "senses": [ { "id": 111, "sense_order": 1, "gloss": "water", "meaning_id": 98765, "pos": "noun", "definitions": [ { "language": "eng", "text": "The liquid form of H2O, essential for life" } ], "examples": [ { "text": "水を飲む", "translation": "to drink water" } ] }, { "id": 112, "sense_order": 2, "gloss": "Wednesday", "meaning_id": 98766, "pos": "noun", "register": "abbreviation", "definitions": [ { "language": "eng", "text": "Short for 水曜日 (Wednesday)" } ] } ], "pronunciations": [ { "ipa": "mizɯ", "audio_url": "https://cdn.langdex.co/audio/jpn/mizu.mp3" } ], "etymology": { "text": "From Old Japanese 水 (mi₁du), from Proto-Japonic *mentu" }, "frequency": { "rank": 342, "count": 1847293, "per_million": 3421.5, "corpus": "opensubtitles-ja" } }
curl "https://api.langdex.co/v1/lexemes/12345?include=forms" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "id": 12345, "lemma": "walk", "language": "eng", "pos": "verb", "forms": [ {"form": "walk", "features": ["verb", "infinitive"]}, {"form": "walks", "features": ["verb", "present", "3sg"]}, {"form": "walked", "features": ["verb", "past"]}, {"form": "walked", "features": ["verb", "past-participle"]}, {"form": "walking", "features": ["verb", "present-participle"]} ] }
{ "error": { "code": "not_found", "message": "Lexeme not found: 99999999" } }