https://oppo.dalangdaojia.com/API/get_interaction.php
示例地址:https://oppo.dalangdaojia.com{"key": "xxx", "link": "https://mp.weixin.qq.com/s/H98zg-jkTEYESQ4fRab9KQ", "need_comment": false}
获取微信公众号文章的互动数据,包括阅读数、点赞数、在看数、收藏数、转发数和评论数。带评论数:0.05元/次
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 用户密钥 |
| link | string | 是 | 文章链接,支持长连接、短链接、搜狗临时链接 |
| need_comment | string | 是 | 是否需要评论数 |
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | Integer | 状态码,200表示成功 |
| msg | String | 状态描述 |
| points | Integer | 余额 |
| 字段名 | 类型 | 说明 |
|---|---|---|
| biz | String | 公众号标识 |
| mid | String | 消息ID |
| sn | String | 文章标识 |
| idx | String | 索引 |
| comment_id | String | 评论ID |
| 字段名 | 类型 | 说明 |
|---|---|---|
| collect_num | Integer | 收藏数 |
| like_num | Integer | 在看数 |
| old_like_num | Integer | 点赞数 |
| read_num | Integer | 阅读数 |
| share_num | Integer | 转发数 |
| comment_num | Integer | 评论数 |
| 状态码 | 说明 |
|---|---|
| 200 | 请求成功,服务器已成功处理了请求。 |
| 403 | 服务器拒绝请求。这可能是由于缺少必要的认证凭据(如API密钥)或权限不足。 |
| 404 | 请求的资源未找到。请检查您的请求地址是否正确。 |
| 429 | 请求过于频繁。您已超出速率限制,请稍后再试。 |
| 500 | 服务器内部错误。服务器在执行请求时遇到了问题。 |
此处将显示接口返回结果...
<?php
$url = 'https://oppo.dalangdaojia.com/API/get_interaction.php';
$params = ['key' => 'YOUR_VALUE', 'link' => 'YOUR_VALUE', 'need_comment' => 'YOUR_VALUE', ];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>import requests
url = "https://oppo.dalangdaojia.com/API/get_interaction.php"
params = {
'key': 'YOUR_VALUE',
'link': 'YOUR_VALUE',
'need_comment': 'YOUR_VALUE',
}
response = requests.get(url, params=params)
print(response.text)const url = new URL('https://oppo.dalangdaojia.com/API/get_interaction.php');
const params = {
'key': 'YOUR_VALUE',
'link': 'YOUR_VALUE',
'need_comment': 'YOUR_VALUE',
};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
fetch(url)
.then(response => response.text())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));