Releases: TikHub/TikHub-API-Python-SDK
V1.12.9
SDK V1.12.9 Release Notes:
[中文]
- 适配了API V5.2.3版本的新增接口
日志
哔哩哔哩
- 新增Bilibili单个视频详情接口,提升视频数据获取的精确度。
- 新增Bilibili视频播放URL接口,支持直接获取媒体内容。
- 新增Bilibili用户发布视频接口,支持从用户资料中详细提取发布内容。
- 新增Bilibili收藏夹获取接口,优化用户生成内容的管理。
- 新增Bilibili用户收藏视频获取接口,便于访问用户精选内容。
- 新增Bilibili用户个人资料接口,支持更详细、准确的用户信息提取。
- 新增Bilibili热门项目接口,支持追踪趋势和热门内容。
- 优化Bilibili视频评论接口,提升评论数据获取的效率和稳定性。
- 新增Bilibili评论回复获取接口,确保获取完整的评论线程数据。
- 新增Bilibili用户动态接口,提供更深入的用户活动数据跟踪。
- 新增Bilibili视频弹幕接口,丰富视频互动数据。
- 新增Bilibili直播间详情接口,支持更全面的直播活动追踪。
- 新增Bilibili直播视频和主播数据获取接口,支持实时直播数据的获取。
- 新增Bilibili所有直播分区获取接口,提升直播内容的发现能力。
- 新增Bilibili BV到AV格式转换接口,帮助标准化媒体格式。
- 新增Bilibili视频分段获取接口,支持访问视频的分段内容。
Twitter(X)
- 新增Twitter用户关注和粉丝列表接口,确保更稳定的社交关系数据提取。
- 新增Twitter帖子最新评论获取接口,丰富帖子的互动数据。
- 新增Twitter转发用户列表接口,支持跟踪转发互动。
- 新增Twitter热门话题接口,支持实时趋势追踪。
抖音
- 新增抖音网页端挑战搜索接口,增强基于挑战内容的数据获取能力。
- 优化抖音App V3版本设备注册接口,确保更顺畅的集成操作。
TikTok
- 新增TikTok App V3设备注册接口,优化设备数据集成和操作。
注意事项
- 请确保在调用API之前,在用户后台更新您的API Token的权限范围。否则,由于权限不足,您的Token可能会导致请求失败。
- 此次更新在多个平台上带来了重大改进和新功能,提升了数据获取的稳定性、准确性和效率。
[English]
- Adapted to the new interface of API version V5.2.3
Log
Bilibili
- Added a new interface for fetching Bilibili single video details, improving video-specific data retrieval.
- Added an interface for fetching Bilibili video play URL, enabling direct access to media content.
- Introduced the interface to fetch Bilibili user-posted videos, allowing detailed content extraction from user profiles.
- Added the ability to fetch and manage Bilibili collect folders, improving user-generated content collection handling.
- Enhanced the interface for fetching Bilibili user collection videos, making it easier to access curated content.
- Introduced Bilibili user profile fetching, enabling more detailed and accurate user information retrieval.
- Added an interface for fetching popular items on Bilibili, supporting trend and popularity tracking.
- Optimized the Bilibili video comments interface to enhance the efficiency and stability of comment extraction.
- Added support for fetching Bilibili comment replies, ensuring comprehensive comment thread data.
- Implemented the Bilibili user dynamics interface, providing more in-depth insights into user activity streams.
- Added an interface for fetching Bilibili video danmaku (bullet comments), enriching video engagement data.
- Introduced support for fetching live room details on Bilibili, enabling more comprehensive tracking of live-streamed events.
- Added an interface for retrieving live videos and streamers on Bilibili, allowing real-time streaming data acquisition.
- Added support for fetching all live area categories on Bilibili, improving live content discovery.
- Implemented a Bilibili interface for converting BV to AV format, assisting in media format standardization.
- Introduced the Bilibili video parts fetching interface, providing access to segmented video content.
Twitter(X)
- Added a stable version of the Twitter user followings and followers interface, ensuring more reliable social graph extraction.
- Added support for fetching the latest comments on Twitter posts, enriching post engagement data collection.
- Added the Twitter retweet user list interface, improving the ability to track retweet interactions.
- Added the Twitter trending topics interface, enabling real-time trend tracking across the platform.
Douyin
- Added the Douyin search challenge interface for web, enhancing challenge-related data retrieval.
- Improved the device registration interface for Douyin App V3, ensuring smoother integration and operation.
TikTok
- Added the TikTok App V3 register device interface, optimizing device data integration and operation.
Tips
- Please ensure that you update the scopes of your API Token in the user backend before calling the APIs. Failure to do so may result in insufficient permissions and failed requests.
Link:
https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.12.9
TikHub API V5.2.3 Release Notes
https://discord.com/channels/1070512513889878067/1088994529362841610/1289726244090417242
Install
pip install tikhub==1.12.9
V1.12.8
SDK V1.12.8 Release Notes:
[中文]
- 适配了API V5.2.2版本的新增接口
TikTok
- 新增了TikTok App V3版本的主页作品接口,增强了数据获取的稳定性。
- 新增了稳定版本的Twitter用户媒体内容接口。
- 新增了Twitter推文回复接口。
- 优化了Twitter搜索时间线接口,提升了查询速度。
Douyin
- 新增了Douyin Web端用户搜索结果V2接口,优化了搜索功能的准确性和响应速度。
[English]
- Adapted to the new interface of API version V5.2.2
TikTok
- Added the homepage work interface of TikTok App V3 version to enhance the stability of data acquisition.
-
Added a stable version of Twitter user media content interface.
-
Added Twitter tweet reply interface.
-
Optimized Twitter search timeline interface to improve query speed.
Douyin
- Added Douyin Web user search result V2 interface to optimize the accuracy and response speed of search function.
Link:
https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.12.8
TikHub API V5.2.2 Release Notes
https://discord.com/channels/1070512513889878067/1088994529362841610/1284725252756082768
Install
pip install tikhub==1.12.8
V1.12.7
SDK V1.12.7 Release Notes:
[中文]
- 更新了TikTok Web端的搜索接口参数(search_id以及cookie)
- 适配了API V5.2.1版本的新增接口
[English]
- Updated the search interface parameters (search_id and cookies) of TikTok Web
- Adapted to the new interface of API version V5.2.1
Link:
https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.12.7
TikHub API V5.2.1 Release Notes
https://discord.com/channels/1070512513889878067/1088994529362841610/1276056209245474871
Install
pip install tikhub==1.12.7
V1.12.5
SDK V1.12.5 Release Notes:
[中文]
支持使用自定义User Agent
例如:
# 导入tikhub | Import tikhub
from tikhub import Client
# 初始化Client | Initialize Client
client = Client(base_url="https://api.tikhub.io/",
api_key="YOUR_API_TOKEN",
proxies=None,
max_retries=3,
max_connections=50,
timeout=60,
max_tasks=50,
custom_user_agent="TikHub SDK Test User Agent/1.0.0"
)
[English]
Support for custom User Agent
For example:
# 导入tikhub | Import tikhub
from tikhub import Client
# 初始化Client | Initialize Client
client = Client(base_url="https://api.tikhub.io/",
api_key="YOUR_API_TOKEN",
proxies=None,
max_retries=3,
max_connections=50,
timeout=60,
max_tasks=50,
custom_user_agent="TikHub SDK Test User Agent/1.0.0"
)
Link:
https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.12.5
- Upgraded SDK to support Upstream API V5.2.0
TikHub V5.2.0 Changelog
- This time, the TikTok Web interface has been updated, and two new interfaces have been added to support the detection of the broadcast status of a single live broadcast room, obtaining live broadcast room information through the live broadcast link (offline live broadcast rooms can also be obtained), and the homepage video interface of Douyin APP V1 V2 V3 has been optimized to increase stability.
Reminder
Don't forget to update the Scopes value of your API Token in our user backend before calling the API. Otherwise, your token will be rejected due to insufficient permissions.
Add URIs
- URI:
/api/v1/tiktok/web/fetch_check_live_alive
- Cost: $0.001
- URI:
/api/v1/tiktok/web/fetch_tiktok_live_data
- Cost: $0.001
Link
https://api.tikhub.io/#/TikTok-Web-API
Detail
https://discord.com/channels/1070512513889878067/1088994529362841610/1269177672622411928
Install
pip install tikhub==1.12.5
V1.12.4
SDK V1.12.4 Release Notes:
[中文]
支持异步上下文自动管理:
这些代码用于实现异步上下文管理器,使得类的实例可以与 async with 语句一起使用,从而在进入和退出时自动处理资源的初始化和清理。
例如:
async with Client(api_key=api_key) as client:
pass
这样在退出时会自动调用 aexit 方法,关闭 client。
[English]
Support for automatic asynchronous context management:
These codes are used to implement an asynchronous context manager so that instances of the class can be used with async with statements to automatically handle resource initialization and cleanup on entry and exit.
For example:
async with Client(api_key=api_key) as client:
pass
This will automatically call the aexit method to close the client when exiting.
Link:
https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.12.2
- Upgraded SDK to support Upstream API V5.2.0
TikHub V5.2.0 Changelog
- This time, the TikTok Web interface has been updated, and two new interfaces have been added to support the detection of the broadcast status of a single live broadcast room, obtaining live broadcast room information through the live broadcast link (offline live broadcast rooms can also be obtained), and the homepage video interface of Douyin APP V1 V2 V3 has been optimized to increase stability.
Reminder
Don't forget to update the Scopes value of your API Token in our user backend before calling the API. Otherwise, your token will be rejected due to insufficient permissions.
Add URIs
- URI:
/api/v1/tiktok/web/fetch_check_live_alive
- Cost: $0.001
- URI:
/api/v1/tiktok/web/fetch_tiktok_live_data
- Cost: $0.001
Link
https://api.tikhub.io/#/TikTok-Web-API
Detail
https://discord.com/channels/1070512513889878067/1088994529362841610/1269177672622411928
Install
pip install tikhub==1.12.4
V1.12.1
SDK V1.12.1 Release Notes:
Link:
https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.12.1
- Upgraded SDK to support Upstream API V5.2.0
TikHub V5.2.0 Changelog
- This time, the TikTok Web interface has been updated, and two new interfaces have been added to support the detection of the broadcast status of a single live broadcast room, obtaining live broadcast room information through the live broadcast link (offline live broadcast rooms can also be obtained), and the homepage video interface of Douyin APP V1 V2 V3 has been optimized to increase stability.
Reminder
Don't forget to update the Scopes value of your API Token in our user backend before calling the API. Otherwise, your token will be rejected due to insufficient permissions.
Add URIs
- URI:
/api/v1/tiktok/web/fetch_check_live_alive
- Cost: $0.001
- URI:
/api/v1/tiktok/web/fetch_tiktok_live_data
- Cost: $0.001
Link
https://api.tikhub.io/#/TikTok-Web-API
Detail
https://discord.com/channels/1070512513889878067/1088994529362841610/1269177672622411928
Install
pip install tikhub==1.12.1
V1.12.0
SDK V1.12.0 Release Notes:
Link:
https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.12.0
- Upgraded SDK to support Upstream API V5.1.9
TikHub V5.1.9 Changelog
- This update includes several new interfaces for Douyin, TikTok, and Xiaohongshu.
- Xiaohongshu now supports fetching comments, replying to comments, and searching users.
- Douyin and TikTok now support fetching user fan lists, retrieving user following lists, fetching home feed content, getting live room information, and retrieving live room IDs.
Special Interfaces (Websocket)
- This update includes two new Websocket interfaces:
/api/v1/douyin/web/douyin_live_room_ws
and/api/v1/tiktok/web/tiktok_live_room_ws
. These interfaces require connection via ws or wss protocols. Before connecting, you can use HTTP protocol interfaces to assemble parameters, specifically/api/v1/douyin/web/douyin_live_room
and/api/v1/tiktok/web/tiktok_live_room
. These HTTP protocol interfaces will be available in Swagger UI and API Docs. Please read their parameters and authentication methods carefully. Requests to these HTTP protocol endpoints are free. You can obtain a pre-assembled Websocket URL from the response for subsequent connections. When connecting to Websocket interfaces with code, use URL-encoded links before establishing the connection.
Special Interface Pricing (Websocket Price)
- When you establish a Websocket connection with the server backend, you will be charged $0.001. Subsequently, for every 10 data interactions, there will be an additional charge.
Reminder
Don't forget to update the Scopes value of your API Token in our user backend before calling the API. Otherwise, your token will be rejected due to insufficient permissions.
Add URIs
- URI:/api/v1/xiaohongshu/web/get_note_comments
- Cost: $0.001
- URI:/api/v1/xiaohongshu/web/get_note_comment_replies
- Cost: $0.001
- URI:/api/v1/xiaohongshu/web/search_users
- Cost: $0.001
- URI:/api/v1/douyin/web/fetch_home_feed
- Cost: $0.001
- URI:/api/v1/douyin/web/douyin_live_room
- Cost: $0.000
- URI:/api/v1/douyin/web/douyin_live_room_ws
- Cost: $0.001
- URI:/api/v1/douyin/web/fetch_user_fans_list
- Cost: $0.001
- URI:/api/v1/douyin/web/fetch_user_following_list
- Cost: $0.001
- URI:/api/v1/douyin/app/v3/fetch_user_fans_list
- Cost: $0.001
- URI:/api/v1/douyin/app/v3/fetch_user_following_list
- Cost: $0.001
- URI:/api/v1/tiktok/web/tiktok_live_room
- Cost: $0.000
- URI:/api/v1/tiktok/web/tiktok_live_room_ws
- Cost: $0.001
- URI:/api/v1/tiktok/web/get_live_room_id
- Cost: $0.001
Link
https://api.tikhub.io/#/Xiaohongshu-Web-API
https://api.tikhub.io/#/Douyin-Web-API
https://api.tikhub.io/#/Douyin-App-V3-API
https://api.tikhub.io/#/TikTok-Web-API
Detail
https://discord.com/channels/1070512513889878067/1088994529362841610/1266571158187147346
Install
pip install tikhub==1.12.0
V1.11.9
SDK V1.11.9 Release Notes:
Link:
https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.11.9
- Upgraded SDK to support Upstream API V5.1.8
- This update includes new interfaces for the Twitter web version, adding three endpoints to support fetching single tweet data, user profiles, and user posts. More interfaces will be added as needed in the future.
Detail
https://discord.com/channels/1070512513889878067/1088994529362841610/1258915966570729542
Install
pip install tikhub==1.11.9
V1.11.8
SDK V1.11.8 Release Notes:
Link:
https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.11.8
- Upgraded SDK to support Upstream API V5.1.7
- This update includes several new interfaces for the Instagram web version, including fetching post comments, comment replies, and like data. Additionally, new interfaces for hybrid parsing of Douyin and TikTok, online fetching/updating of shortcuts without authentication, and batch fetching of Douyin and TikTok videos are included. More interfaces will be added based on user demand in the future.
Detail
https://discord.com/channels/1070512513889878067/1088994529362841610/1258033816275259425
Install
pip install tikhub==1.11.8
V1.11.6
SDK V1.11.6 Release Notes:
Link:
https://github.com/TikHubIO/TikHub-API-Python-SDK/releases/tag/V1.11.6
- Upgraded SDK to support Upstream API V5.1.6
- Add NetEase Cloud Music App API Support.
- Add some Instagram API.
Detail
https://discord.com/channels/1070512513889878067/1088994529362841610/1257214764631855287
https://discord.com/channels/1070512513889878067/1088994529362841610/1257291698363695125
Install
pip install tikhub==1.11.6