xtract.bot
POST /api/lorem-ipsum

Generate Lorem ipsum placeholder text. Configurable length in paragraphs, sentences, or words. Returns plain text or HTML-wrapped paragraphs.

Generates Lorem ipsum placeholder text for design mocks and tests. Options: - `count` (default 3): how much to generate. - `unit`: `paragraph` (default), `sentence`, or `word`. The meaning of `count` depends on this. - `format`: `text` (default) or `html` (paragraphs wrapped in `<p>` tags). - `startWithLorem` (default true): begin the output with the classic "Lorem ipsum dolor sit amet…" opener.

Inputs

NameTypeDefaultDescription
unitenum (paragraphs | sentences | words)"paragraphs"What to count.
countnumber (1…1000)3How many of the chosen unit to emit.
startWithLorembooleantrueStart the first unit with the canonical Cicero opening.

Response

Modes: json, text. Cache: not cacheable.

Code samples

Built from the three-paragraphs example.


curl -X POST https://api.xtract.bot/api/lorem-ipsum \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Account-Id: $XTRACT_ACCOUNT_ID" \
  -H "X-Api-Key: $XTRACT_API_KEY" \
  -d '{
  "unit": "paragraphs",
  "count": 3,
  "startWithLorem": true
}'