百度权重查询
最后更新于:2022-04-02 08:19:40
## 百度权重查询
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/23/3e/233e31f94aef37123ff4144fd8d594f7_157x122.png)
> 根据域名返回百度(权重/预估流量/关键词数)
## 接口费用( [点击购买](https://market.topthink.com/product/362))
> 最低 0.003元/次
## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086))
## 接口1:百度PC权重
### 请求地址
```
GET https://api.topthink.com/baidu/pc_weight
```
### 请求参数
| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| appCode| 是|string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) |
| domainName | 是 | string | 获取的域名 |
### 返回`data`参数
| 名称 | 类型 | 说明 |
| --- | --- | --- |
| Br | int | 权重 |
| Kwcount | int | 关键词数 |
| Uvcount | int | 预估流量 |
| UpdateTime | int | 更新时间 |
## SDK调用
```
$client = new Client("YourAppCode");
$result = $client->baiduPcWeight()
->withDomainName('thinkphp.cn')
->request();
```
返回示例:
~~~
{
"code":0,
"message": "成功",
"data": {
"Br": 4,
"Kwcount": 6252,
"Uvcount": 3143,
"UpdateTime": "2020-12-25"
}
}
~~~
## 接口2:百度移动权重
根据域名返回百度移动(权重/预估流量/关键词数)
### 请求地址
```
GET https://api.topthink.com/baidu/mobile_weight
```
### 请求参数
| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| appCode| 是|string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) |
| domainName | 是 | string | 获取的域名 |
| keyword | 是 | string | 获取的关键词 |
### 返回`data`参数
| 名称 | 类型 | 说明 |
| --- | --- | --- |
| Br | int | 权重 |
| Kwcount | int | 关键词数 |
| Uvcount | int | 预估流量 |
| UpdateTime | int | 更新时间 |
## SDK调用
```
$client = new Client("YourAppCode");
$result = $client->baiduMobileWeight()
->withDomainName('thinkphp.cn')
->request();
```
返回示例:
~~~
{
"code":0,
"message": "成功",
"data": {
"Br": 3,
"Kwcount": 485,
"Uvcount": 651,
"UpdateTime": "2020-12-25"
}
}
~~~
';