![Batch Runner avatar](https://images.apifyusercontent.com/DBYwqhkw1cUJSveyyvSNcZcBk1PHj4We7A_OZXKZ72U/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS94bVFtVEFVbDl5Y2N1ZnBXTC8zaHh4cjZISkhDUWpQYUc1Ui1wcm9jZXNzaW5nLnBuZw.webp)
Batch Runner
Try for free
No credit card required
View all Actors![Batch Runner](https://images.apifyusercontent.com/DBYwqhkw1cUJSveyyvSNcZcBk1PHj4We7A_OZXKZ72U/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS94bVFtVEFVbDl5Y2N1ZnBXTC8zaHh4cjZISkhDUWpQYUc1Ui1wcm9jZXNzaW5nLnBuZw.webp)
![Batch Runner](https://images.apifyusercontent.com/DBYwqhkw1cUJSveyyvSNcZcBk1PHj4We7A_OZXKZ72U/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS94bVFtVEFVbDl5Y2N1ZnBXTC8zaHh4cjZISkhDUWpQYUc1Ui1wcm9jZXNzaW5nLnBuZw.webp)
Batch Runner
useful-tools/batch-runner
Try for free
No credit card required
Actor for starting several Runs from single Input. It also has capability to merge the Dataset items from the created batch.
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "batch": [
8 {
9 "actorId": "useful-tools/wait-and-finish",
10 "input": {
11 "minWaitTime": 30,
12 "dataset": {
13 "items": [
14 {
15 "key": "value1"
16 }
17 ]
18 }
19 }
20 },
21 {
22 "actorId": "useful-tools/wait-and-finish",
23 "input": {
24 "dataset": {
25 "items": [
26 {
27 "key": "value1"
28 },
29 {
30 "key": "value2"
31 }
32 ]
33 }
34 }
35 }
36 ],
37 "maxConcurrency": 25,
38 "maxMemoryMb": 32768
39}
40EOF
41
42# Run the Actor using an HTTP API
43# See the full API reference at https://docs.apify.com/api/v2
44curl "https://api.apify.com/v2/acts/useful-tools~batch-runner/runs?token=$API_TOKEN" \
45 -X POST \
46 -d @input.json \
47 -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
- 2 monthly users
- 3 stars
- 94.9% runs succeeded
- Created in Sep 2023
- Modified 5 months ago
Categories