{"openapi":"3.1.0","info":{"title":"Latin Dictionary API","version":"1.0.0","summary":"Latin morphology, dictionaries and reading help, as JSON.","description":"Every form of every Latin word resolved to its headword, full entries combining Lewis & Short, Wiktionary, Lewis's Elementary Dictionary, Döderlein's synonyms, Meissner's phrases and Latin-in-Latin definitions; inflection tables; English → Latin; passage parsing; Allen & Greenough's grammar; and AI school-edition annotation. Free without a key (60 requests a minute); a free key from https://latindictionary.co/me raises that to 600 and unlocks the AI endpoints. Data is CC BY-SA: keep the `attribution` field with anything you republish.","contact":{"name":"Latin Dictionary","url":"https://latindictionary.co/docs/api"},"license":{"name":"CC BY-SA 4.0 (data)","url":"https://creativecommons.org/licenses/by-sa/4.0/"}},"servers":[{"url":"https://latindictionary.co/api/v1"}],"security":[{},{"bearer":[]},{"apiKey":[]}],"paths":{"/lookup":{"get":{"operationId":"lookup","summary":"Every reading of a Latin word form","description":"Recognises any inflected form (macrons optional, j/i and v/u interchangeable, enclitics -que/-ne/-ve split off) and returns each possible headword with its parse.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"A Latin word in any form","example":"amavisset"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lookup"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (60/min without a key, 600/min with one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/entry/{slug}":{"get":{"operationId":"entry","summary":"A full headword entry","description":"All homographs sharing the slug (e.g. malus: 'bad', 'apple tree', 'mast'), each with principal parts, senses, inflection tables, pronunciation, etymology, Lewis & Short, synonyms, phrases and Latin definitions.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","description":"Headword without macrons, lower case","example":"amo"}},{"name":"html","in":"query","schema":{"type":"string","enum":["1"]},"description":"Also return Lewis & Short as HTML with Perseus citation markup"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Entry"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (60/min without a key, 600/min with one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/search":{"get":{"operationId":"search","summary":"Instant search: forms, headword prefixes, English","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"Latin or English","example":"virt"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (60/min without a key, 600/min with one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/english/{word}":{"get":{"operationId":"english","summary":"English → Latin","description":"Latin words for an English word, led by Riddle & Arnold's English–Latin Lexicon (1864), with its distinctions and phrases.","parameters":[{"name":"word","in":"path","required":true,"schema":{"type":"string","description":"An English word","example":"courage"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (60/min without a key, 600/min with one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/parse":{"get":{"operationId":"parseGet","summary":"Parse a short passage","parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string","description":"Latin text","example":"Gallia est omnis divisa in partes tres."}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Parse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (60/min without a key, 600/min with one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"parse","summary":"Parse a passage (up to ~6,000 characters)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Latin text"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Parse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (60/min without a key, 600/min with one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/grammar/{section}":{"get":{"operationId":"grammar","summary":"A section of Allen & Greenough's New Latin Grammar","parameters":[{"name":"section","in":"path","required":true,"schema":{"type":"string","description":"Section number, 1–642","example":"419"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (60/min without a key, 600/min with one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/academy/{dictionary}/{slug}":{"get":{"operationId":"academy","summary":"An article from Smith's dictionaries of antiquities, biography & mythology, or geography","parameters":[{"name":"dictionary","in":"path","required":true,"schema":{"type":"string","enum":["antiquities","biography","geography"]}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","description":"Article slug","example":"toga"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (60/min without a key, 600/min with one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/word-of-the-day":{"get":{"operationId":"wordOfTheDay","summary":"Today's word, from the 1,000 commonest","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Entry"}}}}}}},"/explain":{"post":{"operationId":"explain","summary":"AI explanation of one sentence (API key)","description":"Chooses among the analyser's readings for each word, gives its role, a literal and an idiomatic translation, the clause structure and notes. Results are cached by sentence.","security":[{"bearer":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"One Latin sentence","example":"Arma virumque canō, Trōiae quī prīmus ab ōrīs Ītaliam, fātō profugus, Lāvīniaque vēnit lītora."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API key required"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (60/min without a key, 600/min with one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/edition":{"post":{"operationId":"edition","summary":"AI school-edition apparatus for a passage (API key)","description":"Latin glosses in the manner of Ørberg, numbered notes keyed to Allen & Greenough, and for each sentence an interpretātiō (easier Latin), an ōrdō (natural word order) and English. Cached per passage.","security":[{"bearer":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"A Latin passage"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API key required"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (60/min without a key, 600/min with one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Authorization: Bearer ld_…"},"apiKey":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string","description":"Machine-readable code"},"detail":{"type":"string","description":"Explanation"}}},"Lookup":{"type":"object","properties":{"query":{"type":"string","description":"As sent"},"normalized":{"type":"string","description":"Folded form used for matching"},"enclitic":{"type":["string","null"]},"readings":{"type":"array","items":{"type":"object","properties":{"headword":{"type":"string","description":"Headword with macrons","example":"amō"},"dictionary_form":{"type":"string","description":"School-edition headword","example":"amō -āre"},"part_of_speech":{"type":"string","description":"","example":"verb"},"form":{"type":"string","description":"The form with macrons","example":"amāvisset"},"parses":{"type":"array","items":{"type":"string","description":"","example":"3rd sg. plupf. act. subj."}},"gloss":{"type":"string","description":"Short English gloss"},"latin_definition":{"type":["string","null"]},"slug":{"type":"string","description":"","example":"amo"},"url":{"type":"string","description":""}}}},"attribution":{"type":"string","description":"Keep with republished data"}}},"Entry":{"type":"object","properties":{"slug":{"type":"string","description":""},"url":{"type":"string","description":""},"lemmas":{"type":"array","items":{"type":"object"}},"attribution":{"type":"string","description":""}}},"Parse":{"type":"object","properties":{"sentences":{"type":"array","items":{"type":"string","description":""}},"words":{"type":"array","items":{"type":"object"}},"attribution":{"type":"string","description":""}}}}}}