抖音协议算法无非就是 xgorgon算法简称xg算法。还有设备注册算法,设备号激活算法,以及抖音号登陆注册,还有最关键的xlog算法,过抖音风控关键算法。
这些算法相辅相成。目前有如下接口,其他接口也可一个根据相关算法自己进行封装集成就可以了
获取设备信息
获取设备信息
简要描述:
- 可以查看您注册的相关设备信息
请求URL:
- {APIURL}/dy/device/info
- Access-Token
请求方式
- POST
请求头Headers
- Content-Type:multipart/form-data
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
device_id | Y | string |
返回数据:
参数名 | 类型 | 说明 |
---|---|---|
code | int | 0成功,-1失败 1-提示消息 |
msg | string | 反馈信息 |
data | json | deviceinfo数据 |
请求参数示例
{
"device_id": "123232323"
}
{
"code": 0,
"data": {
"ip": "",
"proxies": {
"http": "socks5://xxxxx:xxx@xx:xx",
"https": "socks5://xxxx:xx@xxxx:xx"
},
"version_name": "19.4.0",
"version_code": 190400,
"manifest_version_code": 190401,
"update_version_code": 19409900,
"gen_time": "2022-02-12 15:20:41",
"_gen_time": xx,
"start_time": 1652338541.017984,
"start_time_ts": 1652338541,
"start_time_tk": 1652338541017,
"apk_first_install_time": xxxx,
"first_install_time": xxx,
"verify_ticket": "",
"data_user_ts
},
"msg": "success"
}
发送文本消息
发送文本消息-私信
简要描述:
- 发送文本消息
请求URL
- {APIURL}/dy/msg/txt_msg
请求方式
- POST
请求头Headers
- Content-Type:application/json
- Access-Token:login接口返回
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wcid | 是 | string | 微信实例ID |
to_wx_ids | 是 | string | 接收人抖音号 |
content | 是 | string | 文本内容消息息 |
返回数据:
参数名 | 类型 | 说明 |
---|---|---|
code | string | 0成功,-1失败 |
msg | string | 反馈信息 |
请求参数示例
{
"content": "string",
"to_wx_id": "string",
"wcid": "string"
}
成功返回示例
{
"msg": "发送成功",
"code": 0,
"data": null
}
搜索视频
搜索视频
简要描述:
- 通过关键字搜索视频, 切换到视频页的查询数据
请求URL
- {APIURL}/dy/aweme/search_video
请求方式
- POST
请求头Headers
- Content-Type:multipart/form-data
- Access-Token:login接口返回
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wcid | 是 | string | 会话ID |
keyword | 是 | String | 搜索词 |
page_size | 否 | int | 第几页 |
请求参数示例
{
"keyword": "姚明",
"page_index": 1,
"page_size": 10,
"wcid": "1524670718678142971"
}
成功返回示例
{
"msg": "success",
"code": 0,
"data":[
{},{}]
}
搜索评论
搜索评论
简要描述:
请求URL
- {APIURL}/dy/aweme/search_comment
请求方式
- POST
请求头Headers
- Content-Type:application/json
- Access-Token:login接口返回
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wcid | 是 | string | 会话ID |
keyword | 是 | String | 搜索词 |
page_size | 否 | int | 第几页 |
请求参数示例
{
"aweme_author_sec_uid": "可选",
"aweme_id": "11111",
"page_index": 0,
"page_size": 0,
"wcid": "string"
}
成功返回示例
{
"msg": "success",
"code": 0,
"data":[
{},{}]
}
点赞
搜索评论
简要描述:
- 合作后,可以使用
请求URL
- {APIURL}/dy/follow/user_digg
请求方式
- POST
请求头Headers
- Content-Type:application/json
- Access-Token:login接口返回
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wcid | 是 | string | 会话ID |
keyword | 是 | String | 搜索词 |
page_size | 否 | int | 第几页 |
请求参数示例
{
"aweme_author_sec_uid": "可选",
"aweme_id": "11111",
"page_index": 0,
"page_size": 0,
"wcid": "string"
}
成功返回示例
{
"msg": "success",
"code": 0,
"data":[
{},{}]
}
关注
搜索评论
简要描述:
请求URL
- {APIURL}/dy/user/follow_user_digg
请求方式
- POST
请求头Headers
- Content-Type:application/json
- Access-Token:login接口返回
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wcid | 是 | string | 会话ID |
keyword | 是 | String | 搜索词 |
page_size | 否 | int | 第几页 |
请求参数示例
{
"aweme_author_sec_uid": "可选",
"aweme_id": "11111",
"page_index": 0,
"page_size": 0,
"wcid": "string"
}
成功返回示例
{
"msg": "success",
"code": 0,
"data":[
{},{}]
}
评论
评论+1
简要描述:
- 合作后可以使用
请求URL
- {APIURL}/dy/comment/comment_publish2
请求方式
- POST
请求头Headers
- Content-Type:application/json
- Access-Token:login接口返回
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wcid | 是 | string | 会话ID |
keyword | 是 | String | 搜索词 |
page_size | 否 | int | 第几页 |
请求参数示例
{
"content": "非常赞哦",
"aweme_id": "11111",
"wcid": "string"
}
成功返回示例
{
"code": 0,
"data": {
"code": 0,
"data": {
"comment": {
"aweme_id": "6992851582635347231",
"cid": "7106820952499782436",
"create_time": 1654685707,
"digg_count": 0,
"image_list": null,
"label_list": null,
"reply_comment": null,
"reply_id": "0",
"reply_to_reply_id": "0",
"status": 7,
"text": "非常喜欢",
"text_extra": [],
"text_music_info": null,
"user": {
"accept_private_policy": false,
"account_region": "",
"ad_cover_url": null,
"apple_account": 0,
"authority_status": 2,
"avatar_168x168": {
"height": 720,
"uri": "168x168/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61",
"url_list": [
"https://p9.douyinpic.com/img/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61~c5_168x168.webp?from=2956013662",
"https://p11.douyinpic.com/img/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61~c5_168x168.webp?from=2956013662",
"https://p26.douyinpic.com/img/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61~c5_168x168.webp?from=2956013662",
"https://p9.douyinpic.com/img/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61~c5_168x168.jpeg?from=2956013662"
],
"width": 720
},
"avatar_300x300": {
"height": 720,
"uri": "300x300/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61",
"url_list": [
"https://p9.douyinpic.com/img/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61~c5_300x300.webp?from=2956013662",
"https://p11.douyinpic.com/img/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61~c5_300x300.webp?from=2956013662",
"https://p26.douyinpic.com/img/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61~c5_300x300.webp?from=2956013662",
"https://p9.douyinpic.com/img/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61~c5_300x300.jpeg?from=2956013662"
],
"width": 720
},
"avatar_larger": {
"height": 720,
"uri": "1080x1080/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61",
"url_list": [
"https://p9.douyinpic.com/aweme/1080x1080/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.webp?from=2956013662",
"https://p11.douyinpic.com/aweme/1080x1080/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.webp?from=2956013662",
"https://p26.douyinpic.com/aweme/1080x1080/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.webp?from=2956013662",
"https://p9.douyinpic.com/aweme/1080x1080/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.jpeg?from=2956013662"
],
"width": 720
},
"avatar_medium": {
"height": 720,
"uri": "720x720/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61",
"url_list": [
"https://p9.douyinpic.com/aweme/720x720/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.webp?from=2956013662",
"https://p11.douyinpic.com/aweme/720x720/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.webp?from=2956013662",
"https://p26.douyinpic.com/aweme/720x720/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.webp?from=2956013662",
"https://p9.douyinpic.com/aweme/720x720/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.jpeg?from=2956013662"
],
"width": 720
},
"avatar_thumb": {
"height": 720,
"uri": "100x100/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61",
"url_list": [
"https://p9.douyinpic.com/aweme/100x100/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.webp?from=2956013662",
"https://p11.douyinpic.com/aweme/100x100/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.webp?from=2956013662",
"https://p26.douyinpic.com/aweme/100x100/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.webp?from=2956013662",
"https://p9.douyinpic.com/aweme/100x100/aweme-avatar/mosaic-legacy_2fa6300033526861f8d61.jpeg?from=2956013662"
],
"width": 720
},
"avatar_uri": "aweme-avatar/mosaic-legacy_2fa6300033526861f8d61",
"aweme_control": {
"can_comment": true,
"can_forward": true,
"can_share": true,
"can_show_comment": true
},
"aweme_count": 0,
"aweme_hotsoon_auth": 1,
"aweme_hotsoon_auth_relation": 1,
"ban_user_functions": null,
"bind_phone": "",
"can_set_geofencing": null,
"card_entries": null,
"card_entries_not_display": null,
"card_sort_priority": null,
"cf_list": null,
"cha_list": null,
"close_friend_type": 0,
"comment_filter_status": 0,
"comment_setting": 0,
"commerce_user_level": 0,
"constellation": 11,
"cover_url": [
{
"height": 720,
"uri": "c8510002be9a3a61aad2",
"url_list": [
"https://p9.douyinpic.com/obj/c8510002be9a3a61aad2?from=2956013662",
"https://p11.douyinpic.com/obj/c8510002be9a3a61aad2?from=2956013662",
"https://p26.douyinpic.com/obj/c8510002be9a3a61aad2?from=2956013662"
],
"width": 720
}
],
"create_time": 1583420793,
"custom_verify": "",
"cv_level": "",
"display_info": null,
"download_prompt_ts": 0,
"download_setting": -1,
"duet_setting": 0,
"enable_nearby_visible": true,
"enterprise_verify_reason": "",
"favoriting_count": 0,
"fb_expire_time": 0,
"follow_status": 0,
"follower_count": 0,
"follower_request_status": 0,
"follower_status": 0,
"followers_detail": null,
"following_count": 0,
"geofencing": [],
"google_account": "",
"has_email": false,
"has_facebook_token": false,
"has_insights": false,
"has_orders": false,
"has_twitter_token": false,
"has_unread_story": false,
"has_youtube_token": false,
"hide_location": false,
"hide_search": false,
"homepage_bottom_toast": null,
"ins_id": "",
"interest_tags": null,
"is_ad_fake": false,
"is_binded_weibo": false,
"is_block": false,
"is_blocked_v2": false,
"is_blocking_v2": false,
"is_cf": 0,
"is_discipline_member": false,
"is_gov_media_vip": false,
"is_mix_user": false,
"is_not_show": false,
"is_phone_binded": false,
"is_star": false,
"is_verified": true,
"item_list": null,
"ky_only_predict": 0,
"language": "zh-Hans",
"link_item_list": null,
"live_agreement": 0,
"live_agreement_time": 0,
"live_commerce": false,
"live_status": 0,
"live_verify": 2,
"location": "",
"max_follower_count": 0,
"need_points": null,
"need_recommend": 1,
"neiguang_shield": 0,
"new_story_cover": null,
"nickname": "羊爱吃狼",
"offline_info_list": null,
"personal_tag_list": null,
"platform_sync_info": null,
"prevent_download": false,
"react_setting": 0,
"reflow_page_gid": 0,
"reflow_page_uid": 0,
"region": "CN",
"relative_users": null,
"room_id": 0,
"school_category": 1,
"school_id": "6601125174496462855",
"school_name": "",
"school_poi_id": "",
"school_type": 0,
"search_impr": {
"entity_id": "259097319967019"
},
"sec_uid": "MS4wLjABAAAAQifKtWbFoVMlOP5m1jIi0o4eUipQvtHS0g6vwwut_80",
"secret": 0,
"shield_comment_notice": 0,
"shield_digg_notice": 0,
"shield_follow_notice": 0,
"short_id": "3574866331",
"show_gender_strategy": 0,
"show_image_bubble": false,
"show_nearby_active": false,
"signature": "记录生活点滴,寻找快乐童年",
"signature_display_lines": 0,
"signature_extra": null,
"special_lock": 1,
"status": 1,
"stitch_setting": 0,
"story_count": 0,
"story_open": false,
"sync_to_toutiao": 0,
"total_favorited": 0,
"tw_expire_time": 0,
"twitter_id": "",
"twitter_name": "",
"type_label": null,
"uid": "259097319967019",
"unique_id": "yangaichilan",
"unique_id_modify_time": 1654685707,
"urge_detail": {
"user_urged": 0
},
"user_canceled": false,
"user_mode": 0,
"user_not_see": 0,
"user_not_show": 1,
"user_period": 0,
"user_permissions": null,
"user_rate": 1,
"user_tags": null,
"verification_type": 1,
"verify_info": "",
"video_icon": {
"height": 720,
"uri": "",
"url_list": [],
"width": 720
},
"weibo_name": "",
"weibo_schema": "",
"weibo_url": "",
"weibo_verify": "",
"white_cover_url": null,
"with_commerce_entry": false,
"with_dou_entry": false,
"with_fusion_shop_entry": false,
"with_shop_entry": false,
"youtube_channel_id": "",
"youtube_channel_title": "",
"youtube_expire_time": 0
},
"user_digged": 0
},
"extra": {
"fatal_item_ids": [],
"logid": "202206081855070102120400200105308D",
"now": 1654685707000
},
"is_part_see_item": false,
"log_pb": {
"impr_id": "202206081855070102120400200105308D"
},
"status_code": 0,
"status_msg": "评论成功"
},
"msg": "ok"
},
"msg": "success"
}
获取抖音热榜
抖音热播榜
简要描述:
请求URL
- {APIURL}/dy/live/get_hot_ranklist_rooms
请求方式
- POST
请求头Headers
- Content-Type:multipart/form-data
- Access-Token:login接口返回
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wcid | 是 | string | 会话ID |
请求参数示例
{
"wcid": "153551136689750xxx"
}
{
"code": 0,
"data": {
"data": {
"ranks": [
{
"gap_description": "",
"label": "",
"rank": 1,
"raw_ad_data": "",
"room": {
"challenge_info": "",
"content_label": {
"avg_color": "#DCDCFA",
"flex_setting_list": [],
"height": 0,
"image_type": 0,
"is_animated": false,
"open_web_url": "",
"text_setting_list": [],
"uri": "webcast/webcast_hot_rank_redPackage_light_20201118.png",
"url_list": [
"http://p6-webcast.douyinpic.com/img/webcast/webcast_hot_rank_redPackage_light_20201118.png~tplv-resize:0:0.image",
"http://p3-webcast.douyinpic.com/img/webcast/webcast_hot_rank_redPackage_light_20201118.png~tplv-resize:0:0.image",
"http://p9-webcast.douyinpic.com/img/webcast/webcast_hot_rank_redPackage_light_20201118.png~tplv-resize:0:0.image"
],
"width": 0
},
"cover": {
"avg_color": "#CCA3BE",
"flex_setting_list": [],
"height": 0,
"image_type": 0,
"is_animated": false,
}
}
}
获取热播榜(小时)
获取直播间人气榜(小时榜)
简要描述:
请求URL
- {APIURL}/dy/live/get_hothour_ranklist_rooms
请求方式
- POST
请求头Headers
- Content-Type:multipart/form-data
- Access-Token:login接口返回
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wcid | 是 | string | 会话ID |
anchor_id | 是 | String | id |
sec_anchor_id | 是 | int | |
room_id | 是 | String | id |
请求参数示例
{
"anchor_id": "4416096245649518",
"room_id": "7107858435835808546",
"sec_anchor_id": "MS4wLjABAAAAd7M5_hVqarquigSl3t-Kuw-e8_ehsovZvmKmfXvyg8KyjWTPZZFQo-K5BtkA8_zZ",
"wcid": "xxx"
}
成功返回示例
{
"code": 0,
"data": {
"data": {
"anchor_info": {
"city_code": "",
"delta": 0,
"fixed_footer_description": "",
"foot_desc": "已参与排名",
"gap_description": "",
"gap_rich_description": "",
"is_hide_support_button": true,
"rank": 1,
"rank_name": "rank_anchor_hour",
"rich_description": "",
"score": 0,
"score_desc": "",
"shop_tags": [],
"status": 0,
"user": {
"adversary_authorization_info": 0,
"adversary_user_status": 0,
"age_range": 0,
"allow_be_located": false,
"allow_find_by_contacts": false,
"allow_others_download_video": false,
"allow_others_download_when_sharing_video": false,
"allow_share_show_profile": false,
"allow_show_in_gossip": false,
"allow_show_my_action": false,
"allow_strange_comment": false,
"allow_unfollower_comment": false,
"allow_use_linkmic": false,
}
}
}
获取直播间人气榜
获取直播间人气榜
简要描述:
- 合作后 可用
请求URL
- {APIURL}/dy/live/popularity
请求方式
- POST
请求头Headers
- Content-Type:multipart/form-data
- Access-Token:login接口返回
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wcid | 是 | string | 会话ID |
anchor_id | |||
room_id |
请求参数示例
{
"wcid": "153551136689750xxx",
"anchor_id":"",
"room_id":""
}
获取对方粉丝群列表
直获取对方粉丝群列表
简要描述:
- 合作后可测试
请求URL
- {APIURL}/dy/group/other_list
请求方式
- POST
请求头Headers
- Content-Type:multipart/form-data
- Access-Token:login接口返回
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wcid | 是 | string | 会话ID |
sec_owner_uid | 是 | String |
请求参数示例
{
"sec_owner_uid": "string",
"wcid": ""
}
成功返回示例
{
"msg": "success",
"code": 0,
"data":{
}
}
错误返回示例
{
"msg": "失败",
"code": -1,
"data": null
}