REST API · Library
Search
Search authors, works and topics.
GET
/api/v1/searchAuthors and works whose names or titles match, accent-insensitive, best known first. A query that names a topic (war, love, the gods, friendship, death, rhetoric, letters, comedy, …) also returns hand-picked works for it. An empty query lists works by rank.
Parameters
| Name | Description |
|---|---|
qstring | OptionalWords from a name or title, in English, Latin or Greek. Default |
langstring | OptionalOnly this language. One of |
limitinteger | OptionalAt most 100. Default |
offsetinteger | Optional Default |
Response
200 OK with a SearchResult object.
| Name | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
querystring | |||||||||||||||||||||||||||||
langstring or null | Language code: la (Latin) or grc (Ancient Greek). One of | ||||||||||||||||||||||||||||
totalinteger | Matching works. | ||||||||||||||||||||||||||||
offsetinteger | |||||||||||||||||||||||||||||
limitinteger | |||||||||||||||||||||||||||||
nextstring or null | The next page of works. | ||||||||||||||||||||||||||||
topicsarray of object | Hand-picked works for a topic the query names (war, love, the gods, …).4 fields
| ||||||||||||||||||||||||||||
authorsarray of AuthorSummary | 6 fields
| ||||||||||||||||||||||||||||
worksarray of WorkSummary | 10 fields
|
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.