Learn R Programming

traktok (version 0.1.1)

tt_user_info_api: Lookup TikTok information about a user using the research API

Description

[Works on: Research API]

Usage

tt_user_info_api(
  username,
  fields = "all",
  verbose = interactive(),
  token = NULL
)

tt_user_info(username, fields = "all", verbose = interactive(), token = NULL)

Value

A data.frame of parsed TikTok videos the user has posted.

Arguments

username

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

fields

The fields to be returned (defaults to all)

verbose

should the function print status updates to the screen?

token

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

Examples

Run this code
if (FALSE) {
tt_user_info_api("jbgruber")
# OR
tt_user_info_api("https://www.tiktok.com/@tiktok")
# OR
tt_user_info("https://www.tiktok.com/@tiktok")
}

Run the code above in your browser using DataLab