MockFast is a "Mock as a Service" platform that lets developers create and deploy custom mock APIs in seconds without writing any backend code. Perfect for frontend development, testing, and API prototyping.
With MockFast, you can:
- Create realistic API endpoints by simply defining your data structure
- Access a rich library of data types from basic to specialized (names, addresses, analytics, etc.)
- Deploy instantly to a reliable, production-ready environment
- Generate complex, nested data structures with array multipliers
This repository contains the official documentation for MockFast.io.
{
"name": "string.name.firstname",
"age": "number",
"email": "string.mail.gmail"
}https://mockfast.io/api/YOUR_ID
fetch('https://mockfast.io/api/YOUR_ID')
.then(response => response.json())
.then(data => console.log(data)); {
"name": "Sophie",
"age": "545",
"email": "user_160@gmail.com",
}MockFast supports a wide range of data types:
string- Random text stringsnumber- Random numbersboolean- True/false valuesemail- Valid email addressesuuid- Unique identifiersdate- Date stringslorem- Lorem ipsum text
- Name types - Generate realistic names (fullname, firstname, lastname)
- Address types - Generate address components or full addresses
- Mail types - Email addresses from various providers
- Money types - Currencies, symbols, and prices
- Review types - Rating numbers and review text
- Country types - Country information and metadata
- Event types - Event details including venues and dates
- Color types - Color codes in various formats
- File types - File metadata and path information
- Weather types - Weather conditions and location data
- Analytics types - Website analytics and metrics
Generate multiple items dynamically with the special __multiply property:
{
"categories": [
{
"__multiply": "2-5",
"name": "string",
"id": "uuid"
}
]
}This generates between 2-5 category objects, each with random data.
Create realistic API responses with nested objects and arrays:
{
"user": {
"name": "string.name.fullname",
"email": "email",
"orders": [
{
"__multiply": "3-8",
"orderId": "uuid",
"total": "number.money.price",
"items": [
{
"__multiply": "1-4",
"productId": "uuid",
"name": "string",
"price": "number.money.price"
}
]
}
]
}
}Sort your API responses easily with query parameters:
| Feature | Query Parameter | Example | Description |
|---|---|---|---|
| Basic Sorting | ?sort=fieldname |
?sort=age |
Sort by a single field (ascending by default) |
| Explicit Direction | ?sort=fieldname:direction |
?sort=age:desc |
Sort by a field with explicit direction (asc or desc) |
| Multi-Field Sorting | ?sort=field1&sort=field2 |
?sort=age&sort=name |
Sort by multiple fields (applied in order) |
| Mixed Direction | ?sort=field1:asc&sort=field2:desc |
?sort=age:asc&sort=name:desc |
Sort by different fields with different directions |
| Default Direction | ?sort=field&order=direction |
?sort=age&order=desc |
Set a default direction for fields without explicit direction |
For data like:
[
{
"name": "Bob",
"age": 25,
"email": "bob@example.com"
},
{
"name": "Charlie",
"age": 30,
"email": "charlie@example.com"
},
{
"name": "Alice",
"age": 30,
"email": "alice@example.com"
}
]Using ?sort=age:asc&sort=name:desc would return:
- Bob (age 25) - lowest age first
- Charlie (age 30) - then by name in descending order for same ages
- Alice (age 30) - then by name in descending order for same ages
- Create basic mock APIs with standard types
- Access public endpoints
- Use basic data types (string, number, etc.)
- Advanced types (name, address, etc.)
- Private endpoints with authentication
- Custom delays and HTTP codes
- Usage tracking
Need help? Reach out to us:
If MockFast has been helpful to you, please consider:
- Giving this repo a star ⭐
- Sharing feedback on our website
- Supporting the project by buying us a coffee
This documentation is licensed under MIT License.
