Generate placeholder text with a single GET request. Control the number of paragraphs and sentences. Output as plain text or HTML.
| Param | Required | Description |
|---|---|---|
paragraphs | Optional | Number of paragraphs (default 3) |
sentences | Optional | Sentences per paragraph (default 5) |
format | Optional | "text" or "html" (default "text") |
curl "https://api-snap.com/api/lorem?paragraphs=3&sentences=5" \
-H "Authorization: Bearer snp_your_key"const res = await fetch(
"https://api-snap.com/api/lorem?paragraphs=2&format=html",
{ headers: { Authorization: "Bearer snp_your_key" } }
);
const { text } = await res.json();import requests
r = requests.get(
"https://api-snap.com/api/lorem",
params={"paragraphs": 5, "sentences": 4},
headers={"Authorization": "Bearer snp_your_key"},
)
print(r.json()["text"])Fill mockups and prototypes with realistic-looking text content
Generate test data for development and staging environments
Show placeholder content in empty CMS pages and templates
Test typography and layout with varying text lengths
Paragraphs, sentences, text or HTML. One GET request.
Get Your Free API Key