REST API · Texts
Words
Look a word up in the stored analyses.
GET
/api/v1/wordsA headword's spellings and meanings in context, and cited sentences where it occurs. Accents, breathings and macrons are ignored: fio finds fīō.
Parameters
| Name | Description |
|---|---|
lemmastring | RequiredDictionary form: amo, arma, λόγος. Up to 60 characters. Example |
langstring | OptionalDefaults to Greek for Greek letters, otherwise Latin. One of |
limitinteger | OptionalOccurrences, at most 50. Default |
Response
200 OK with a WordLookup object.
| Name | Description | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lemmastring | The headword asked for. | ||||||||||||||||||||||
langstring | Language code: la (Latin) or grc (Ancient Greek). One of | ||||||||||||||||||||||
entriesarray of object | Each headword spelling found, with the meanings it had in context.5 fields
| ||||||||||||||||||||||
occurrencesarray of object | 11 fields
| ||||||||||||||||||||||
creditsarray of string | Credit lines for the editions quoted above. | ||||||||||||||||||||||
notestring |
Errors
| Status | When |
|---|---|
400 Bad Request | A parameter is missing or invalid, or the reference isn't a text. |
429 Too Many Requests | Too many requests from one address. Wait a minute. |
500 Internal Server Error | Something went wrong on our side. |
Error bodies are described in Caching, limits and errors.