← Back to hafzen.com

Developers

Every public surface of Hafzen is free and unauthenticated. Machine-readable contracts: openapi.json · llms.txt · api-catalog

Hafzen is the independent measurement standard for AI visibility: SEO, AEO, GEO and agent readiness (AO), measured on published evidence — never grading its own homework.

Benchmark API

The live distribution behind the Hafzen Index — aggregates only, individual scores are never exposed. CORS-open to hafzen.com; elsewhere, proxy it.

GEThttps://app.hafzen.com/api/benchmark
# Distribution of every site measured in the last 180 days
curl https://app.hafzen.com/api/benchmark

# → { "ok": true, "available": true, "n": 412, "median": 54,
#     "p25": 41, "p75": 67, "min": 12, "max": 96 }

# Where does a score of 72 stand?
curl "https://app.hafzen.com/api/benchmark?score=72"

# → { "ok": true, "available": true, "n": 412, "score": 72,
#     "percentile": 78.4, "tier": "top-25", "median": 54 }

Verified badge

A live score image rendered by Hafzen — the number can't be self-typed. Date-stamped from your latest verified measurement.

GEThttps://app.hafzen.com/api/badge/{token}
<a href="https://hafzen.com">
  <img src="https://app.hafzen.com/api/badge/rs_YOUR_TOKEN"
       width="236" height="56" alt="Hafzen verified score">
</a>

# Options: ?theme=light  ·  ?variant=compact

Full rules: badge & verification.

GEThttps://app.hafzen.com/api/badge/domain/{domain}.svg
# Free live badge by domain — latest quick-scan score, no token, no auth.
# Renders an honest "not measured yet" state until the site is scanned once.
<img src="https://app.hafzen.com/api/badge/domain/yourdomain.com.svg"
     width="236" height="56" alt="AI visibility quick-scan score — Hafzen">

# Same options (?theme=light · ?variant=compact) — labeled "quick scan" on its face.
# Richer card (score + grade + date + link): https://app.hafzen.com/embed/{domain}

MCP server — tools for AI assistants

Six free tools, no auth: quick scan, GEO audit, robots.txt check, bot classification, freshness analysis, citation volatility stats. Works with ChatGPT, Claude and any MCP client.

POSThttps://app.hafzen.com/api/mcp
curl https://app.hafzen.com/api/mcp \
  -H "content-type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize",
       "params":{"protocolVersion":"2025-06-18","capabilities":{},
       "clientInfo":{"name":"my-agent","version":"1.0"}}}'

# Then tools/list and tools/call with, e.g., hafzen_geo_quick_scan

Private by default

Measurement data never leaves your account: there are no public report pages and no share links. The only public artifact is the verified badge — a live, date-stamped score image you choose to embed on your own site.

Rate limits are generous; if you hit one, back off and email [email protected] · Service status: status page