Overview
Mockaroo lets you generate realistic fake datasets in JSON, CSV, SQL, or XML with fully customizable schemas. You define field names and types (name, email, phone, etc.) and the API returns rows of structured mock data. An API key is required and the free tier allows up to 1,000 rows per request.
Beginner Tip
Design your schema visually on the Mockaroo website first, then copy the generated API URL to use in your code — this is much easier than constructing the schema payload by hand.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"status": "success",
"data": {
"result": "Data from Mockaroo",
"description": "Generate fake data to JSON, CSV, TXT, SQL and XML",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
id Auto-incremented row number (if Row Number type is used) name Generated name value according to the chosen type (e.g. Full Name) email Randomly generated email address phone Generated phone number in the chosen format Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://api.mockaroo.com/api/generate.json?count=10&key=YOUR_API_KEY";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →GeneradorDNI
GeneradorDNI is a data generator API that creates realistic fake profiles including personal identity numbers, vehicle data, bank accounts, and credit card details for testing purposes.
Mailsac
⭐ Beginner's PickMailsac lets you create disposable email addresses and read incoming messages via API — ideal for testing email-sending features in your app.
Randommer
Randommer is a multi-purpose random data API that generates names, phone numbers, credit card numbers, text, and more — all through a single key-authenticated endpoint.
Bacon Ipsum
⭐ Beginner's PickBacon Ipsum is a fun lorem ipsum generator that returns meat-themed placeholder text in JSON format.
Yes No
⭐ Beginner's PickYes No is a fun, no-auth-required API that returns a random yes or no answer along with a GIF image.