查询oCPC词包列表


oCPC词包管理,查询当前账户下的词包列表(含每个词包的关键词明细)。不分页,一次返回全部。

HTTP请求方式

POST

请求地址

https://api.e.360.cn/dianjing/ocpckwpkg/list

Headers 请求参数
字段 类型 必须 描述
Content-Type string yes application/x-www-form-urlencoded
apiKey string yes 注册时分配到的api key,该参数作为HTTP HEAD字段传递。
accessToken string yes 访问token
Body 请求参数
字段 类型 是否必须 描述
status Number No 按状态筛选:1-启用,0-暂停;不传返回全部
请求示例
curl -X POST \ 
--header 'apiKey:APIKEY' \ 
--header 'accessToken:ACCESSTOKEN' \ 
--data 'status=1' \ 
'https://api.e.360.cn/dianjing/ocpckwpkg/list'
SUCCESS-返回结果
{
  "errno": 0,
  "data": [
    {
      "id": 1000346,
      "title": "我的词包",
      "description": "核心词",
      "status": 1,
      "keywords": {
        "total": 2,
        "all": [
          "股票",
          "基金"
        ]
      }
    }
  ],
  "total": 1
}

keywords.all 为关键词明细数组,元素为词面字符串;total 与 all 数组长度一致。

ERROR-返回结果
{
  "failures": [
    {
      "code": 90201,
      "description": "status",
      "message": "参数错误"
    }
  ]
}
错误码
错误码 说明
90201 参数错误(status 须为整数 0/1),具体见 message

results matching ""

    No results matching ""