Tools / API · Capability Matrix

TokenAPI Scan API: Plug detection, site profiles, and candidate evidence into your workflow

TokenAPI Scan provides not just one-off relay detection, but also leaderboard, site directory, candidate pool, pricing clues, and network diagnostics data endpoints. Suitable for pre-purchase verification, automated monitoring, internal dashboards, and third-party tool integration.

3Claude / OpenAI / Gemini Protocol Checks
SitesDirectory, details, detection history
CandidatesFirst-round connectivity & model endpoint evidence
ToolsIP / Ping / DNS / Status / Claude Connectivity

Capability Matrix

Protocol Detection API

POST/api/detect/{model}

Run detection against Claude, OpenAI, or Gemini protocols — verify endpoint reachability, response format, usage fields, model mapping, and basic compatibility.

View detection page →

Result Query API

GET/api/result/{job_id}

Poll a single detection job for status, duration, error info, and public report links — suitable for automated verification workflows.

View FAQ →

Site Detail API

GET/api/site/{site_id}

Read provider profiles, aggregated metrics, and recent detection records — for internal provider databases or pre-purchase checks.

Browse site directory →

Leaderboard Data

GET/api/ranking

Returns aggregated leaderboard results with confidence labels. Focuses on sites with accumulated detection evidence.

View leaderboard →

Candidate Pool Data

GET/api/candidates

Returns candidate domains with first-round probe status — for candidate archiving, manual review queues, and site expansion workflows.

View candidate archive →

Tools & Status Entry

GET/tools/*

Network tools covering IP, Ping, DNS, WebRTC, service status, and Claude connectivity — helps rule out local network variables.

Open toolbox →

Network Diagnostics API (15 open endpoints · no auth)

These endpoints live under /tools/api/* and require no API key — designed for operational monitoring, automated monitoring, and third-party troubleshooting integration.

My IP

GET/tools/api/ip/my

Get visitor's public IP (CF-Connecting-IP / X-Forwarded-For), with ASN, geolocation, and IP type.

Live call →

IP Risk Assessment

GET/tools/api/ip/risk/{ip}?source=claude

Scores IP against datacenter/proxy/anonymous network/known risk pools (0-100). Source supports claude/openai/gemini.

Example: 8.8.8.8 →

IP Lookup

GET/tools/api/ip/lookup?ip={ip}

Look up any IPv4/IPv6 for ASN, organization, geolocation, and IP range.

Example: 1.1.1.1 →

Ping Test

POST/tools/api/ping/run

Multi-probe ICMP/HTTP test with presets: global5, asia3, cn3. Returns per-probe RTT and packet loss.

Try in toolbox →

DNS Diagnostics

GET/tools/api/dns/diagnose?host={host}

Multi-resolver comparison (CF/Google/Quad9/Ali) — detects DNS pollution, CDN distribution, and CNAME chains.

Example: api.openai.com →

Service Status Aggregation

GET/tools/api/status/all

Returns aggregated status from Claude/OpenAI/Gemini/Anthropic Status and other official status pages (5min cache).

Live call →

Claude Endpoint Connectivity

GET/tools/api/claude/endpoints

Probes api.anthropic.com multi-region reachability, comparing direct vs CF edge responses.

Live call →

WebRTC Config

GET/tools/api/webrtc/config

Returns STUN/TURN server config for browser-side IP leak detection (public IP vs private IP).

Live call →

User Feedback

POST/tools/api/feedback

Submit bug reports or suggestions, body: {"type","message","context"}. Returns ticket_id.

View contact info →

IP Trace Targets

GET/tools/api/ip/trace-targets

List available trace targets (cloudflare, google, microsoft, etc.) for traceroute path diagnostics.

Live call →

IP Trace Probe

POST/tools/api/ip/profile-trace

Run traceroute to a target, returning per-hop RTT and ASN — for locating international link bottlenecks.

Use in toolbox →

Price Crawler Snapshot

GET/api/prices/snapshot

Returns the latest full price crawl snapshot (OpenRouter / LiteLLM dual source) with fetched_at timestamp.

View pricing page →

Sitemap Subgraph

GET/sitemap-prices.xml

L3 price detail page sitemap (~300 URLs, weekly lastmod). Used with /sitemap_index.xml main index.

View main index →

Dual-Stack IP Query

GET/tools/api/ip/dual-stack

Parallel query of visitor IPv4 + IPv6 public IPs. Returns {ipv4, ipv6, ipv4_ok, ipv6_ok, primary}.

Live call →

Keyless Public Connectivity

GET/tools/api/health/connectivity/{brand}

DNS+TCP+TLS+latency probes for claude/openai/gemini/anthropic/chatgpt — no API key needed. Returns {ok, host, dns_resolved, tcp_open, tls_ok, latency_ms}.

Example: openai →

Typical Workflow

1. Submit provider endpointUser or system submits base_url, protocol type, and test model.
2. Run protocol detectionCheck endpoint reachability, then analyze response structure and protocol compatibility.
3. Cross-reference site profilesCombine site directory, leaderboard, pricing clues, and candidate archives for judgment.
4. Output decision evidenceWrite results into internal dashboards, procurement workflows, or monitoring alerts.

Minimal Call Example

import requests

# Run Claude protocol detection
r = requests.post(
  "https://tokenscanai.com/api/detect/claude",
  json={
    "base_url": "https://api.example.com",
    "api_key": "sk-xxx"
  },
  timeout=30,
)
job_id = r.json()["job_id"]

# Query results
result = requests.get(
  f"https://tokenscanai.com/api/result/{job_id}",
  timeout=15,
)
print(result.json())
Security Note:API keys are used only for the detection request, not for public display. Public pages show aggregated metrics, site profiles, connectivity, and protocol results — never user secrets.