🌐
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
🌐
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.
🌐
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.
🌐
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.
🌐
Mokapi
mokapi.io
Mock APIs from Specs | Mokapi
Mokapi helps you test and develop faster by simulating APIs and services in any environment β€” locally, in CI pipelines, or in staging and test environments. It supports HTTP, Kafka, LDAP, SMTP/IMAP, providing realistic mocks to test workflows, ...
🌐
Zuplo
zuplo.com β€Ί home β€Ί learning center β€Ί how to implement mock apis for api testing
How to Implement Mock APIs for API Testing - Zuplo
March 26, 2025 - APIs are the backbone of modern applications, but testing these connections presents challenges when the real APIs aren’t ready or when you need to isolate testing from external dependencies. Mock APIs solve this problem by providing controlled, predictable responses instead of relying on actual endpoints.
Find elsewhere
🌐
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.
🌐
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.
🌐
Mockapi
mockapi.com
MockAPI - Mock APIs for Modern Development
We cannot provide a description for this page right now
🌐
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.
🌐
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.
🌐
Mockable
mockable.io
Mockable.io
Interesting: @mockableio <- mock out you soap or rest api.
🌐
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.
🌐
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!
🌐
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
🌐
Stoplight
stoplight.io β€Ί mock-api-guide
Mock API Server Online Guide | Mock APIs Testing & API Mocking Guide | Stoplight
Learn how to quickly mock data to design, build, and test APIs using a mock or dummy API Server.