Skip to main content

What is Mockd?

Mockd is a free REST API that can be used to generate test data. You don't need to create an account or obtain an API key. You can start using the Mockd REST API right away!

Example

Use command prompt or terminal to run the following:

curl
curl -H "Content-Type: application/json" -d '{"fields": {"firstName":"male-first-name"}}' https://api.mockd.info/

You should get back a response that looks something like this:

curl response
{"firstName":"vince"}

What just happened?

Mockd processed a request to generate a pseudo-random value for a custom JSON field called "firstName" with a type of "male-first-name".

The "name" field can be whatever you want displayed in the response payload. The type should match one of the supported system types found within this site's documentation.