What is it?
The Diwigo quotes API returns inspirational quotes in English or French, one or several at a time, with their author.
It answers with JSON and is included in the free plan: 10,000 requests per API key and per month.
Example request
GET https://landing.diwigo.com/api/?key=YOUR_API_KEY"e=classic&lang=en&nb=1
Parameters
| Parameter | Description |
|---|---|
key | Your API key (required) |
quote | Category: classic, inspirobot or kaamelott |
lang | en or fr |
nb | Number of quotes, 1–10 |
Example response
{
"content": "Success is falling seven times, getting up eight.",
"author": "Japanese Proverb"
}
Code examples
cURL
curl "https://landing.diwigo.com/api/?key=YOUR_API_KEY"e=classic&lang=en&nb=1"
JavaScript
const res = await fetch("https://landing.diwigo.com/api/?key=YOUR_API_KEY"e=classic&lang=en&nb=1");
const data = await res.json();
console.log(data);
PHP
<?php
$response = file_get_contents("https://landing.diwigo.com/api/?key=YOUR_API_KEY"e=classic&lang=en&nb=1");
$data = json_decode($response, true);
print_r($data);
Python
import requests
response = requests.get("https://landing.diwigo.com/api/?key=YOUR_API_KEY"e=classic&lang=en&nb=1")
print(response.json())
Use cases
- Quote of the day widgets
- Loading screens and empty states
- Newsletters and social posts
Quotes: questions and answers
What does the Quotes API do?
The Diwigo quotes API returns inspirational quotes in English or French, one or several at a time, with their author.
How do I call the Quotes API?
Send a GET request to https://landing.diwigo.com/api/?key=YOUR_API_KEY"e=classic&lang=en&nb=1 with your own API key instead of YOUR_API_KEY. It answers with JSON.
Is the Quotes API free?
Yes, it is included in the free plan: 10,000 requests per API key and per calendar month, shared by all Diwigo endpoints. Higher limits are available on request.