API Documentation
The latindictionary.io REST API lets you look up Latin words, translate between Latin and English, parse Latin text with AI, and generate inflection tables — all programmatically.
Python Client
The easiest way to use the API is with the official Python client:
pip install latindictionary-iofrom latindictionary_io import Client
client = Client()
# Latin → English
result = client.latin_to_english("canis")
print(result)
# English → Latin
result = client.english_to_latin("love")
print(result)
# Auto-detect language
result = client.auto_detect("amor")
print(result)
# AI-powered Latin parsing
result = client.latin_parse("arma virumque cano")
print(result)
# Inflection tables
result = client.inflection_table("amo")
print(result)The Python client also supports async usage via AsyncClient. See the README for full documentation.
Endpoints
/la-to-en/{word}Look up a Latin word and return English definitions, inflection data, part of speech, and frequency information.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
word | string | Yes | The Latin word to look up (URL path parameter) |
Example
curl "https://api.latindictionary.io/api/v1/la-to-en/canis"
# Response (truncated):
{
"data": {
"words": [{
"word": [{
"form": "canis",
"entry": [{
"dict": [{ "hdwd": "canis, canis", "pofs": "noun", "freq": "very frequent" }],
"mean": ["dog; hound; subordinate; \"jackal\"; dog-star/fish; ..."]
}]
}]
}]
}
}/en-to-la/{word}Look up an English word and return matching Latin equivalents with definitions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
word | string | Yes | The English word to look up (URL path parameter) |
Example
curl "https://api.latindictionary.io/api/v1/en-to-la/dog"
# Response (truncated):
{
"data": {
"words": [{
"word": [{
"form": "dog",
"entry": [{
"dict": [{ "hdwd": "canis, canis", "pofs": "noun", "freq": "very frequent" }],
"mean": ["dog; hound; subordinate; ..."]
}]
}]
}]
}
}/auto-detect/{text}Auto-detect whether the input is Latin or English and return the appropriate translation.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to detect and translate (URL path parameter) |
Example
curl "https://api.latindictionary.io/api/v1/auto-detect/amor"
# Response (truncated):
{
"language": "latin",
"data": {
"words": [{
"word": [{
"form": "amor",
"entry": [{ "dict": [{ "hdwd": "amor, amoris", "pofs": "noun" }], "mean": ["love; ..."] }]
}]
}]
}
}/latin-parseAI-powered Latin text parsing with lemmatization, morphological analysis, and dependency parsing.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | The Latin text to parse |
model | string | No | Model identifier for parsing |
max_candidates_per_token | integer | No | Maximum candidate parses per token |
max_alternates | integer | No | Maximum alternate parses to return |
allow_fallback | boolean | No | Allow fallback parsing if primary model fails (0 or 1) |
Example
curl "https://api.latindictionary.io/api/v1/latin-parse?q=arma%20virumque%20cano"
# Response (truncated):
{
"language": "latin",
"model": "fallback",
"data": {
"sentences": [{
"text": "arma virumque cano",
"tokens": [
{ "text": "arma", "lemma": "arma", "upos": "X" },
{ "text": "virumque", "lemma": "virumque", "upos": "X" },
{ "text": "cano", "lemma": "cano", "upos": "X" }
]
}]
}
}/inflection-tableGet the full inflection table for a Latin word — all declensions or conjugations.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
lemma | string | No | The dictionary form of the word |
entry_id | integer | No | Specific entry ID for disambiguation |
max_entries | integer | No | Maximum entries to return (default: 5) |
include_periphrastic | boolean | No | Include periphrastic forms (0 or 1, default: 1) |
Example
curl "https://api.latindictionary.io/api/v1/inflection-table?lemma=amo"
# Response (truncated):
{
"query": { "lemma": "amo", "token": "amo" },
"results": [{
"entry": {
"hdwd": "amo, amare, amavi, amatus",
"pofs": "verb",
"mean": "love, like; fall in love with; be fond of; have a tendency to;"
},
"table": { ... }
}]
}Notes
- The API is free to use. No authentication required.
- Please be respectful with request volume — no aggressive scraping.
- All endpoints return JSON responses.
- For the best experience, use the Python client library which includes retry logic and error handling.