DDiwigo API

Lorem Ipsum Generator API

Placeholder text in paragraphs, sentences or words.

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

ParameterDescription
keyYour API key (required)
loremHow many, 1–50 (default 3)
unitparagraphs, sentences or words (default paragraphs)
formatjson, text or html (default json)

Code examples

cURL
curl "https://landing.diwigo.com/api/?key=YOUR_API_KEY&lorem=3&unit=paragraphs&format=html"
JavaScript
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
<?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);
Python
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.