$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "batch": [
< {
< "actorId": "useful-tools/wait-and-finish",
< "input": {
< "minWaitTime": 30,
< "dataset": {
< "items": [
< {
< "key": "value1"
< }
< ]
< }
< }
< },
< {
< "actorId": "useful-tools/wait-and-finish",
< "input": {
< "dataset": {
< "items": [
< {
< "key": "value1"
< },
< {
< "key": "value2"
< }
< ]
< }
< }
< }
< ],
< "maxConcurrency": 25,
< "maxMemoryMb": 32768
<}
<EOF
$curl "https://api.apify.com/v2/acts/useful-tools~batch-runner/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'