关键词百度指数

最后更新于:2022-04-02 08:19:31

## 关键词百度指数 ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/33/03/3303c5201a9a07d8d64efbf7ed92e04d_169x140.png) > 根据关键词返回百度PC指数、百度移动指数、整体指数 ## 接口费用( [点击购买](https://market.topthink.com/product/366)) > 最低 0.005元/次 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/baidu/index ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是|string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | keyword | 是 | string | 获取的关键词 | ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | StartDate | string | 开始时间 | | EndDate | string | 更新时间 | | BaiduAll | int | 百度30天整体指数","分隔 | | BaiduPc | int | 百度30天PC指数","分隔 | | BaiduMobile | int | 百度30天移动指数","分隔 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->baiduIndex() ->withKeyword('关键词') ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": { "StartDate": "2020-11-24", "EndDate": "2020-12-23", "BaiduAll": "1181,1332,1259,1196,1043,938,1305,1351,1303,1274,1184,1023,853,1135,1171,1189,1165,1152,1044,909,1221,1202,1154,1194,1170,956,871,1159,1184,1151", "BaiduPc": "982,1127,1066,991,847,740,1108,1150,1079,1096,999,846,670,946,988,985,944,959,852,703,1007,994,942,966,942,741,678,955,976,966", "BaiduMobile": "199,205,193,205,196,198,197,201,224,178,185,177,183,189,183,204,221,193,192,206,214,208,212,228,228,215,193,204,208,185" } } ~~~
';