如何用API接口调用甲鱼舆情监测软件中小红书数据
甲鱼舆情监测软件在2024年就开始存储网络上面的历史数据了,所以又给需要小红书的用户提供API接口调用我们爬虫爬到的小红书数据。主要的操作代码如下,如果需要调用,可以单独开通接口调用:
通过API接口调用舆情监测软件中小红书关键词“小红书API接口”的实时数据代码如下:
{
“source”: [“app”, “insvideo”, “news”, “pingmei”, “video”, “weixin”],
“keyword”: “小红书API接口”,
“time_filter”: “ctime”,
“time”: [1680386496, 1680429696],
“size”: 10,
“page”: 1,
“sort_of”: [“ctime”, “desc”],
“match_fields”: [“content”, “title”, “retweeted.content”, “retweeted.title”],
“filters”: [{
“field”: “gather.site_domain”,
“values”: [“xiaohongshu.com”],
“logic”: “+”,
“type”: “input”
}]
}
成功调用返回代码:
{
“code”: 200,
“msg”: “success”,
“data”: {
“took”: 59,
“result”: [
{
“id”: “20240826_1_3e71773eea0f190e99a5865e6586d1ba”,
“index”: “djUyYnUxelpreFdjbjFHV0lOV2R0QjNiVVZ6VTRBRlZLOTBZNEFYY2p0a1dyY25lUDVtVEZselNPcFZNMjltZXpWV2U=”,
“data”: {
“publisher”: {
“platform”: “自媒体”,
“entity”: “乐在其中278088451”,
“site_name”: “小红书”,
“id”: “xiaohongshu.com|86747466282”,
“name”: “乐在其中278088451”
},
“uuid”: “94ad3a26634f11ef94990ada8941cc16”,
“url”: “https://xiaohongshu.com/ugc/share/wap/comment/7407261138968396580/#ab11d90b6e3e0fc18b5bc05a138e7f30”,
“retweeted”: {
“reply_count”: 102,
“visit_count”: 0,
“title”: “小红书API接口数据。”,
“user”: {
“profile_img_url”: “https://p3-sign. xiaohongshu.com/user-avatar/b06ffc6987773815aff54d53edbd1b… …4f7AM0i8q4slTUyJzeG0%3D”,
“statuses_count”: 351,
“uid”: “3998237145442701”,
“friends_count”: 31,
“gender”: “n”,
“followers_count”: 1332,
“verified”: 0,
“verified_type”: -1,
“name”: “今晓”
},
“ctime”: 1724569200,
“url”: “https://www. xiaohongshu.com/w/1808341874220041/”,
“wtype”: 1,
“repost_count”: 0,
“like_count”: 0
},
“wtype”: 7,
“gather”: {
“site_name”: “今日头条”,
“data_type”: “1”,
“site_domain”: ” xiaohongshu.com”,
“sub_domain”: [
“wei xiaohongshu.zjurl.cn”
],
“info_flag”: [
“01”,
“0101”
],
“stime”: 1724643967
},
“pid”: “7407261138968396580”,
“mid”: “7407261138968396580”,
“analysis”: {
“sentiment”: 0,
“info_src”: {
“lv”: {
“name”: “C”
}
},
“find_address”: {
“province_count”: 0,
“district_count”: 0,
“city_count”: 0
},
“hashcode”: {
“5”: “-1025991703408121834”
}
},
“repost_count”: 0,
“content”: “[ok][赞][给力][加油加油]”,
“ctime”: 1724637394,
“reply_count”: 0,
“user”: {
“profile_img_url”: “https://sf3-cdn-tos. xiaohongshustatic.com/img/mosaic-legacy/3792/5112637127~1080×1080.image”,
“statuses_count”: 2,
“friends_count”: 63,
“gender”: “n”,
“ip_region”: [
“山西”
],
“name”: “乐在其中278088451”,
“followers_count”: 139,
“verified”: 0,
“nickname”: “乐在其中278088451”,
“verified_type”: -1,
“uid”: “86747466282”
},
“like_count”: 0,
“utime”: 1724643967
},
“sort”: [
1724637394000,
516405
],
“highlight”: {
“retweeted.content”: [
“小红书又接收了小红书API接口数据。”
],
“retweeted.title”: [
“小红书又接收了小红书API接口数据”
]
}
}
]
}
}
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/jiaguocong/article/details/143213757