Public APIs
Mockaroo favicon

Mockaroo

Test Data

Generate fake data to JSON, CSV, TXT, SQL and XML.

Mockaroo's website screenshot

About Mockaroo

Mockaroo is a random data generator and API mocking tool that produces data in JSON, CSV, SQL, Excel, and other formats. It provides two programmatic access methods: a Generate API for producing data from saved schemas or field definitions supplied in a request, and Mock APIs that let users configure custom URLs, request parameter handling, and simulated error responses to stand in for a backend that has not yet been built.

The Generate API supports output formats including JSON, CSV, tab-separated text, custom-delimited text, SQL insert statements, and XML, with parameters controlling record count, null handling, formatting, and file structure. It also supports uploading and deleting named datasets via CSV or plain text. Access to both APIs requires an API key, passed as a query parameter or request header.

Usage is tiered by plan: free accounts are limited to 200 requests per day and 5,000 records per download, Silver plans allow up to 1,000,000 records per day, and Gold plans allow up to 10,000,000 records per day, with paid plans required to generate data in the background rather than returning it directly in the response. The product is aimed at developers who need to generate mock or test data, or simulate API endpoints during front-end development before a backend exists.

Key features

  • Generate mock data via API in JSON, CSV, TXT, SQL, or XML format
  • Create Mock APIs to simulate backends with custom URLs, request handling, and error simulation
  • Upload, update, and delete custom datasets via API
  • Use saved schemas or define fields directly in the request body for data generation
  • List all available field types and their parameters via the types endpoint
  • Generate data in the background for larger record counts on paid plans

Frequently asked questions

Is there a free tier?

Yes, the free plan allows 200 API requests per day with a 5000 record limit per download.

What paid plans are available?

Silver plans allow 1,000,000 records/day and Gold plans allow 10,000,000 records/day, both with no request limit.

What output formats does the API support?

The Generate API supports JSON, CSV, TXT, custom-delimited, SQL, and XML formats.

How do I authenticate API requests?

Requests require an API key passed as a query string parameter called "key" or as an "X-API-Key" request header.

Can I mock a backend before it's built?

Yes, Mock APIs let you control URLs, handle request parameters, and simulate errors to simulate a backend for frontend development.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product