Free plan

Generate Sample Data

Make a table of invented sample data for demos and tests
POST
/v1/data/generate

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

  1. Choose this tool. You do not need to add a file.
  2. Choose the kind of table, or describe your own columns, and enter how many rows you want.
  3. Choose the format of the result, such as CSV or Excel.
  4. Press Generate.
  5. 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.
Open in the Studio
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;
FAQ

Frequently asked questions

Make an invented table for demos and tests: customers, orders, products, employees or transactions, or your own columns. All values are made up. The same seed gives the same table again.

Generate Sample Data works from text and settings, so no file is needed. Every input is optional.

Generate Sample Data is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/data/generate with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.