$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "enableMarketSearch": true,
< "searchQueries": [
< "bitcoin",
< "fed rate decision",
< "super bowl"
< ],
< "searchMaxResults": 10,
< "searchIncludeClosed": false,
< "searchFetchFullDetails": false,
< "enableMarketDetails": false,
< "marketSlugs": [],
< "conditionIds": [],
< "marketUrls": [],
< "includeOrderBook": false,
< "enableMarketTrades": false,
< "tradesMaxPerMarket": 30,
< "enableWalletActivity": false,
< "walletAddresses": [],
< "activityMaxPerWallet": 50,
< "enableWalletPositions": false,
< "positionsMaxPerWallet": 50,
< "enableWalletProfile": false,
< "enableScrapeByUrl": false,
< "scrapeUrls": [
< "https://polymarket.com/event/bitcoin-above-on-february-23"
< ],
< "webhookFormat": "json",
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "US"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/b2b_leads~polymarket-real-time-data-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'