$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "urlsTxt": "https://example.com/\nhttps://example.com/products/",
< "sitemapUrl": "https://example.com/sitemap.xml",
< "serviceAccount": "{\n \"type\": \"service_account\",\n \"project_id\": \"your-project-id\",\n \"private_key_id\": \"your-private-key-id\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----\\nYOUR_PRIVATE_KEY\\n-----END PRIVATE KEY-----\\n\",\n \"client_email\": \"your-service-account@your-project.iam.gserviceaccount.com\",\n \"client_id\": \"your-client-id\",\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"token_uri\": \"https://oauth2.googleapis.com/token\",\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/your-service-account@your-project.iam.gserviceaccount.com\"\n}"
<}
<EOF
$curl "https://api.apify.com/v2/acts/mabdulmoghni~google-indexing-api-bulk-url-submission/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'