Loading Developer Playground

Loading ...

Skip to main content
Share:

Mock API Generator

Instant REST API endpoints with realistic sample data. No setup required - just use the endpoints directly in your projects.

Live API Ready to Use
/api/mock/users?count=10&seed=12345&page=1&limit=10

Configure API

1100
150

Same seed = same data. Share URLs with consistent results.

API Features

  • Full CRUD operations
  • Pagination support
  • CORS enabled
  • Deterministic with seed
  • Realistic fake data
GET/api/mock/users
GET/api/mock/users/1
POST/api/mock/users
PUT/api/mock/users/1
PATCH/api/mock/users/1
DELETE/api/mock/users/1

Query Parameters

ParameterDefaultDescription
count10Total number of records (1-1000)
seed12345Seed for deterministic data generation
page1Page number for pagination
limit10Records per page (1-100)

Quick Start Examples

JavaScript (fetch)

fetch('/api/mock/users?count=10&seed=12345')
  .then(res => res.json())
  .then(data => console.log(data))

cURL

curl "/api/mock/users?count=10&seed=12345"

Frequently Asked Questions

How do I use the mock API endpoints?

Simply copy the endpoint URL and use it in your application. The API supports GET, POST, PUT, PATCH, and DELETE methods. All endpoints are CORS-enabled, so you can use them from any frontend application.

What is the "seed" parameter?

The seed parameter ensures deterministic data generation. Using the same seed will always return the same data, which is useful for testing and sharing consistent API responses with your team.

How does the Custom API Builder work?

The Custom API Builder lets you define your own data schema with 100+ field types. Build your schema using the visual editor or JSON, then generate data instantly. You get a shareable URL that returns your custom data format.

What field types are available?

We offer 100+ field types across categories: Person (name, email, phone), Internet (URL, IP, password), Commerce (product, price), Location (address, city), Date/Time, Finance (credit card, IBAN), Text (lorem ipsum), Numbers, IDs (UUID, ObjectId), and more.

Is the API rate limited?

The mock API is designed for development and testing purposes. While there are no strict rate limits, please use it responsibly. For production applications, we recommend setting up your own mock server.

Do POST/PUT/DELETE actually save data?

No, the API is stateless. POST requests will echo back your data with a generated ID, PUT/PATCH will merge with the generated data, and DELETE will return a success message. This makes it perfect for testing frontend CRUD operations without affecting any real database.