web_capture
Record JSON and XHR responses a page fetches while loading to uncover real API endpoints and payloads behind listings or pagination; filter by URL substring and return bodies when needed.
Instructions
Record the JSON and XHR responses a page fetches while it loads and return them: the site's own API, smaller, typed and more stable than the HTML built from it. Use to find the real endpoint behind a listing or pagination; an endpoint that took page=1 takes page=2, which beats following links. Call once without pattern to see what the page asked for, then with pattern (URL substring) and bodies=true for the payloads. Returns endpoints and responses with url, status, mime, and body when asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page whose requests to record. | |
| tier | No | Browser tier: browser, stealth, real (default), warm. | |
| bodies | No | Return the response bodies too. Off by default because they are large; turn it on once `pattern` names the endpoint you want. | |
| pattern | No | Only responses whose URL contains this, e.g. "/api/". Leave it out the first time to see everything the page asked for. | |
| profile | No | Profile saved by web_login whose cookies to use. | |
| max_body | No | Per-body character cap. Default 20000. | |
| settle_ms | No | How long to keep recording after the page loads, in ms. Default 3000. |