import requests
from pprint import pprint
author_username: str = 'superstar' # your post author's username
post_id: int = 12345 # your post ID
access_token: str = 'ACCESS_TOKEN' # your API access token
response = requests.get(
url=f"https://api.data365.co/v1.1/tiktok/profile/
{author_username}/feed/posts/{post_id}",
params={
'access_token': access_token,
},
)
response_data = response.json()
pprint(response_data)