Shobdo Logo

Entry by ID

Retrieve the full content of a dictionary entry using its unique identifier and dictionary source. Entry IDs are obtained from search results.

GET /api/v1/entry/{source}/{id}

Path Parameters

ParameterTypeDescription
sourcestringThe dictionary ID (from dictionaryId in search results).
idstringThe entry ID (from id in search results).

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.shobdo.me/api/v1/entry/DICTIONARY_ID/42"

Example Response

{
  "ok": true,
  "data": {
    "id": "42",
    "word": "hello",
    "htmlContent": "<div class=\"shobdo-entry\">...</div>",
    "plainText": "Used as a greeting or to begin a phone conversation.",
    "sourceLang": "en",
    "targetLang": null,
    "dictionaryId": "...",
    "dictionaryName": "...",
    "partOfSpeech": "exclamation",
    "phonetic": "/həˈləʊ/",
    "hasAudio": true,
    "audioUrl": "https://..."
  }
}

Entry Object

FieldTypeDescription
idstringUnique entry identifier.
wordstringThe headword (lemma form).
htmlContentstringRich HTML content with definitions, examples, etymology, and more. Safe to render directly.
plainTextstringPlain text version of the content (for indexing/preview).
sourceLangstringISO 639-1 source language code.
targetLangstring | nullISO 639-1 target language code (null for monolingual).
dictionaryIdstringThe dictionary this entry belongs to.
dictionaryNamestringHuman-readable dictionary name.
partOfSpeechstring | undefinedPrimary part of speech.
phoneticstring | undefinedIPA pronunciation transcription.
synonymsstring[] | undefinedList of synonyms, if available.
antonymsstring[] | undefinedList of antonyms, if available.
examplesstring[] | undefinedUsage examples.
hasAudiobooleanWhether pronunciation audio is available.
audioUrlstring | undefinedDirect URL to the pronunciation audio file.

Assistant

Hi! I'm the Shobdo Assistant.
Ask me anything about the documentation.