Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Accessing Data through Premium API #415

Closed
nfhavey opened this issue Apr 28, 2020 · 2 comments
Closed

Accessing Data through Premium API #415

nfhavey opened this issue Apr 28, 2020 · 2 comments
Labels

Comments

@nfhavey
Copy link

nfhavey commented Apr 28, 2020

Problem

I am trying to access retweet_count, favorite_count, and reply_count for a variety of user timelines using get_timeline(user, n). I know that reply_count is paywalled to the Premium API, which I have. I also know that the standard rtweet get_timeline function only interacts with the Standard API.

Is there another function that interacts with the Premium API? Accessing just reply_counts via other means is a lot messier.

Expected behavior

When I use get_timelines(user, n), I expect the tweets to be pulled for that user corresponding with the n for 90 variables, some of which are paywalled and return NA values. This is true.

Reproduce the problem

library(tidyverse)
library(rtweet)

ap <- get_timelines("AP", 1000)
ap <- ap %>% select(user_id, screen_name, reply_count, retweet_count, favorite_count)

And then some additional code to calculate some info based on those metrics, repeat for other users. But reply_count is consistently NA.


### rtweet version

<!-- run the code below and copy/paste the output -->

``` r
## copy/paste output
packageVersion("rtweet")

Session info

## copy/paste output
sessionInfo()

Token

## copy/paste output
rtweet::get_token()
@llrs llrs mentioned this issue Feb 15, 2021
@llrs llrs added the premium label Feb 17, 2021
@hadley
Copy link
Collaborator

hadley commented Mar 4, 2021

I don't see any evidence that the premium API provides anything other than search: https://developer.twitter.com/en/docs/twitter-api/premium/search-api/overview. So I think that unless you can frame your question as a search, you're out of luck with the premium api.

@hadley hadley closed this as completed Mar 4, 2021
@nfhavey
Copy link
Author

nfhavey commented Mar 4, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants