Dictum API Documentation

Dictum is an open-source API that allows you to generate random Latin phrases or quotes. This API is useful for generating placeholder text or for adding a touch of Latin to your next project.

Endpoints

GET /phrase

Returns a single randomly generated Latin phrase.

Example request:

fetch('https://dictumapi.com/phrase')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.log(error))

Example response:

{
  "phrase": "Celeritas est virtus.",
  "author": "Unknown",
  "source": "Unknown"
}

GET /quote

Returns a single randomly generated Latin quote.

Example request:

fetch('https://dictumapi.com/quote')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.log(error))

Example response:

{
  "quote": "Tempora mutantur, nos et mutamur in illis.",
  "author": "Unknown",
  "source": "Unknown"
}

GET /phrase/:count

Returns an array of count randomly generated Latin phrases.

Example request:

fetch('https://dictumapi.com/phrase/3')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.log(error))

Example response:

[
  {
    "phrase": "Amat victoria curam.",
    "author": "Unknown",
    "source": "Unknown"
  },
  {
    "phrase": "Verba volant, scripta manent.",
    "author": "Unknown",
    "source": "Unknown"
  },
  {
    "phrase": "Festina lente.",
    "author": "Unknown",
    "source": "Unknown"
  }
]

GET /quote/:count

Returns an array of count randomly generated Latin quotes.

Example request:

fetch('https://dictumapi.com/quote/3')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.log(error))

Example response:

[
  {
    "quote": "Dum spiro, spero.",
    "author": "Cicero",
    "source": "Unknown"
  },
  {
    "quote": "Ignorantia legis neminem excusat.",
    "author": "Unknown",
    "source": "Legal principle"
  },
  {
    "quote": "Si vis pacem, para bellum.",
    "author": "Vegetius",
    "source": "Epitoma Rei Militaris"
  }
]

Conclusion

With Dictum API, you can easily add Latin phrases to your project. The API is easy to use and has many benefits. So, if you're looking to add a touch of Latin to your project, be sure to try out Dictum API.

Related APIs in Data Access