🌐
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.
🌐
PFLB
pflb.us β€Ί home β€Ί blog β€Ί api mocking: a complete guide
API Mocking: What Is It, Benefits & Best Practices | PFLB
October 28, 2025 - You’ll also explore practical use cases and industry best practices, empowering you to leverage mocking effectively and avoid common pitfalls. API mocking is the process of creating simulated API responses that mimic the behavior of real APIs.
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
🌐
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.
🌐
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.
🌐
Speedscale
speedscale.com β€Ί home β€Ί blog β€Ί how to mock ai apis using proxymock
How to Mock AI APIs Using Proxymock | Speedscale
March 11, 2025 - Master AI API mocking with Proxymock. Learn essential strategies for testing AI applications, reducing costs, and building reliable AI integrations.
🌐
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.
🌐
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, ...
Find elsewhere
🌐
DEV Community
dev.to β€Ί ismailkamil β€Ί review-10-top-api-mock-tools-57f7
2025 Review: 10 Top API Mock Tools - DEV Community
January 2, 2025 - API mock, or mock API, is a simulated version of an API that is used for testing and development purposes. It allows developers to test their applications or services without relying on a live API, and can be configured to return specific responses ...
🌐
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.
🌐
GitHub
github.com β€Ί rexebin β€Ί mockapi
GitHub - rexebin/mockapi: Mock an API server with complete CRUD endpoints for all entities with Mock Service Worker without writing any code. Β· GitHub
Mock an API server with complete CRUD endpoints for all entities with Mock Service Worker without writing any code. - rexebin/mockapi
Author Β  rexebin
🌐
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.
🌐
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.
🌐
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.
🌐
DummyJSON
dummyjson.com
DummyJSON - Free Fake REST API for Placeholder JSON Data
DummyJSON provides a free fake REST API with placeholder JSON data for development, testing, and prototyping. Access realistic data quickly for your projects.
🌐
MockAPI
mockapi.work
MockAPI β€” The Fastest Way to Mock APIs
The fastest way to mock REST, GraphQL, WebSocket, and gRPC. Zero dependencies.
🌐
DEV Community
dev.to β€Ί zaklaughton β€Ί the-only-3-steps-you-need-to-mock-an-api-call-in-jest-39mb
The only 3 steps you need to mock an API call in Jest - DEV Community
June 5, 2021 - And it doesn't matter whether it's called directly in your test file or as a part of a function imported into your test – Jest will mock the function no matter where it's called! Use this newfound power to give your functions exactly what they should expect from the API calls.
🌐
Mockanapi
mockanapi.com
MockAPI - Mock Your API in Seconds
Create realistic mock REST APIs instantly. No coding required. Perfect for prototyping and testing.
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί python β€Ί mocking-external-apis-in-python
Mocking external APIs in Python - GeeksforGeeks
July 23, 2025 - In the above code we are using the requests modules get function to make a GET request to the specified API, serialize its response to JSON and print it. ... # TestGetData is a class that contains a test_get_data() # method that tests the get_data() function using the mock library class TestGetData(unittest.TestCase): @patch('main.get_data') def test_get_data(self, mock_get_data): """ Test that get_data() returns the correct data demonstrating the use of the mock library """ mock_data = {'userId': 1, 'id': 1, 'title': 'delectus aut autem', 'completed': False} mock_get_data.return_value = Mock() mock_get_data.return_value.json.return_value = mock_data mock_get_data.return_value.status_code = 200 result = get_data() self.assertEqual(result, mock_data)
🌐
AWS
docs.aws.amazon.com β€Ί amazon api gateway β€Ί developer guide β€Ί api gateway rest apis β€Ί develop rest apis in api gateway β€Ί integrations for rest apis in api gateway β€Ί mock integrations for rest apis in api gateway
Mock integrations for REST APIs in API Gateway - Amazon API Gateway
This feature enables API developers to generate API responses from API Gateway directly, without the need for an integration backend. As an API developer, you can use this feature to unblock dependent teams that need to work with an API before the project development is complete.