Free plan
Generate Sample Data
Make a table of invented sample data for demos and tests
About this tool
This tool needs no file. It makes a table of made-up information, so you can test an app or show a demo without real people data. Pick a ready-made kind (customers, orders, products, employees or transactions) or describe your own columns. Using the same seed number gives the same table again.
For example, you make 500 fake customers to fill a demo spreadsheet.
How to use it
- Choose this tool. You do not need to add a file.
- Choose the kind of table, or describe your own columns, and enter how many rows you want.
- Choose the format of the result, such as CSV or Excel.
- Press Generate.
- Download the table.
What you get back
You get a new file with invented data. Every value is made up, so it is safe to share.
GOOD TO KNOW
No input file. Emails end in example.com, phone numbers use the 555 range and IP addresses the documentation range, so nothing generated can reach a real person.
TEST IT LIVE
Try Generate Sample Data in the Studio
One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Family
Data
Plan
Free
Method
POST
Endpoint
/v1/data/generate
Tool ID
data.generate
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Data
For developers
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/data/generate" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'template=customers' \
-F 'rows=100' \
-F 'columns=[{"name":"id","type":"id"},{"name":"email","type":"email"},{"name":"plan","type":"choice","values":["free","pro"]}]'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.data.generate({
"template": "customers",
"rows": 100,
"columns": "[{\"name\":\"id\",\"type\":\"id\"},{\"name\":\"email\",\"type\":\"email\"},{\"name\":\"plan\",\"type\":\"choice\",\"values\":[\"free\",\"pro\"]}]"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->data()->generate([
'template' => 'customers',
'rows' => 100,
'columns' => '[{"name":"id","type":"id"},{"name":"email","type":"email"},{"name":"plan","type":"choice","values":["free","pro"]}]',
]);
echo $result->requestId;