$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "country": "US",
< "language": "en",
< "enableAppSearch": true,
< "searchQueries": [
< "spotify",
< "minecraft"
< ],
< "searchMaxResults": 10,
< "searchFetchFullDetails": false,
< "enableTopCharts": true,
< "chartCollections": [
< "top_free"
< ],
< "chartCategory": "GAME",
< "chartsMaxResults": 10,
< "chartsFetchFullDetails": false,
< "enableAppDetails": false,
< "appIds": [],
< "appUrls": [],
< "enableDeveloperApps": false,
< "developerIds": [
< "Spotify AB"
< ],
< "developerUrls": [],
< "developerMaxApps": 30,
< "enableSimilarApps": false,
< "similarAppIds": [],
< "similarAppUrls": [],
< "similarMaxResults": 10,
< "enableReviews": false,
< "reviewAppIds": [],
< "reviewUrls": [],
< "reviewsMaxPerApp": 10,
< "reviewsSort": "most_helpful",
< "enableScrapeByUrl": false,
< "scrapeUrls": [
< "https://play.google.com/store/apps/details?id=com.spotify.music"
< ],
< "webhookFormat": "json",
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "US"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/b2b_leads~google-play-charts-real-time-data-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'