What is it?
The Diwigo lorem ipsum API generates placeholder text in paragraphs, sentences or words, as JSON, plain text or HTML.
It answers with JSON, plain text or HTML 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&lorem=3&unit=paragraphs&format=html
Parameters
| Parameter | Description |
|---|---|
key | Your API key (required) |
lorem | How many, 1–50 (default 3) |
unit | paragraphs, sentences or words (default paragraphs) |
format | json, text or html (default json) |
Code examples
curl "https://landing.diwigo.com/api/?key=YOUR_API_KEY&lorem=3&unit=paragraphs&format=html"
const res = await fetch("https://landing.diwigo.com/api/?key=YOUR_API_KEY&lorem=3&unit=paragraphs&format=html");
const data = await res.json();
console.log(data);
<?php
$response = file_get_contents("https://landing.diwigo.com/api/?key=YOUR_API_KEY&lorem=3&unit=paragraphs&format=html");
file_put_contents("result", $response);
import requests
response = requests.get("https://landing.diwigo.com/api/?key=YOUR_API_KEY&lorem=3&unit=paragraphs&format=html")
open("result", "wb").write(response.content)
Use cases
- Fill templates and themes during development
- Test typography and long texts
- Seed demo databases
Lorem ipsum: questions and answers
What does the Lorem ipsum API do?
The Diwigo lorem ipsum API generates placeholder text in paragraphs, sentences or words, as JSON, plain text or HTML.
How do I call the Lorem ipsum API?
Send a GET request to https://landing.diwigo.com/api/?key=YOUR_API_KEY&lorem=3&unit=paragraphs&format=html with your own API key instead of YOUR_API_KEY. It answers with JSON, plain text or HTML.
Is the Lorem ipsum 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.