NodeJS Twitter API get liked tweets count

466 Views Asked by At

I'm trying to get the number of tweets a user has ever liked in NodeJs using twitter-api-v2, but I can't seem to find the solution. I tried to use the "public_metrics" property but it looks like it only contains the following properties:

  • followers count
  • following count
  • tweet count
  • listed count

I also tried to use the client.v2.userLikedTweets() method but it can only go up to 100 likes, I know I could upgrade to a premium account but I don't want to

Is there a solution? Thanks.

1

There are 1 best solutions below

2
On BEST ANSWER

If you have an elevated access, you can use the favourites_count field in the User objects from the Twitter API V1. But there is unfortunately no way to do so with the Twitter API V2.