🌐
mockAPI
mockapi.io
mockAPI
MockAPI is a simple tool that lets you easily mock up APIs, generate custom data, and perform operations on it using RESTful interface. MockAPI is meant to be used as a prototyping/testing/learning tool.
🌐
Beeceptor
beeceptor.com
Mock APIs - Free REST & SOAP APIs for Devs & QA
Set up mock servers instantly without writing code. Create behavior using matching rules and customize responses through an intuitive UI. View request payloads, headers, and details in real-time. Debug webhooks and callbacks effortlessly. Generate dynamic test data by reusing request payloads, headers, and query parameters. Build context-aware responses that adapt to inputs and accurately simulate real API behavior.
Discussions

How are you mocking data if API is not ready?
I usually just return a temporary json object in the function that should be calling the API. eg As long as an API contract has been agreed, should be good. More on amp.reddit.com
🌐 r/Frontend
14
4
August 30, 2019
Running a Mock API Server in seconds

$ npx api-nowThen try your mock api like: $ curl http://localhost:3003/users?_page=1&_limit=5

Github repo: https://github.com/ngduc/api-now

Features:

  • Default datasets out-of-the-box: todos, users, posts, comments (using faker). Just run $ api-now

  • HTTPS support (with key, cert files).

  • Can take a .json or .js file.

  • GraphQL endpoint to serve faker data: /graphql

  • Can serve a static directory (e.g. /dist, /public etc.)

  • APIs support pagination (_page, _limit).

  • /echo route to respond parameters back as json.

  • /file route to serve any file type (including images).

  • /login route (POST) to respond with a dummy JWT token (using jsonwebtoken).

  • /todos route to return a list of todo items (follow TodoMVC specs).

  • /image/random to serve a random image file from a directory.

  • /avatar/random to serve a random avatar image.

  • /nature/random to serve a random nature image.

More on reddit.com
🌐 r/webdev
10
131
April 21, 2020
The best approach to have a mock API in ReactJS and toggle between the real API calls and the fake one?
I started using Mock Service Worker recently: https://mswjs. It runs a Service Worker in the browser that intercepts network requests, and then returns mocked data. It only intercepts requests you have specified. You only need a single flag in your application to say whether the Service Worker should be included. e.g. on Production, exclude it, locally, include it. This is great as all the code relating to your API calls stays the same, and you still see the requsts in the Browser's Network tab. One of your handlers may look like this: rest.post('/login', (req, res, ctx) => { const { username } = req.body if (username === 'simulate-fail-user') { // return an error return res( ctx.status(400), ctx.text('this user does not exist') ) } return res( ctx.json({ username, firstName: 'John' }) ) }) You are telling the Service Worker to intercept any requests to /login, and you can determine what the response should be. Essentially you are also mocking the server code here. You are saying, if the username is 'simular-fail-user', return an error. This allows you to easily test the error paths in your application. Furthermore, this library can also be used when running your test suites, so there is no need to mock your API calls during your unit/integration tests. I originally found out about it from this blog: https://kentcdodds.com/blog/stop-mocking-fetch/ More on reddit.com
🌐 r/reactjs
10
1
November 13, 2020
🌐
Mockoon
mockoon.com
Mockoon - Create mock APIs in seconds with Mockoon
Get working mock REST APIs in seconds with an intuitive and easy-to-use interface.
🌐
Mocki
mocki.io
Mock API - Create and Simulate APIs for Testing - Mocki
Using Mocki you can create, run and deploy mock APIs. Use your mocks to design your API, serve static responses, simulate error scenarios and remove dependencies to external services. Sign up today for a free 7-day trial.
🌐
Playwright
playwright.dev β€Ί mock apis
Mock APIs | Playwright
Web APIs are usually implemented as HTTP endpoints. Playwright provides APIs to mock and modify network traffic, both HTTP and HTTPS. Any requests that a page does, including XHRs and fetch requests, can be tracked, modified and mocked.
🌐
Postman
blog.postman.com β€Ί home β€Ί what is api mocking?
What Is API Mocking? | Postman Blog
February 28, 2024 - An API mock is a web service that simulates a real, functional service. A mock can be used to provide example responses from the backend service that is currently being developed, which makes it a great fit for the use case we described above.
🌐
WireMock
wiremock.org
WireMock - flexible, open source API mocking | WireMock
WireMock is a tool for building mock APIs. API mocking enables you build stable, predictable development environments when the APIs you depend on are unreliable or don’t exist.
🌐
Wiremock
wiremock.io β€Ί glossary β€Ί mock-api
What is a Mock API? Mocking Explained with Examples
The slightly longer answer: The mock API mimics the behavior of the actual API by providing realistic responses to requests, which enables developers to validate their code under real-world-like conditions even when the actual API is unavailable.
Find elsewhere
🌐
Mockapi
mockapi.com
MockAPI - Mock APIs for Modern Development
We cannot provide a description for this page right now
🌐
Microsoft Learn
learn.microsoft.com β€Ί en-us β€Ί azure β€Ί api-management β€Ί mock-api-responses
Tutorial - Mock API responses in API Management - Azure portal | Microsoft Learn
April 3, 2025 - Ensure that 200 OK, application/json appears in the API Management response box. This selection indicates that your API should return the response sample that you defined in the previous section. Select Save. ... A yellow bar displaying the text Mocking is enabled appears.
🌐
Mokapi
mokapi.io
Your API Mocking Tool for Agile Development | mokapi.io
Mock tool for Agile, DevOps and Continuous Deployment teams. Mock your REST API, Apache Kafka, SMTP or LDAP interfaces and control everything.
🌐
JSONPlaceholder
jsonplaceholder.typicode.com
JSONPlaceholder - Free Fake REST API
JSONPlaceholder is a free online REST API that you can use whenever you need some fake data.
🌐
Mockable
mockable.io
Mockable.io
Interesting: @mockableio <- mock out you soap or rest api.
🌐
Mockfly
mockfly.dev
Mock API Generator | Free Mock API Tool Online - Create APIs Instantly | Mockfly
Create a mock API in seconds with Mockfly - the #1 free mock API tool online. Build mock REST APIs, generate fake JSON data, simulate API responses, and test your frontend without backend dependencies. No coding required. Start free today!
🌐
Stoplight
stoplight.io β€Ί api-mocking
Instant API Mock Servers from OpenAPI For Testing | API Mocking Tools | Stoplight
Reduce time to market by letting frontend and backend teams develop simultaneously, without waiting for the development stage of the API to complete.Learn More Β· Validate requests and responses against your OpenAPI file. Stoplight mocks simulate real server behavior by automatically validating incoming request headers, query strings, and request bodies against your OpenAPI description.Learn More
🌐
Postman
learning.postman.com β€Ί docs β€Ί design-apis β€Ί mock-apis β€Ί tutorials β€Ί mock-with-api
Create and use a mock server using the Postman API | Postman Docs
Set up a mock server to simulate the behavior of a real API for development or testing purposes. In Postman, you mock a collection by adding examples and creating a mock server.
🌐
MockServer
mock-server.com
MockServer
easily set up mock responses independently for each test to ensure test data is encapsulated with each test. Avoid sharing data between tests that is difficult to manage and maintain and risks tests infecting each other Β· create test assertions that verify the requests the system-under-test has sent ... start working against a service API before the service is available.
🌐
Katalon
katalon.com β€Ί blog β€Ί insights β€Ί what is api mocking? definition, guide, and best practices
What is API Mocking? Definition, Guide, and Best Practices
February 5, 2026 - API mocking involves creating a simulated version of the real API to help testers carry on with their testing activities in case the actual API is not available
🌐
Zuplo
zuplo.com β€Ί home β€Ί learning center β€Ί the top api mocking tools in 2025
The Top API Mocking Tools in 2025 - Zuplo
May 7, 2025 - Why Choose Zuplo: We swear, we’re not just tooting our own horn! Mocking is best implemented at the API gateway level, rather than in some other proxy service, afterall, gateways are supposed to act as a middleware to decouple front-ends and your services. By using your gateway for mocking, you won’t have to go through the pain of digging through your codebase and swapping out mock endpoints for production ones.