This function accepts a Instagram username and returns their user_id, which is needed for other functions

ig_get_user_id(username, verbose = FALSE)

Arguments

username

character; the username of the Instagram user. Omit the "@" symbol that is typically used when referencing another user

verbose

logical; do you want informative messages?

Examples

ig_get_user_id("justinbieber")
#> Error: Status: fail #> Message: login_required