$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "results": [
< {
< "keyword": "best running shoes",
< "rank": 1,
< "url": "https://nike.com/running-shoes",
< "title": "Best Running Shoes | Nike"
< },
< {
< "keyword": "best running shoes",
< "rank": 2,
< "url": "https://adidas.com/running",
< "title": "Running Shoes | adidas"
< },
< {
< "keyword": "best running shoes",
< "rank": 3,
< "url": "https://runnersworld.com/gear/best-running-shoes",
< "title": "The Best Running Shoes, Tested - Runner's World"
< },
< {
< "keyword": "marathon training plan",
< "rank": 1,
< "url": "https://adidas.com/training/marathon",
< "title": "Marathon Training Plan | adidas"
< },
< {
< "keyword": "marathon training plan",
< "rank": 2,
< "url": "https://runnersworld.com/training/marathon-plan",
< "title": "Marathon Training Plan - Runner's World"
< },
< {
< "keyword": "marathon training plan",
< "rank": 3,
< "url": "https://nike.com/marathon",
< "title": "Marathon Guide | Nike"
< }
< ],
< "brandMap": {
< "Nike": [
< "nike.com"
< ],
< "adidas": [
< "adidas.com"
< ],
< "Runner's World": [
< "runnersworld.com"
< ]
< },
< "yourBrand": "Nike"
<}
<EOF
$curl "https://api.apify.com/v2/actors/that_red_bird~serp-share-of-voice/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'