Show the security grade of your extension on its store listing, website or README. The badge is an image: no script, no tracking, no account.
https://extensionsecurity.io/badge/{browser}/{id}[](https://extensionsecurity.io/report/chrome/ddkjiahejlhfcafbddmgiahcphecmpfh)
{browser} is chrome, edge or firefox; {id} is the store ID (the add-on slug for Firefox). The badge follows the latest analyzed version. The ready-to-paste snippet is at the bottom of every report page.
Create a key in your account, under API keys.
curl https://extensionsecurity.io/api/v1/reports/chrome/ddkjiahejlhfcafbddmgiahcphecmpfh \ -H "Authorization: Bearer esk_your_api_key"
On the Pro plan, an account can make 500 requests per calendar month (UTC), all its keys added together; on Team & Enterprise, each key can make 50,000 requests per day. Errors are returned as with the matching HTTP status; responses carry a header.
{ "error": { "code", "message" } }429Retry-After| Method | Path | Description |
|---|---|---|
| GET | /api/v1/reports/{browser}/{id} | Latest report of an extension: grade, scores, findings, plain-language summary, version history and changes. |
| POST | /api/v1/scans | Start the analysis of an extension. Body: { "browser": "chrome", "extension": "<id or store URL>" }. |
| GET | /api/v1/scans/{scan_id} | Status of a scan, with its result once it has completed. |
| GET | /api/v1/inventory | Your inventory, with the latest grade of each extension. |
| POST | /api/v1/inventory | Add up to 200 extensions to your inventory; missing analyses are queued. |
| GET | /api/v1/events | Changes detected in your inventory: new versions, added permissions, publisher changes, grade drops. |
| GET | /api/v1/policy?browser=chrome&format=json | The ExtensionSettings policy computed from your rules. Formats: json, reg, intune, mobileconfig. |
# 1. Start the scan
curl -X POST https://extensionsecurity.io/api/v1/scans \
-H "Authorization: Bearer esk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"browser": "chrome", "extension": "ddkjiahejlhfcafbddmgiahcphecmpfh"}'
# → { "scan_id": "…", "status": "pending", "status_url": "/api/v1/scans/…" }
# 2. Poll until "status" is "success" or "error"
curl https://extensionsecurity.io/api/v1/scans/{scan_id} \
-H "Authorization: Bearer esk_your_api_key"curl "https://extensionsecurity.io/api/v1/policy?browser=edge&format=reg" \ -H "Authorization: Bearer esk_your_api_key" \ -o edge-extension-settings.reg
Alert channels of type “Webhook” receive a JSON POST for each change detected in your inventory.
POST https://your-endpoint.example
X-ExtensionSecurity-Timestamp: 1767225600
X-ExtensionSecurity-Signature: sha256=<hex>
{
"event": {
"type": "permissions_added",
"severity": "high",
"title": "2 new permission(s): cookies, <all_urls>",
"extension": {
"browser": "chrome", "id": "…", "name": "…", "grade": "D",
"from_version": "1.4.0", "to_version": "1.5.0"
},
"details": { "permissions_added": ["cookies", "<all_urls>"] },
"report_url": "https://extensionsecurity.io/report/chrome/…"
}
}Verify the signature before trusting a request: compute the HMAC-SHA256 of <timestamp>.<raw body> with your signing secret, compare it in constant time, and reject timestamps older than a few minutes. Event types: new_version, permissions_added, ownership_changed, malicious_domain_added, domains_added, grade_degraded.