deviceName uses that specific device profile.locale or timezone will disable the automatic matching based on the proxy.actions list must contain at least 1 and no more than 50 items.{
"actions": [
{ "type": "VisitUrlAction", "url": "https://example.com" },
{ "type": "GetHtmlAction" }
]
}actions array is missing, empty, or if the JSON is malformed.actions array exceeds the server limit of 50.deviceName does not exist. A list of available devices can be retrieved from the /devices endpoint.type of an action in the actions array is not a recognized action.curl --location 'https://api.scrapingduck.com/v1/browser/actions/execute?deviceName=&locale=&timezone=&disableResourceExclusion=&useAdvancedSpoofing=&disableJavaScript=&useResidentialProxy=&apiKey=%3Capi-key%3E' \
--header 'Content-Type: application/json' \
--data '{
"actions": [
{
"type": "VisitUrlAction",
"url": "https://news.ycombinator.com"
},
{
"type": "VisitRandomLinkAction",
"viewTime": 5,
"stayOnDomain": true,
"goBack": true
},
{
"type": "GetHtmlAction"
}
]
}'{
"executionId": "myApiKey_a1b2c3d4",
"results": [
{
"type": "VisitUrlActionResult",
"success": true,
"data": [
{
"name": "StatusCode",
"data": 200
},
{
"name": "ResponseSize",
"data": 45678
},
{
"name": "Headers",
"data": {
"content-type": "text/html; charset=utf-8",
"server": "nginx"
}
},
{
"name": "Cookies",
"data": [
{
"name": "sessionid",
"value": "abc123",
"domain": ".example.com",
"path": "/",
"httpOnly": true,
"secure": true
}
]
}
]
},
{
"type": "GetHtmlActionResult",
"success": true,
"data": [
{
"name": "Html",
"data": "<!doctype html><html>...</html>"
},
{
"name": "Title",
"data": "Example Page Title"
},
{
"name": "Url",
"data": "https://example.com"
},
{
"name": "ContentLength",
"data": 45678
}
]
}
],
"meta": {
"actionsRequested": 2,
"actionsSucceeded": 2,
"startedAtUtc": "2025-01-01T12:00:00Z",
"finishedAtUtc": "2025-01-01T12:00:02Z",
"durationMs": 2000,
"responseSizeBytes": 1234,
"maxActionsAllowed": 50
}
}