The most flexible way to mock REST APIs with Lua code execution
Custom API
Generate custom API responses instantly with Mockae.
Lua Powered
Personalize headers, bodies, and HTTP codes with Lua.
Free & Open source
Enjoy free, reliable fake APIs for testing and prototyping
When to use Mockae ?
Mockae is an open-source fake API available for download on Github. With Mockae, you can quickly and easily create mock APIs using the power of Lua. You can define rules effortlessly and customize responses, including HTTP status codes, headers, and response bodies.
Custom rules with Lua
With Lua code, you can easily set the headers, HTTP status, and response to be returned based on the URL, headers, and payload of incoming requests. Custom Lua rules are executed before the API response is sent and can override the response of the call.
Here’s an overview of the possibilities offered by Lua:
Free public API
A public API is available for testing. Note: This API is read-only (You cannot modify the data)
Endpoint:
https://api.mockae.com/fakeapi/{resource}
/products | 50 products |
/carts | 20 carts |
/users | 20 users |
/coupons | 20 coupons |
/status | Simulate HTTP response status codes /status/403 returns an HTTP status code 403 |
Try it
Custom default rules
The default rules of free public API are quite simple and only allow returning a specific HTTP status based on the URL.