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 mode
# Set API token
API_TOKEN=<YOUR_API_TOKEN>
# Prepare Actor input
cat > input.json <<'EOF'
{
"dashboardStatisticsFrequency": "Every day at noon",
"validationCheckOptions": "/* global ow */\n// The `ow` variable represents the ow validation variable. More at https://sindresorhus.com/ow/index.html\n [\n {\n filter: \"us\", // matches all targets with \"us\" pattern\n minItemCount: 5000,\n schema: {\n url: ow.string.url,\n description: ow.string,\n },\n },\n {\n Ids: [\"A1b2C3d4\", \"B1A2d45\"], // matches 2 targets with specific IDs\n schema: {\n itemId: ow.number,\n region: ow.string,\n },\n },\n]",
"validationCheckFrequency": "Per run",
"duplicationCheckFrequency": "Per run"
}
EOF
# Run the Actor
curl "https://api.apify.com/v2/acts/apify~monitoring/runs?token=$API_TOKEN" \
-X POST \
-d @input.json \
-H 'Content-Type: application/json'
Developer
Maintained by Apify
Actor stats
- 139 users
- 1.3k runs
- Modified 4 months ago
Categories