Chrome Extension
Mockzilla is a Chrome extension that intercepts http requests in your browser, allowing you to replace responses with custom mock data. Perfect for prototyping, testing, and working with unstable APIs.
Everything you need to mock API responses directly in your browser
Intercepts fetch() and XMLHttpRequest calls in real-time as they happen on the page, replacing responses instantly with your mock data.
Choose between substring and exact URL matching to target specific API endpoints with precision.
Monitor per-tab hit counters and last matched URLs to verify your mocks are working correctly.
Support for both JSON and plain text response bodies with appropriate Content-Type headers.
Works in Content Security Policy restricted environments using multiple injection strategies.
A simple process to intercept and mock your API calls
Add rules in the Mockzilla popup specifying URL patterns and mock responses
Mockzilla patches fetch() and XMLHttpRequest in the page context
Monitor hit counters and verify your mocks are working as expected
After downloading Mockzilla, you can replace this mock with your own URL
Click the button below to make a request to the GitHub API. After installing Mockzilla, you can intercept this request and replace it with custom mock data directly in your browser.
https://api.github.com/users/andrecrjr