头图


抖音用户信息查询用户详情接口api代码对接如下

1.公共参数

名称    类型    必须    描述
key    String    √    get请求方式拼接在url中,点击获取
api_name    String    √    api接口名称
cache    String        默认否
result_type    String    否    json
lang    String        默认cn 简体中文
version    String    否    api版本

请求示例;

(CURL、PHP 、PHPsdk 、Python…)
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from future import print_function
import requests

请求示例 url 默认请求参数已经做URL编码

url = "https://qq390876337/smallredbook/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>¬e_id=5eb1097ba091410953951d17"
headers = {
    "Accept-Encoding": "gzip",
    "Connection": "close"
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj

.响应示例;

 "status_code": 0,
  "user_info": {
    "short_id": "0",
    "
    "signature": "世界上既无所谓快乐或也无所谓痛苦;只有一种状况与另一种状况的比较,如此而已。",
    "avatar_thumb": {
      "uri": "aweme-avatar/douyin-user-image-file_d17cbd03bcec0176edb977b72df8836b",
      "url_list": [
        "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/douyin-user-image-file_d17cbd03bcec0176edb977b72df8836b.jpeg?from=2956013662",
        "https://p11.douyinpic.com/aweme/100x100/aweme-avatar/douyin-user-image-file_d17cbd03bcec0176edb977b72df8836b.jpeg?from=2956013662",
        "https://p26.douyinpic.com/aweme/100x100/aweme-avatar/douyin-user-image-file_d17cbd03bcec0176edb977b72df8836b.jpeg?from=2956013662"
      ]
    },
    "avatar_medium": {
      "uri": "aweme-avatar/douyin-user-image-file_d17cbd03bcec0176edb977b72df8836b",
      "url_list": [
        "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/douyin-user-image-file_d17cbd03bcec0176edb977b72df8836b.jpeg?from=2956013662",
        "https://p11.douyinpic.com/aweme/100x100/aweme-avatar/douyin-user-image-file_d17cbd03bcec0176edb977b72df8836b.jpeg?from=2956013662",
        "https://p26.douyinpic.com/aweme/100x100/aweme-avatar/douyin-user-image-file_d17cbd03bcec0176edb977b72df8836b.jpeg?from=2956013662"
      ]
    },
    "follow_status": 0,
    "aweme_count": 0,
    "following_count": 3,
    "favoriting_count": 54000,
    "total_favorited": "0",
    "custom_verify": "",
    "unique_id": "72744489549",
    "verification_type": 0,
    "original_musician": {
      "music_count": 0,
      "music_used_count": 0,
      "digg_count": 0
    },
    "enterprise_verify_reason": "",
    "mplatform_followers_count": 50,
    "followers_detail": null,
    "platform_sync_info": null,
    "geofencing": null,
    "policy_version": null,
    "sec_uid": "MS4wLjABAAAAQCcY59_JTBd8G0SI340tkx6TQlAy3_vcy9vnJmh3FhXdrPIyp-Rsoc50fGpKRknZ",
    "type_label": null,
    "show_favorite_list": true,
    "card_entries": [ ],
    "mix_info": null
  },
  "extra": {
    "logid": "20231022205929C8CFD80F6143A8229EA3",
    "now": 1697979569746

交流学习;GitHub - magic999999/magicapi: 


Tony
1 声望1 粉丝