tt_user_follower_api: Get followers and following of users from the research API

View source: R/api_research.r

tt_user_follower_apiR Documentation

Get followers and following of users from the research API

Description

[Works on:   Research API]

Usage

tt_user_follower_api(
  username,
  max_pages = 1,
  cache = TRUE,
  verbose = interactive(),
  token = NULL
)

tt_user_following_api(
  username,
  max_pages = 1,
  cache = TRUE,
  verbose = interactive(),
  token = NULL
)

Arguments

username

name(s) of the user(s) to be queried

max_pages

results are returned in batches/pages with 100 videos. How many should be requested before the function stops?

cache

should progress be saved in the current session? It can then be retrieved with last_query() if an error occurs. But the function will use extra memory.

verbose

should the function print status updates to the screen?

token

The authentication token (usually supplied automatically after running auth_research once).

Value

A data.frame containing follower of following account information.

Examples

## Not run: 
tt_user_follower_api("jbgruber")
# OR
tt_user_following_api("https://www.tiktok.com/@tiktok")
# OR
tt_get_follower("https://www.tiktok.com/@tiktok")

## End(Not run)

traktok documentation built on Dec. 7, 2025, 1:06 a.m.