$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "items",
< "items": [
< {
< "query": "best product analytics tools for b2b saas",
< "engine": "Perplexity manual export",
< "locale": "US",
< "answer": "RivalMetrics is frequently recommended for B2B SaaS product analytics. Northstar BI is also mentioned.",
< "citations": [
< {
< "title": "RivalMetrics customer story",
< "url": "https://rivalmetrics.com/customers/b2b-saas"
< },
< {
< "title": "Product analytics software rankings",
< "url": "https://g2.com/categories/product-analytics"
< }
< ]
< },
< {
< "prompt": "is acme analytics good for product teams",
< "platform": "ChatGPT manual audit",
< "market": "US",
< "aiAnswer": "Acme Analytics is a possible product analytics option, but buyers often compare it with RivalMetrics.",
< "sources": [
< {
< "title": "Third-party product analytics roundup",
< "url": "https://example-review-site.com/product-analytics"
< }
< ]
< },
< {
< "keyword": "acme analytics implementation guide",
< "provider": "Google AI Overview export",
< "country": "US",
< "overview": "Acme Analytics provides implementation guidance for product teams, including event tracking and activation reporting.",
< "organicResults": [
< {
< "title": "Acme Analytics implementation guide",
< "url": "https://docs.acmeanalytics.com/implementation"
< },
< {
< "title": "Acme Analytics product analytics blog",
< "url": "https://blog.acmeanalytics.com/product-analytics-guide"
< }
< ],
< "mentionedBrands": [
< "Acme Analytics"
< ]
< }
< ],
< "brandProfile": {
< "brandName": "Acme Analytics",
< "domains": [
< "acmeanalytics.com"
< ],
< "competitors": [
< "RivalMetrics",
< "Northstar BI"
< ],
< "targetMarkets": [
< "US SaaS"
< ],
< "targetKeywords": [
< "product analytics",
< "AI visibility"
< ],
< "priorityTopics": [
< "B2B SaaS analytics",
< "implementation guides"
< ],
< "ownedSources": [
< "docs.acmeanalytics.com",
< "blog.acmeanalytics.com"
< ],
< "preferredCitations": [
< "g2.com",
< "capterra.com",
< "docs.acmeanalytics.com"
< ],
< "avoidKeywords": [
< "guaranteed ranking"
< ]
< },
< "scrapedAt": "2026-07-08T00:00:00.000Z"
<}
<EOF
$curl "https://api.apify.com/v2/acts/rotvuvo~ai-search-visibility-gap-scorer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'