REST API Quickstart
Run your first multi-engine AI visibility check in under three minutes using POST /v1/checks, queue bulk client runs with POST /v1/batches, or inspect stored snapshots via GET /v1/reports/{id}. Looking for Claude Desktop, Cursor, or n8n? See our GEO MCP Server guide.
POST
/v1/checks
Single or multi-run (1x / 3x / 5x) synchronous visibility check across OpenAI, Perplexity, and Gemini.
POST
/v1/batches
Batch execution with optional webhook_url callback and automatic credit refunds on failure.
1. Call POST /v1/checks
cURL
curl -X POST https://visibilityapi.com/v1/checks \
-H "Authorization: Bearer $VISIBILITY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"brand": "AcmeCRM",
"domain": "acmecrm.io",
"prompt": "best B2B CRM with native webhook automation for agencies 2026",
"engines": ["openai", "perplexity", "gemini"],
"runs": 3,
"region": "US"
}'Node.js (fetch)
const response = await fetch("https://visibilityapi.com/v1/checks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VISIBILITY_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
brand: "AcmeCRM",
domain: "acmecrm.io",
prompt: "best B2B CRM with native webhook automation for agencies 2026",
engines: ["openai", "perplexity", "gemini"],
runs: 3,
region: "US",
}),
});
const report = await response.json();
console.log({
mentionRate: report.mention_rate,
avgRank: report.avg_rank,
citedUrls: report.cited_urls,
checksBilled: report.checks_billed,
});Python (requests)
import os, requests
res = requests.post(
"https://visibilityapi.com/v1/checks",
headers={"Authorization": f"Bearer {os.environ['VISIBILITY_API_KEY']}"},
json={
"brand": "AcmeCRM",
"domain": "acmecrm.io",
"prompt": "best B2B CRM with native webhook automation for agencies 2026",
"engines": ["openai", "perplexity", "gemini"],
"runs": 3,
"region": "US",
},
timeout=30,
)
report = res.json()
print(report["mention_rate"], report["avg_rank"], len(report["cited_urls"]))2. Test Live Schema in Your Browser
Interactive Sandbox: POST /v1/checks
Test the exact JSON schema returned by our production API right in your browser.
3. Response JSON Schema Reference
| Field | Type | Description |
|---|---|---|
| mention_rate | number (0–1) | Fraction of successful runs where brand or domain appeared. |
| avg_rank | number | null | Mean ordinal recommendation position across mentioned runs. |
| recommended_rate | number (0–1) | Fraction of runs where the brand ranked #1 or #2. |
| sentiment | enum | positive | neutral | negative | absent (strict JSON extraction). |
| cited_urls[] | array | Full list of cited URLs with domain, title, engine, and citation position. |
| competitors[] | array | Co-mentioned competitor brands with their mention_rate and avg_rank. |
| model_versions | object | Exact upstream model & search-grounding tags used for reproducibility. |
| checks_billed / refunded | integer | Exact Checks deducted and any failed upstream calls auto-refunded. |
| raw_evidence[] | array | Per-engine, per-run status and text excerpts for client verification. |
Ready to wire this into Claude, Cursor, or n8n?
Install our MIT-licensed MCP server or check real-time upstream health on /status.