AI Search Visibility Gap Scorer
Pricing
Pay per usage
Go to Apify Store
AI Search Visibility Gap Scorer
Turn imported AI-search, SERP, and AI Overview visibility rows into deterministic visibility gap scores and next actions.
AI Search Visibility Gap Scorer
Pricing
Pay per usage
Turn imported AI-search, SERP, and AI Overview visibility rows into deterministic visibility gap scores and next actions.
You can access the AI Search Visibility Gap Scorer programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "mode": "items",12 "items": [13 {14 "query": "best product analytics tools for b2b saas",15 "engine": "Perplexity manual export",16 "locale": "US",17 "answer": "RivalMetrics is frequently recommended for B2B SaaS product analytics. Northstar BI is also mentioned.",18 "citations": [19 {20 "title": "RivalMetrics customer story",21 "url": "https://rivalmetrics.com/customers/b2b-saas"22 },23 {24 "title": "Product analytics software rankings",25 "url": "https://g2.com/categories/product-analytics"26 }27 ]28 },29 {30 "prompt": "is acme analytics good for product teams",31 "platform": "ChatGPT manual audit",32 "market": "US",33 "aiAnswer": "Acme Analytics is a possible product analytics option, but buyers often compare it with RivalMetrics.",34 "sources": [35 {36 "title": "Third-party product analytics roundup",37 "url": "https://example-review-site.com/product-analytics"38 }39 ]40 },41 {42 "keyword": "acme analytics implementation guide",43 "provider": "Google AI Overview export",44 "country": "US",45 "overview": "Acme Analytics provides implementation guidance for product teams, including event tracking and activation reporting.",46 "organicResults": [47 {48 "title": "Acme Analytics implementation guide",49 "url": "https://docs.acmeanalytics.com/implementation"50 },51 {52 "title": "Acme Analytics product analytics blog",53 "url": "https://blog.acmeanalytics.com/product-analytics-guide"54 }55 ],56 "mentionedBrands": [57 "Acme Analytics"58 ]59 }60 ],61 "brandProfile": {62 "brandName": "Acme Analytics",63 "domains": [64 "acmeanalytics.com"65 ],66 "competitors": [67 "RivalMetrics",68 "Northstar BI"69 ],70 "targetMarkets": [71 "US SaaS"72 ],73 "targetKeywords": [74 "product analytics",75 "AI visibility"76 ],77 "priorityTopics": [78 "B2B SaaS analytics",79 "implementation guides"80 ],81 "ownedSources": [82 "docs.acmeanalytics.com",83 "blog.acmeanalytics.com"84 ],85 "preferredCitations": [86 "g2.com",87 "capterra.com",88 "docs.acmeanalytics.com"89 ],90 "avoidKeywords": [91 "guaranteed ranking"92 ]93 },94 "scrapedAt": "2026-07-08T00:00:00.000Z"95};96
97// Run the Actor and wait for it to finish98const run = await client.actor("rotvuvo/ai-search-visibility-gap-scorer").call(input);99
100// Fetch and print Actor results from the run's dataset (if any)101console.log('Results from dataset');102console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);103const { items } = await client.dataset(run.defaultDatasetId).listItems();104items.forEach((item) => {105 console.dir(item);106});107
108// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use AI Search Visibility Gap Scorer API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: