$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startUrls": [
< "https://www.tiktok.com/@billieeilish/video/7050551461734042926",
< "https://www.tiktok.com/@gordonramsayofficial",
< "https://www.tiktok.com/search?q=Recipes",
< "https://www.tiktok.com/tag/duet",
< "https://www.tiktok.com/music/original-sound-Newcastle-United-7297730198175402784"
< ],
< "maxItems": 1000,
< "keywords": [
< "Artificial Intelligence",
< "podcast"
< ],
< "dateRange": "ALL_TIME",
< "location": "US",
< "sortType": "RELEVANCE",
< "customMapFunction": "(object) => { return {...object} }"
<}
<EOF
$curl "https://api.apify.com/v2/acts/novi~tiktok-scraper-ultimate/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'