资源
关键词
跟踪关键字与位置,搜索量,困难,意图,目标URL和批准状态。
GET
/api/v1/keywords阅读关键列出关键词
验证:在授权标题中输入 API 密钥。
| 参数 | 在 | 类型 | 描述 |
|---|---|---|---|
| websiteId | query | string | 网站过滤器 |
| groupId | query | string | 组 ID 或“没有” |
| position | query | top3 | top10 | 11-20 | 21-100 | unranked | 位置布克 |
| movement | query | improved | declined | new | lost | 从前收藏的变化 |
| status | query | active | pending | approved | rejected | paused | 批准状态 |
| device | query | desktop | mobile | tablet | 装置 |
| q | query | string | 关键词包含 |
请求
curl "https://devnoro.com/api/v1/keywords" \
-H "Authorization: Bearer $DEVNORO_KEY"答案
{
"data": [{
"id": "cm1kw…", "websiteId": "cm1site9x0001", "keyword": "best hiking boots",
"position": 4, "previousPosition": 7, "bestPosition": 3,
"rankingUrl": "https://example.com/boots", "targetUrl": "https://example.com/boots",
"searchVolume": 18100, "difficulty": 62, "cpc": 1.84, "intent": "commercial",
"status": "approved", "device": "desktop", "country": "US"
}],
"meta": { "total": 376, "limit": 100, "offset": 0 }
}POST
/api/v1/keywords阅读和写钥匙添加关键词
验证:在授权标题中输入 API 密钥。
| 参数 | 在 | 类型 | 描述 |
|---|---|---|---|
| websiteId* | body | string | 网站 |
| keywords* | body | string[] | 每件请求可达2000元 |
| groupId | body | string | 组分配 |
| device | body | desktop | mobile | tablet | 默认桌面 |
| country | body | string | 假设我们 |
| targetUrl | body | string | 应该排名的页面 |
请求
curl -X POST "https://devnoro.com/api/v1/keywords" \
-H "Authorization: Bearer $DEVNORO_KEY" \
-H "Content-Type: application/json" \
-d '{ "websiteId": "cm1site9x0001", "keywords": ["hiking boots sale", "waterproof hiking boots"], "device": "mobile" }'答案
{ "data": { "added": 2, "skipped": 0 } }402 payment_requiredkeyword limit reached
PATCH
/api/v1/keywords阅读和写钥匙关键词 更新 关键词
验证:在授权标题中输入 API 密钥。
| 参数 | 在 | 类型 | 描述 |
|---|---|---|---|
| ids* | body | string[] | 关键字 IDs |
| patch* | body | object | 群体ID、状态、意图和/或目标 |
请求
curl -X PATCH "https://devnoro.com/api/v1/keywords" \
-H "Authorization: Bearer $DEVNORO_KEY" \
-H "Content-Type: application/json" \
-d '{ "ids": ["cm1kw…"], "patch": { "status": "approved", "groupId": "cm1grp…" } }'答案
{ "data": { "updated": 1 } }DELETE
/api/v1/keywords阅读和写钥匙删除关键词
验证:在授权标题中输入 API 密钥。
| 参数 | 在 | 类型 | 描述 |
|---|---|---|---|
| ids* | body | string[] | 关键字 IDs |
请求
curl -X DELETE "https://devnoro.com/api/v1/keywords" \
-H "Authorization: Bearer $DEVNORO_KEY" \
-H "Content-Type: application/json" \
-d '{ "ids": ["cm1kw…"] }'答案
{ "data": { "deleted": 1 } }