Run UXLens audits programmatically. Create an API key, send a POST, get results.
/api/audit/submit with your key in the Authorization header./api/audit/status?jobId=... until status is completed./api/audit/result/[jobId].All API requests require your API key in the Authorization header:
Authorization: Bearer ux_live_abc123...Keep your API key secret. Do not commit it to source control or expose it in client-side code.
curl -X POST https://uxlens.io/api/audit/submit \
-H "Authorization: Bearer ux_live_abc123..." \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'Response:
{
"jobId": "audit_1720123456789_abc",
"status": "processing",
"estimatedCost": 1
}curl https://uxlens.io/api/audit/status?jobId=audit_1720123456789_abc \
-H "Authorization: Bearer ux_live_abc123..."{
"status": "completed",
"progress": 100,
"step": "report"
}curl https://uxlens.io/api/audit/result/audit_1720123456789_abc \
-H "Authorization: Bearer ux_live_abc123..."Returns the full audit report with scores, issues by category (UX, UI, accessibility, performance), and detailed findings.
| Plan | Credits/month | Concurrent audits |
|---|---|---|
| Free | 3,000 | 1 |
| Pro | 40,000 | 2 |
| Developer | 80,000 | 5 |
| Power | 150,000 | 10 |
| Code | Meaning |
|---|---|
| 400 | Invalid URL or missing parameters |
| 401 | Missing or invalid API key |
| 402 | Insufficient credits |
| 429 | Rate limit exceeded |
| 500 | Internal error — retry with backoff |
Questions? Email support@uxlens.io