执行
SEO 审计
技术SEO审计包括可浏览性、在页面上、性能、结构化数据、移动和安全性。
POST
/api/v1/audits阅读和写钥匙开始审计
验证:在授权标题中输入 API 密钥。
| 参数 | 在 | 类型 | 描述 |
|---|---|---|---|
| url* | body | string | 页面 审计 |
| websiteId | body | string | 加入网站(自检测不如其它) |
请求
curl -X POST "https://devnoro.com/api/v1/audits" \
-H "Authorization: Bearer $DEVNORO_KEY" \
-H "Content-Type: application/json" \
-d '{ "url": "https://example.com" }'答案
{ "data": { "id": "cm1aud…", "status": "queued", "jobId": "cm1job…" } }422 validation_errorprivate or invalid URL, or three audits already running
GET
/api/v1/audits/{id}阅读关键审计状态、成绩和问题
验证:在授权标题中输入 API 密钥。
请求
curl "https://devnoro.com/api/v1/audits/cm1site9x0001" \
-H "Authorization: Bearer $DEVNORO_KEY"答案
{
"data": { "status": "completed", "score": 73, "categoryScores": { "technical": 70, "onpage": 82, ... },
"issues": [{ "severity": "critical", "category": "technical", "title": "Missing canonical tag", "recommendation": "Add a self-referencing canonical." }] }
}