Lorem Ipsum Generator
Generate random lorem ipsum placeholder text as paragraphs, sentences or words, returned as one string and as an array.
Result
Press “Run” to see the result.
Call GET /v1/lorem-ipsum to get random Latin placeholder text. Choose the unit with type (paragraphs, sentences or words) and the amount with count (1-100). The default count is 3 paragraphs, 5 sentences or 50 words.
Sentences have 6 to 15 random words and paragraphs 4 to 7 sentences. By default the text starts with the classic "Lorem ipsum dolor sit amet,", which is added in front of the generated words; set start_with_lorem=false to skip it.
The response contains text (paragraphs joined by blank lines, sentences and words by spaces) and items, the same content as an array, which is handy for filling lists or multiple fields.
Use this in your code
curl "https://apibox.io.vn/v1/lorem-ipsum?type=sentences&count=2" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/lorem-ipsum?type=sentences&count=2', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const data = await res.json();
console.log(data);import requests
res = requests.get(
"https://apibox.io.vn/v1/lorem-ipsum?type=sentences&count=2",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/lorem-ipsum?type=sentences&count=2');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
How do I generate a number of words instead of paragraphs?
Use type=words&count=50. Note that the leading "Lorem ipsum dolor sit amet," is added on top unless start_with_lorem=false.
Can the text start without "Lorem ipsum"?
Yes, set start_with_lorem=false to get only random words.
What is the maximum count?
100 paragraphs, sentences or words per request.