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 --request POST 'https://api.scrapingduck.com/v1/browser/actions/execute?deviceName&locale&timezone&disableResourceExclusion&useAdvancedSpoofing&disableJavaScript&apiKey=<api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"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": {
"status": 200
}
},
{
"type": "GetHtmlActionResult",
"success": true,
"data": {
"html": "<!doctype html><html>...</html>"
}
}
],
"meta": {
"actionsRequested": 2,
"actionsSucceeded": 2,
"startedAtUtc": "2025-01-01T12:00:00Z",
"finishedAtUtc": "2025-01-01T12:00:02Z",
"durationMs": 2000,
"responseSizeBytes": 1234,
"maxActionsAllowed": 50
}
}