Sample data from a single request
Send a text description, get made-up rows back. Use it in test setups, demos and pipelines. Every name, email and address is fictitious.
Your API keys
Keys act for your account, are limited per key, and can be revoked at any time. Keep them out of client-side code.
Try it
curl -X POST https://sample-data-generator.orbitly.apps.webbuddy.store/api/v1/generate \
-H "Authorization: Bearer osg_..." \
-H "Content-Type: application/json" \
-d '{"prompt":"Online store orders with products, quantities, prices and delivery status","rows":500,"format":"csv"}' \
-o orders.csvThe response headers x-seed, x-total-rows and x-plan-source tell you what was made. CSV, JSON and JSON lines are streamed, so large sets start downloading at once.
POST /api/v1/generate
| Field | Meaning |
|---|---|
prompt | What the data is about, up to 500 characters. Real people, secrets and harmful requests are refused. |
template | Instead of a prompt: an id from GET /api/v1/templates (industry templates, Orbitly app templates, your saved templates). |
plan | Instead of a prompt: a plan returned earlier with output=plan. The same plan, seed and rows always give the same data. |
rows | 1 to 100,000 (default 100). Linked tables: up to 20,000 in the first table. xlsx and sql: up to 50,000. |
format | json (default), csv, jsonl, xlsx or sql. |
multi | true to plan several linked tables. Add table to get one of them; without it csv returns a zip. |
locale, language | Names and address formats (us, uk, in, eu, de, fr, es, br, au, ae, ca, other) and the language of planned column names (en, es, fr, de, pt, hi). |
seed, anchor | A fixed seed and end date make the output repeatable. Without a seed, one is chosen and returned in the x-seed header. |
output | data (default), plan (just the planned columns) or feed (save a stable link; add rolling: true to keep it ending today). |
Stable links
A feed saves a plan, seed and size behind a fixed address: https://sample-data-generator.orbitly.apps.webbuddy.store/feed/<id>.csv. Reading it makes the file again, so the same address always returns the same rows. Make one in the generator under Share and reuse, or with output=feed.
Limits and errors
- 401: missing or invalid key. 422: the request was refused by the safety checks. 429: over the limit; retryAfter says when to try again.
- Safety: requests for real people's data, secrets and harmful content are refused, and planned columns for card numbers, passwords or ID numbers are removed.