Build with AEO API AI search visibility in your product

  • ImageChatGPT
  • ImagePerplexity
  • ImageGemini
  • ImageClaude
  • ImageCopilot
  • ImageGoogle AI Overviews
  • ImageGrok
  • ImageBrave
visibility.mjs
const url = new URL("/v2/analytics/visibility", process.env.AEO_API_BASE);
url.search = new URLSearchParams({
  brand_id: "00000000-0000-4000-8000-000000000001",
  start_at: "2026-11-01T00:00:00Z",
  end_at: "2026-11-06T00:00:00Z",
  platform: "chatgpt",
  mode: "api_normal",
}).toString();

const response = await fetch(url, {
  headers: { Authorization: "Bearer " + process.env.AEO_API_KEY },
});
if (!response.ok) throw new Error("aeoapi returned " + response.status);

const { data } = await response.json();
console.log(data);

Quickstart

Call the REST API.
Or add it to your coding agent.

Use curl or install the TypeScript SDK or Python SDK to read brand visibility. You can also use the same API key with the hosted MCP server.

export AEO_API_BASE_URL="https://api.aeoapi.dev"

# Check that your key works
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
  -H "Authorization: Bearer $AEO_API_KEY"

# Read brand visibility for a collection window
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/visibility" \
  -H "Authorization: Bearer $AEO_API_KEY" \
  --data-urlencode "brand_id=$BRAND_ID" \
  --data-urlencode "start_at=$START_AT" \
  --data-urlencode "end_at=$END_AT"

Response · Visibility

{
  "data": [
    {
      "platform": "chatgpt",
      "country": "US",
      "mention_rate": 0.6,
      "recommendation_rate": 0.4,
      "owned_citation_rate": 0.3,
      "share_of_voice": 0.25,
      "visibility_score": 60,
      "mean_rank": 2,
      "coverage": {
        "expected_prompts": 30,
        "valid_answers": 30,
        "status": "ok"
      }
    }
  ],
  "meta": {
    "schema_version": "1.0",
    "stale": false
  }
}

Claude Code · Terminal

claude mcp add --transport http aeoapi \
  https://api.aeoapi.dev/mcp \
  --header "Authorization: Bearer $AEO_API_KEY"

Cursor · .cursor/mcp.json

{
  "mcpServers": {
    "aeoapi": {
      "url": "https://api.aeoapi.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:AEO_API_KEY}"
      }
    }
  }
}

Codex · ~/.codex/config.toml

[mcp_servers.aeoapi]
url = "https://api.aeoapi.dev/mcp"
bearer_token_env_var = "AEO_API_KEY"

VS Code · .vscode/mcp.json

{
  "servers": {
    "aeoapi": {
      "type": "http",
      "url": "https://api.aeoapi.dev/mcp",
      "headers": { "Authorization": "Bearer ${input:aeo_key}" }
    }
  },
  "inputs": [
    { "id": "aeo_key", "type": "promptString",
      "password": true }
  ]
}

Make it part of your product.

Send a weekly change in mention rate to a client, or put a suggested edit in an editor’s review queue. Both start with a response your backend can read.

Client portal
Monthly report

Agency CRM visibility

18 of 30 valid answers mention Kestrel.

visibility.reportPython
res = requests.get( f"{BASE}/v2/analytics/visibility", headers=HEADERS, params={"brand_id": BRAND_ID, "start_at": START_AT, "end_at": END_AT}, ) row = res.json()["data"][0] print(round(row["mention_rate"] * 100))
Output60
Weekly digest
Email preview

This week in AI search

Mentions rose from 15 to 18 across 30 valid answers in each run.

mentions.digestPython
def rate(start, end): res = requests.get( f"{BASE}/v2/analytics/visibility", headers=HEADERS, params={"brand_id": BRAND_ID, "start_at": start, "end_at": end}, ) return res.json()["data"][0]["mention_rate"] change = rate(*THIS_WEEK) - rate(*LAST_WEEK) print(round(change * 100))
Output10
Editorial queue
Draft for review

Add an agency use case

Show how client portals handle approvals. Recheck the same prompts after publication.

content.reviewPython
res = requests.get( f"{BASE}/v2/recommendations", headers=HEADERS, params={"brand_id": BRAND_ID, "status": "open"}, ) print(res.json()["data"][0]["title"])
OutputAdd agency use cases to the product page

Build frontier marketing platforms using AEO APIs.