资源
关键词组
品牌、商业、信息、交易、本地或自定义等团体组织报告的关键词。
GET
/api/v1/keyword-groups阅读关键关键词组列表
验证:在授权标题中输入 API 密钥。
| 参数 | 在 | 类型 | 描述 |
|---|---|---|---|
| websiteId | query | string | 仅为本网站的组 |
请求
curl "https://devnoro.com/api/v1/keyword-groups" \
-H "Authorization: Bearer $DEVNORO_KEY"答案
{ "data": [{ "id": "cm1grp…", "name": "Commercial", "type": "commercial", "websiteId": "cm1site9x0001", "keywords": 42 }] }POST
/api/v1/keyword-groups阅读和写钥匙创建关键词组
验证:在授权标题中输入 API 密钥。
| 参数 | 在 | 类型 | 描述 |
|---|---|---|---|
| name* | body | string | 组名称 |
| type | body | brand | commercial | informational | transactional | local | custom | 默认定义 |
| websiteId | body | string | 可选 - 工作空间 - 全域,当被忽略时 |
请求
curl -X POST "https://devnoro.com/api/v1/keyword-groups" \
-H "Authorization: Bearer $DEVNORO_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Pricing pages", "type": "commercial", "websiteId": "cm1site9x0001" }'答案
{ "data": { "id": "cm1grp…", "name": "Pricing pages", "type": "commercial" } }DELETE
/api/v1/keyword-groups/{id}阅读和写钥匙删除一个组(关键词保留)
验证:在授权标题中输入 API 密钥。
请求
curl -X DELETE "https://devnoro.com/api/v1/keyword-groups/cm1site9x0001" \
-H "Authorization: Bearer $DEVNORO_KEY"答案
{ "data": { "deleted": true } }