Media
Media Download
Download media from a URL. Waits for the result before responding.
Authorization
BearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
country?string
expected_mime_types?array<string>
locale?string
storage?
url*string
Format
uriResponse Body
application/json
curl -X POST "https://example.com/v2/media" \ -H "Content-Type: application/json" \ -d '{ "url": "http://example.com" }'{ "data": { "browser_actions": { "results": [ { "duration": 0, "error": "string", "name": "goto", "result": null, "status": "no-run" } ], "success": true, "total_duration": 0 }, "cookies": [ null ], "eval": [ null ], "fetch": [ null ], "headers": { "property1": "string", "property2": "string" }, "html": "string", "links": [ "string" ], "markdown": "string", "network_capture": [ { "errorMessage": "string", "filter": { "method": "GET", "resource_type": "document", "status_code": 100, "url": { "type": "exact", "value": "string" }, "validation": false, "wait_for_requests_count": 0, "wait_for_requests_count_timeout": 1 }, "results": [ { "request": { "body": "string", "headers": { "property1": "string", "property2": "string" }, "method": "string", "resource_type": "document", "url": "string" }, "response": { "body": "string", "headers": { "property1": "string", "property2": "string" }, "serialization": "none", "status": 0, "status_text": "string" } } ] } ], "pages_html": [ "string" ], "parsing": { "entities": { "property1": null, "property2": null }, "status": "success" }, "redirects": [ { "status_code": 100, "url": "string" } ], "screenshots": [ null ] }, "debug": { "performance_metrics": { "property1": 0, "property2": 0 }, "proxy_total_bytes_usage": 0, "transformed_output": null, "userbrowser": null }, "metadata": { "agent": "string", "driver": "string", "localization_id": "string", "query_duration": 0, "query_time": "string", "response_parameters": null, "tag": "string" }, "pagination": { "next_page_params": { "property1": null, "property2": null } }, "status": "success", "status_code": 0, "task_id": "string", "url": "string", "warnings": [ "string" ]}