TikTok API interface, keyword comprehensive search

All content in this article is for learning and communication only, and cannot be used for any commercial or illegal purposes, otherwise you will be responsible for the consequences. If there is any infringement, please contact the author to delete it immediately!

Keyword comprehensive search

 roll up brothers

All the hard work is done

import requests
from loguru import logger
url = 'http://服务器地址/tt/earch_data_videos'
data = {
    "token": "h",
    "keyword": "Pet Cat",
    "cursor":0,
    "count":20,
    "region": "US",
    "language":"en",
}
r = requests.get(url, params=data).json()

Parameter analysis:

parameter name required type illustrate
token Y String Interface Authorization Code
keyword Y String

search keyword

cursor Y int Page turning cursor, according to the result returned cursor is passed in as a page turning parameter, the default is 0
count       Y int

Return the total number, the default is 20

region Y String Default US->US
language Y String Default English->en

Request it out, it's awesome, it's me

 

Share here first, thank you for watching

Guess you like

Origin blog.csdn.net/weixin_46874932/article/details/131687224