Capture a page's own API calls (XHR/fetch)
capture_xhrCapture JSON from a page's own XHR/fetch calls by loading it in a real browser and returning each matching API response with status and body. Use it when direct requests are blocked.
Instructions
Load a web page in a real browser through ScrapeUnblocker and return the JSON its own API calls received: every XHR/fetch response whose URL contains capture_xhr (a fragment such as '/api/search'), in order, with status and body. Use it when a site renders from a JSON API that refuses direct requests (the page signs each call): the page makes the call, so it succeeds, and the JSON is cleaner than the HTML. Optional steps make the page fire the call (a search, 'load more'); steps act on the website and run once. Up to 20 responses; the page HTML is not returned. Billed as one request; when the site refuses every matching call (403/429) the call fails and is free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"capture_xhr": "<capture_xhr>"
},
"name": "capture_xhr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The absolute URL to open (http/https). | |
| steps | No | Optional browser actions that make the page fire the call, run after the page loads. Use `list_elements` first to find selectors. Runs once. | |
| max_chars | No | Cap on the returned text (default 60000). | |
| capture_xhr | Yes | A fragment of the API URL the page calls, e.g. '/api/search'. Every XHR/fetch response whose URL contains it is returned (plain substring, case-sensitive). | |
| proxy_country | No | Optional ISO 3166-1 alpha-2 country code to route through, e.g. 'US', 'GB', 'DE'. |