Logo

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.

Base URL: https://api.latindictionary.io/api/v1Python Package →GitHub →

Python Client

The easiest way to use the API is with the official Python client:

pip install latindictionary-io
from 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

GET/la-to-en/{word}

Look up a Latin word and return English definitions, inflection data, part of speech, and frequency information.

Parameters

NameTypeRequiredDescription
wordstringYesThe 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; ..."]
        }]
      }]
    }]
  }
}
GET/en-to-la/{word}

Look up an English word and return matching Latin equivalents with definitions.

Parameters

NameTypeRequiredDescription
wordstringYesThe 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; ..."]
        }]
      }]
    }]
  }
}
GET/auto-detect/{text}

Auto-detect whether the input is Latin or English and return the appropriate translation.

Parameters

NameTypeRequiredDescription
textstringYesThe 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; ..."] }]
      }]
    }]
  }
}
GET/latin-parse

AI-powered Latin text parsing with lemmatization, morphological analysis, and dependency parsing.

Parameters

NameTypeRequiredDescription
qstringYesThe Latin text to parse
modelstringNoModel identifier for parsing
max_candidates_per_tokenintegerNoMaximum candidate parses per token
max_alternatesintegerNoMaximum alternate parses to return
allow_fallbackbooleanNoAllow 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" }
      ]
    }]
  }
}
GET/inflection-table

Get the full inflection table for a Latin word — all declensions or conjugations.

Parameters

NameTypeRequiredDescription
lemmastringNoThe dictionary form of the word
entry_idintegerNoSpecific entry ID for disambiguation
max_entriesintegerNoMaximum entries to return (default: 5)
include_periphrasticbooleanNoInclude 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