Overview
Network interception allows you to capture HTTP requests and responses as the browser makes them. This is essential for:- API reverse-engineering - Understand how websites communicate with backends
- Scraping dynamic content - Extract data from XHR/fetch calls instead of DOM
- Debugging - See what requests succeed/fail and why
- Pagination - Replay API calls to fetch more data
Quick Start
Capturing Requests
Basic Request Capture
Filter by URL Pattern
Filter by Resource Type
document, stylesheet, image, media, font, script, xhr, fetch, websocket
Capturing Responses
Basic Response Capture
Inspect Response Bodies
Check for Errors
Replaying API Calls
Once you’ve captured a request, you can replay it directly:- Pagination: modify URL parameters to fetch next page
- Scraping: extract data from API instead of DOM parsing
- Testing: replay requests with different parameters
Complete Examples
Extract Instagram Post Data
Scrape Paginated API
Debug Failed Requests
Extract High-Resolution Image URLs
Best Practices
Store in State
Always store captured data instate to persist across execute calls:
Clean Up Listeners
Remove listeners when done to prevent memory leaks:Filter Early
Only capture what you need:Handle JSON Errors
Not all responses are JSON:Use for Scraping
Prefer network interception over DOM parsing for dynamic content:Common Patterns
Capture All API Calls
Wait for Specific Response
Inspect Request/Response Pairs
Extract Authenticated Fetch Credentials
Why Network Interception?
Compared to DOM scraping:- Faster - No need to wait for DOM rendering
- More reliable - API responses have stable structure
- More data - APIs often return more data than what’s displayed
- Easier - JSON parsing is simpler than DOM traversal
- Authenticated - Requests include session cookies automatically
- Dynamic - Captures requests triggered by JavaScript
- Complete - Sees all requests the page makes
- SPAs with lots of AJAX (Instagram, Twitter, Facebook)
- Infinite scroll / lazy-loaded content
- Pagination via API calls
- Protected resources requiring session cookies
- Understanding how a site works (reverse-engineering)