MockAPI — Free Fake REST API Generator

Define fake REST endpoints and call them from your front end or tests.

New projects start with sample /users, /products and /posts endpoints.

How It Works

1
Create a project - get sample endpoints with /users, /products, /posts
2
Add custom endpoints with your own JSON responses, status codes, and delays
3
Use the API URL in your frontend: fetch("/api/PROJECT_ID/users")

Frequently asked questions

Can I customize HTTP status codes and response delays?

Yes. Each mock endpoint lets you define the HTTP method, custom JSON body, status code (such as 200, 201, 400 or 500) and response delay to test loading and error states.

Can I call MockAPI endpoints from browser JavaScript or curl?

Yes. Mock endpoints are served over HTTPS and ready to use with fetch(), axios, Postman or curl right after you create a project.