Skip to content
MCP serversearch_libraryDocs menu

Search the library

Search Interlinea's library of Latin and Ancient Greek texts by author, work title or topic (war, love, the gods, friendship, death, rhetoric, letters, comedy).

TOOLsearch_library

Matches English, Latin and Greek names and ignores accents. Returns authors and works, best known first, each with a url. Pass a work's url to get_text to read its opening, or a citation such as "Aeneid 4.1" to start elsewhere.

Input

Input
NameDescription
querystringRequiredWords from a name or title, or a topic: "Virgil", "Aeneid", "Ὅμηρος", "war".

Up to 200 characters.

langstringOptionalla for Latin, grc for Ancient Greek.

One of la, grc.

limitintegerOptionalWorks to return, at most 50.

Default 10. From 1 to 50.

offsetintegerOptional

Default 0.

Output

structuredContent has these fields, and content repeats the same JSON as one text item.

Output fields
NameDescription
querystring
langstring or nullLanguage code: la (Latin) or grc (Ancient Greek).

One of la, grc.

totalintegerMatching works.
offsetinteger
limitinteger
nextstring or nullThe next page of works.
topicsarray of objectHand-picked works for a topic the query names (war, love, the gods, …).
4 fields
topics fields
keystring
labelstring
blurbstring
worksarray of object
10 fields
works fields
titlestring
nativeTitlestring or nullThe title in Latin or Greek, when it differs.
authorstring
langstringLanguage code: la (Latin) or grc (Ancient Greek).

One of la, grc.

genrestring or null
wordsinteger
sectionsintegerReading sections.
urnstring or nullCTS 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).
urlstringAbsolute URL.
apistringAbsolute URL.
authorsarray of object
6 fields
authors fields
namestring
nativeNamestring or null
langstringLanguage code: la (Latin) or grc (Ancient Greek).

One of la, grc.

periodstring or null
urlstringAbsolute URL.
apistringAbsolute URL.
worksarray of object
10 fields
works fields
titlestring
nativeTitlestring or nullThe title in Latin or Greek, when it differs.
authorstring
langstringLanguage code: la (Latin) or grc (Ancient Greek).

One of la, grc.

genrestring or null
wordsinteger
sectionsintegerReading sections.
urnstring or nullCTS 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).
urlstringAbsolute URL.
apistringAbsolute URL.

The same reads as GET /api/v1/search, with the same shape.

Example call

{
  "query": "aeneid",
  "lang": "la"
}

Example output

structuredContent
{
  "query": "aeneid",
  "lang": "la",
  "total": 4,
  "offset": 0,
  "limit": 10,
  "next": null,
  "topics": [],
  "authors": [
    {
      "name": "Vergil's Aeneid II",
      "nativeName": null,
      "lang": "la",
      "period": "late-republic-augustan",
      "url": "https://interlinea.aeterna-institute.org/library/latin/vergil-s-aeneid-ii",
      "api": "https://interlinea.aeterna-institute.org/api/v1/library/latin/vergil-s-aeneid-ii"
    }
  ],
  "works": [
    {
      "title": "Aeneid",
      "nativeTitle": null,
      "author": "Vergil's Aeneid II",
      "lang": "la",
      "genre": "epic",
      "words": 5172,
      "sections": 19,
      "urn": null,
      "url": "https://interlinea.aeterna-institute.org/library/latin/vergil-s-aeneid-ii/aeneid",
      "api": "https://interlinea.aeterna-institute.org/api/v1/library/latin/vergil-s-aeneid-ii/aeneid"
    },
    {
      "title": "Aeneid",
      "nativeTitle": "Aeneis",
      "author": "Virgil",
      "lang": "la",
      "genre": "epic",
      "words": 63347,
      "sections": 223,
      "urn": "urn:cts:latinLit:phi0690.phi003",
      "url": "https://interlinea.aeterna-institute.org/library/latin/virgil/aeneid",
      "api": "https://interlinea.aeterna-institute.org/api/v1/library/latin/virgil/aeneid"
    },
    {
      "title": "Selections from The Aeneid (19 B.C.)",
      "nativeTitle": null,
      "author": "Imperialisms, Ancient and Modern",
      "lang": "la",
      "genre": null,
      "words": 284,
      "sections": 1,
      "urn": null,
      "url": "https://interlinea.aeterna-institute.org/library/latin/imperialisms-ancient-and-modern/selections-from-the-aeneid-19-b-c",
      "api": "https://interlinea.aeterna-institute.org/api/v1/library/latin/imperialisms-ancient-and-modern/selections-from-the-aeneid-19-b-c"
    },
    // 1 more
  ]
}