$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startDate": "2025-10-01",
< "endDate": "2025-10-31",
< "splitMode": "day",
< "language": "any",
< "maxItems": 80,
< "All_of_these_words": "ai",
< "This_exact_phrase": "",
< "Any_of_these_words": "",
< "None_of_these_words": "",
< "These_hashtags": "",
< "From_these_accounts": "elonmusk",
< "To_these_accounts": "",
< "Mentioning_these_accounts": "",
< "Minimum_replies": 0,
< "Minimum_likes": 0,
< "Minimum_reposts": 0
<}
<EOF
$curl "https://api.apify.com/v2/acts/delicious_zebu~ultimate-x-twitter-advanced-search-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'