Skip to content

V1.12.5

Compare
Choose a tag to compare
@Evil0ctal Evil0ctal released this 16 Aug 06:13
· 12 commits to main since this release

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