Public APIs
Mockae favicon

Mockae

Test Data

Fake REST API powered by Lua.

Mockae's website screenshot

About Mockae

Mockae is an open-source tool for mocking REST APIs using Lua code execution. It allows users to define rules that customize response headers, HTTP status codes, and response bodies based on the URL, headers, and payload of incoming requests. Lua rules are executed before the API response is sent and can override the returned response.

The project is available for download on GitHub and is free to use. It also provides a hosted public API (at api.mockae.com) for testing purposes, offering read-only endpoints for sample resources such as products, carts, users, and coupons, as well as a status endpoint that simulates specific HTTP response codes.

This is aimed at developers who need to prototype or test applications against fake API responses, including simulating specific HTTP status codes and customizing response content without modifying underlying data.

Key features

  • Mock REST APIs with custom Lua code execution
  • Customize response headers, HTTP status codes, and bodies
  • Define rules based on incoming request URL, headers, and payload
  • Free public read-only API for testing (/products, /carts, /users, /coupons)
  • Simulate specific HTTP status codes via /status/{code} endpoint
  • Open-source, available for download on Github

Frequently asked questions

Is Mockae free to use?

Yes, Mockae is free and open-source, and a free public API is available for testing.

What language is used to customize mock responses?

Mockae uses Lua code to define rules that set headers, HTTP status, and response bodies based on incoming requests.

Can I modify data through the public API?

No, the free public API at api.mockae.com is read-only and data cannot be modified.

Where can I get the source code?

Mockae is open-source and available for download on Github.

Who is Mockae for?

It is aimed at developers who need to quickly create mock APIs for testing and prototyping.

Ad
Webz.io News API favicon

Webz.io News API

Webz.io News APIs provide global news data for search, monitoring, analytics, and AI applications, with powerful filters and natural-language search.

Learn more
Ad
SerpApi - Search API favicon

SerpApi - Search API

SerpApi's Search API makes it easy and fast to scrape Google and other search engines.

Learn more

Featured products

  • SerpApi - Search API favicon
  • Webz.io News API favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product