Skip to contents

[Works on: Research API]

Usage

tt_user_reposted_api(
  username,
  fields = "all",
  max_pages = 1,
  cache = TRUE,
  verbose = TRUE,
  token = NULL
)

tt_get_reposted(
  username,
  fields = "all",
  max_pages = 1,
  cache = TRUE,
  verbose = TRUE,
  token = NULL
)

Arguments

username

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

fields

The fields to be returned (defaults to all)

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 of parsed TikTok videos the user has posted

Examples

if (FALSE) { # \dontrun{
tt_get_reposted("jbgruber")
# OR
tt_user_reposted_api("https://www.tiktok.com/@tiktok")
# OR
tt_user_reposted_api("https://www.tiktok.com/@tiktok")

# note: none of these work because nobody has this enabled!
} # }