cookbook · Fanout · AI visibility monitoring
Choose the searches to track for AI-answer visibility
To see whether your product shows up when people ask an assistant for recommendations, you need a list of the searches that assistant is likely to run. Fanout samples, so one run gives one plausible set; merging a few runs and removing near-duplicates gives a steadier list to monitor. This recipe runs the same question three times for an invoicing tool and keeps the searches that recur.
Request
POST /v1/fanout, documented in the Fanout reference.
curl https://meragpt.com/v1/fanout \
-H "Authorization: Bearer $MERAGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "fanout-1",
"question": "What'\''s the best invoicing tool for freelance designers?",
"brands": [
"Bonsai",
"FreshBooks",
"HoneyBook"
],
"category": "invoicing software"
}'What came back
The real output from running this recipe, unedited.
{
"run 1": [
"best invoicing tools for freelancers 2026",
"FreshBooks pricing plans 2026",
"HoneyBook pricing and features 2026",
"best invoicing software for artists and designers"
],
"run 2": [
"best invoicing software for freelancers 2026",
"FreshBooks pricing and features 2026",
"Bonsai invoicing tool pricing and features",
"Framer invoicing features for designers"
],
"run 3": [
"best invoicing tools for freelancers 2026",
"FreshBooks pricing plans 2026",
"Bonsai invoicing software features and pricing 2026",
"trello invoicing capabilities",
"best invoicing apps for independent designers"
]
}Python
import os, requests
API = "https://meragpt.com/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MERAGPT_API_KEY']}"}
import re
from collections import Counter
body = {"model": "fanout-1", "question": "What's the best invoicing tool for freelance designers?", "brands": ["Bonsai", "FreshBooks", "HoneyBook"], "category": "invoicing software"}
# the model samples: merge a few runs, then keep what recurs
key = lambda s: re.sub(r"\b20\d\d\b|\b(software|tools?|apps?)\b", "", s.lower()).split()
seen = Counter()
for _ in range(3):
for s in requests.post(f"{API}/fanout", headers=HEADERS, json=body).json()["queries"]:
seen[" ".join(sorted(set(key(s))))] += 1
track = [s for s, n in seen.most_common() if n >= 2]
print("track:", track)
TypeScript
const API = "https://meragpt.com/v1";
const headers = {
Authorization: `Bearer ${process.env.MERAGPT_API_KEY}`,
"Content-Type": "application/json",
};
const body = { model: "fanout-1", question: "What's the best invoicing tool for freelance designers?", brands: ["Bonsai", "FreshBooks", "HoneyBook"], category: "invoicing software" };
// the model samples: merge a few runs, then keep what recurs
const key = (s: string) => [...new Set(s.toLowerCase().replace(/\b20\d\d\b|\b(software|tools?|apps?)\b/g, "").split(/\s+/).filter(Boolean))].sort().join(" ");
const seen = new Map<string, number>();
for (let i = 0; i < 3; i++) {
const r = await fetch(`${API}/fanout`, { method: "POST", headers, body: JSON.stringify(body) }).then((res) => res.json());
for (const s of r.queries as string[]) seen.set(key(s), (seen.get(key(s)) ?? 0) + 1);
}
console.log("track:", [...seen].filter(([, n]) => n >= 2).map(([s]) => s));
When to trust it
These are predictions of what an assistant would search, not searches observed from real assistants, so treat the list as the set worth checking rather than a measurement. The recurring searches ("best invoicing tools for freelancers", the FreshBooks and Bonsai pricing searches) are the safest to track. One-off searches can drift, like "Framer invoicing features" and "trello invoicing capabilities" here, so review them before adding them to a dashboard.
Try it without code in the playground, or see more Fanout recipes: turn a buyer's question into a content brief, see which rivals an assistant pulls in, plan content from the questions your buyers ask, anchor an unfamiliar brand with hints.