$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "language": "en",
< "ownPages": [
< {
< "id": "own-home",
< "text": "Steel roof panels. Roof repair guide.",
< "sourceUrl": "https://example.com/own"
< },
< {
< "id": "own-copy",
< "text": "Steel roof panels. Roof repair guide.",
< "sourceUrl": "https://example.com/own-copy"
< }
< ],
< "referencePages": [
< {
< "id": "ref-solar",
< "text": "Solar roof panels. Solar installation guide.",
< "sourceUrl": "https://example.com/reference"
< },
< {
< "id": "ref-price",
< "text": "Solar panels price. Installation price guide.",
< "sourceUrl": "https://example.com/reference-price"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/danielmichalek~keyword-gap-analyzer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'