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
| Parameter | Type | Description |
|---|
source | string | The dictionary ID (from dictionaryId in search results). |
id | string | The 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
| Field | Type | Description |
|---|
id | string | Unique entry identifier. |
word | string | The headword (lemma form). |
htmlContent | string | Rich HTML content with definitions, examples, etymology, and more. Safe to render directly. |
plainText | string | Plain text version of the content (for indexing/preview). |
sourceLang | string | ISO 639-1 source language code. |
targetLang | string | null | ISO 639-1 target language code (null for monolingual). |
dictionaryId | string | The dictionary this entry belongs to. |
dictionaryName | string | Human-readable dictionary name. |
partOfSpeech | string | undefined | Primary part of speech. |
phonetic | string | undefined | IPA pronunciation transcription. |
synonyms | string[] | undefined | List of synonyms, if available. |
antonyms | string[] | undefined | List of antonyms, if available. |
examples | string[] | undefined | Usage examples. |
hasAudio | boolean | Whether pronunciation audio is available. |
audioUrl | string | undefined | Direct URL to the pronunciation audio file. |