REST API · Texts
Analysis
The stored word-by-word analysis.
GET
/api/v1/analysisLemma, dictionary entry, part of speech, features, syntax and meaning in context for every word, with a translation per sentence. Stored analyses only: nothing is generated, so a sentence nobody has opened yet comes back with words: null.
Parameters
| Name | Description |
|---|---|
refstring | RequiredA library or graded-passage URL, a CTS URN (urn:cts:latinLit:phi0690.phi003.perseus-lat2:1.46) or a citation ("Virgil, Aeneid 1.46"). Up to 500 characters. Example |
sentenceinteger | OptionalOnly this sentence (0-based). Example |
Response
200 OK with a AnalysisResponse object.
| Name | Description | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kindstring | One of | ||||||||||||||||||||||||||||||||||
langstring | Language code: la (Latin) or grc (Ancient Greek). One of | ||||||||||||||||||||||||||||||||||
languagestring | |||||||||||||||||||||||||||||||||||
citationstring | |||||||||||||||||||||||||||||||||||
urnstring or null | CTS URN, e.g. urn:cts:latinLit:phi0690.phi003.perseus-lat2:1.1-1.11. Null when the edition has none (The Latin Library's own numbering). | ||||||||||||||||||||||||||||||||||
urlstring | Absolute URL. | ||||||||||||||||||||||||||||||||||
apistring | Absolute URL. | ||||||||||||||||||||||||||||||||||
prevLink or null | 4 fields
| ||||||||||||||||||||||||||||||||||
nextLink or null | 4 fields
| ||||||||||||||||||||||||||||||||||
creditCredit | 5 fields
| ||||||||||||||||||||||||||||||||||
analysedinteger | Sentences with a stored analysis. | ||||||||||||||||||||||||||||||||||
totalinteger | Sentences in the text. | ||||||||||||||||||||||||||||||||||
licensestring | The analyses adapt CC BY-SA text, so they are share-alike. Always | ||||||||||||||||||||||||||||||||||
notestring | |||||||||||||||||||||||||||||||||||
sentencesarray of AnalysedSentence | 4 fields
|
Errors
| Status | When |
|---|---|
400 Bad Request | A parameter is missing or invalid, or the reference isn't a text. |
404 Not Found | Not in the library. |
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.