执行
报告
创建活动报告,搜索控制台,SERP,AI可见性,技术SEO和索引PDF,CSV或JSON。
POST
/api/v1/reports阅读和写钥匙创建报告
验证:在授权标题中输入 API 密钥。
| 参数 | 在 | 类型 | 描述 |
|---|---|---|---|
| type* | body | campaign | search_console | serp | ai_visibility | technical | indexing | 报告类型 |
| format | body | pdf | csv | json | 默认 PDF |
| websiteId | body | string | 所有网站当被忽略时 |
| 起 | body | YYYY-MM-DD | 期开始 |
| 至 | body | YYYY-MM-DD | 期末期 |
| whiteLabel | body | boolean | 使用Workspace Branding |
请求
curl -X POST "https://devnoro.com/api/v1/reports" \
-H "Authorization: Bearer $DEVNORO_KEY" \
-H "Content-Type: application/json" \
-d '{ "type": "search_console", "format": "pdf", "websiteId": "cm1site9x0001" }'答案
{ "data": { "id": "cm1rep…", "status": "queued", "jobId": "cm1job…" } }GET
/api/v1/reports阅读关键列表报告
验证:在授权标题中输入 API 密钥。
请求
curl "https://devnoro.com/api/v1/reports" \
-H "Authorization: Bearer $DEVNORO_KEY"答案
{ "data": [{ "id": "cm1rep…", "title": "Search Console report — example.com", "format": "pdf", "status": "completed" }] }GET
/api/v1/reports/{id}阅读关键报告状态
验证:在授权标题中输入 API 密钥。
请求
curl "https://devnoro.com/api/v1/reports/cm1site9x0001" \
-H "Authorization: Bearer $DEVNORO_KEY"答案
{ "data": { "id": "cm1rep…", "status": "completed", "downloadUrl": "/api/v1/reports/cm1rep…/download" } }