Fetch browser resources

We offer a dedicated browser guide for retrieving browser resources. Utilizing fetch_resource will yield the job returning the initial instance of a Fetch/XHR resource matching the specified format, rather than the HTML targeted.

For example, you may target an API resource that is fetched when loading a website containing product data:

{
    "target": "universal",
    "url": "https://example.com/product/1",
    "headless": "html",
    "browser_actions": [
        {
            "type": "fetch_resource",
            "format": "/api/product/1"
        }
    ]
}

Results

{
    "results": [
        {
            "content": "{Product information here}",
            "status_code": 200,
            "url": "https://example.com/api/product/1",
            "task_id": "7131940420107377665",
            "created_at": "2023-11-19 09:46:41",
            "updated_at": "2023-11-19 09:47:08"
        }
    ]
}