Mockaroo API

Freemium

by Mockaroo

Provided by Mockaroo

Not yet rated
Platform
Web / API
Pricing
Freemium
Account required
Yes
Ads
Light
Last verified
3 hours ago
Developer
Mockaroo
Official URL

Overview

Mockaroo is a test data generator, and its API lets you produce that fake data from code instead of through the website. It is used for filling development databases, feeding automated tests and giving a front end something to display before the real back end exists.

There are two kinds of API. The Generate API returns rows of mock data on demand: you either name a schema you saved on the Mockaroo site or describe the fields in the request, each with a name, a data type and options such as the share of blank values or a formula. Output can be JSON, CSV, tab-separated text, a custom delimited format, SQL insert statements or XML. Other endpoints list the available data types and upload or delete your own datasets. Mock APIs are the second kind: you define custom URLs, how they react to request parameters and what errors they simulate, so an app can call something that behaves like a real service.

Every request needs an API key from a Mockaroo account. The free plan allows a limited number of API requests a day and limits how many records one download returns. Paid plans raise the daily volume a great deal and allow large jobs to run in the background, and an enterprise edition can be self-hosted as a Docker image. The documentation has moved from /api/docs to mockaroo.com/docs; the old address redirects.

Features

  • Generate API that returns mock data on demand
  • Fields defined in the request or taken from a saved schema
  • Output as JSON, CSV, tab-separated text, custom delimited, SQL or XML
  • Endpoint listing all available data types and their parameters
  • Upload and delete your own datasets through the API
  • Mock APIs with custom URLs and simulated errors
  • Background generation of large files on paid plans
  • API key sent as a query parameter or request header

Privacy

See the official privacy policy. Schemas and any datasets you upload are stored on Mockaroo servers unless you use the self-hosted enterprise edition.

Pros & Cons

Pros

  • Free plan includes API access
  • Same schemas work on the website and through the API
  • Several output formats, including ready-to-run SQL inserts
  • Mock APIs let front-end work start before the back end is built

Cons

  • An account and API key are required
  • The free plan has a daily request limit and a cap on records per download
  • Background generation of large volumes needs a paid plan
  • Self-hosting is only offered on the enterprise plan

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Developer APIs · JSONPlaceholder

    Free fake REST API for prototyping and testing.

    Not yet rated
    Free Web API
  • API Testing · Postman

    Builds, tests, and documents APIs.

    Not yet rated
    Freemium Web Windows
  • API Testing · HTTPie

    A user-friendly command-line and desktop HTTP client.

    Not yet rated
    Free Web Windows
  • Developer APIs · GitHub

    Accesses repositories, issues, and pull requests via API.

    Not yet rated
    Freemium API