Complete reference for API DNA detection engine
Run API DNA scans from your terminal:
$ npx api-dna api.openai.com $ npx api-dna my-relay.com --deep --key sk-xxx $ npx api-dna api.openai.com --json > report.json
Flags: --deep (full scan with API key), --key (API key), --json (machine-readable output)
API keys unlock higher rate limits (60/min vs 10/min). Pass via header:
curl -H "x-api-key: adna_your_key" \
-X POST https://api-dna.com/api/quick \
-H "Content-Type: application/json" \
-d '{"endpoint": "https://api.openai.com"}'No API key required. Detects family, relay status, pricing, trust level.
{"endpoint": "https://api.openai.com"}overallScore — 0-100grade — A/B/C/Dfingerprint — detectedFamily, detectedModel, confidencerelay — isRelay, isOfficial, isLegitRelay, relayHopstrustReport — level (L0-L7), checks[]priceAudit — priceStatus, markupPercent, officialPriceRangeipInfo — ip, org, city, countryRequires target API key. Returns SSE stream with progress + final report.
{"endpoint": "https://api.openai.com", "apiKey": "sk-xxx", "model": "gpt-4o-mini"}Response: Server-Sent Events stream with progress and complete events.
GET /api/stats — Global scan statistics + recent scansGET /api/ranking — Provider rankings by scoreGET /api/providers — Verified provider directoryPOST /api/verify — Submit provider for verificationPOST /api/monitor — Subscribe to endpoint monitoringGET /api/monitor/alerts — Get monitoring alertsPOST /api/keys — Create API keyGET /api/keys — List API keys (masked)GET /embed/badge?endpoint=xxx — SVG embed badgePOST /api/share — Generate share textAdd a trust badge to your site:
<img src="https://api-dna.com/embed/badge?endpoint=api.openai.com" />