API Reference

Reference for the public GET endpoints below. Responses include JSON, text, binary files, SVG and event streams. No authentication required.

Base URL: https://api.lorm.pro

Lorem Ipsum

Generate placeholder text with deterministic seeds.

GET/api/lorem

Generate lorem ipsum text.

Parameters

NameTypeDescription
wordsnumberNumber of words to generate
sentencesnumberNumber of sentences to generate
paragraphsnumberNumber of paragraphs to generate
seedintegerDeterministic numeric seed for reproducible output

Example

curl "https://api.lorm.pro/api/lorem?words=50&seed=42"

# Returns an object with data (text) and meta (count, seed, generatedAt)

Datasets

Generate structured data in JSON, CSV, or NDJSON formats.

GET/api/dataset/:type

Generate records for users, products, orders, employees, companies, invoices or addresses.

Parameters

NameTypeDescription
typepathDataset type listed above
rowsintegerNumber of records: 1–100000 (default: 10)
formatstringOutput format: json, csv, ndjson, sql (default: json)
seedintegerDeterministic numeric seed

Example

curl "https://api.lorm.pro/api/dataset/users?rows=2&format=json&seed=42"

# Returns a JSON array of two synthetic user records

Files

Stream dummy binary files of any size.

GET/api/dummy-file/:size

Stream a dummy binary file. Supports sizes from 1KB to 1GB.

Parameters

NameTypeDescription
sizepathFile size: 1kb, 10kb, 100kb, 1mb, 10mb, 100mb, 1gb

Example

curl -o test.bin "https://api.lorm.pro/api/dummy-file/10mb"

# Downloads a 10MB binary file

Images

Generate SVG placeholder images with custom dimensions and colors.

GET/api/image/:dimensions

Generate an SVG placeholder image. Dimensions format: WIDTHxHEIGHT.

Parameters

NameTypeDescription
dimensionspathImage dimensions, e.g. 400x300
bgstringBackground color hex (default: cccccc)
colorstringText color hex (default: 666666)
textstringCustom text overlay

Example

curl "https://api.lorm.pro/api/image/400x300?bg=0a0a0b&text=Hello"

<!-- Returns an SVG image -->

Mock APIs

Fake REST endpoints with realistic data and configurable behavior.

GET/api/mock/:resource

Returns synthetic records with pagination metadata.

Parameters

NameTypeDescription
resourcepathusers, products, orders, employees, companies, invoices, addresses
countintegerSimulated total count for pagination metadata (default: 10)
seedintegerDeterministic numeric seed
pagenumberPage number for pagination
limitnumberItems per page (default: 10)

Example

curl "https://api.lorm.pro/api/mock/users?limit=2&seed=42"

# Returns an object with data (records) and meta (pagination details)

Logs

Generate realistic log lines in various formats.

GET/api/logs/:type

Generate log lines in nginx, apache or syslog format.

Parameters

NameTypeDescription
typepathLog format: nginx, apache, syslog
linesintegerNumber of lines: 1–100000 (default: 100)
seedintegerDeterministic numeric seed

Example

curl "https://api.lorm.pro/api/logs/nginx?lines=3&seed=42"

192.168.1.42 - - [15/Mar/2026:04:20:00 +0000] "GET /api/users HTTP/1.1" 200 1234
10.0.0.15 - admin [15/Mar/2026:04:20:01 +0000] "POST /api/orders HTTP/1.1" 201 567
172.16.0.8 - - [15/Mar/2026:04:20:02 +0000] "GET /health HTTP/1.1" 200 15

Events

Server-Sent Events (SSE) streams for real-time testing.

GET/api/events

Open an SSE stream of generated events.

Parameters

NameTypeDescription
typesstringComma-separated types: user_signup, purchase_completed, page_view, login, logout, error, api_call
intervalnumberInterval between events in ms (default: 1000)
countintegerEvents before closing: 1–100 (default: 10)
seedintegerDeterministic numeric seed

Example

curl -N "https://api.lorm.pro/api/events?types=page_view&interval=1000&count=3&seed=42"

# Returns three SSE messages with event, data and id fields