PLhery / node-twitter-api-v2

Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.
https://www.npmjs.com/package/twitter-api-v2
Apache License 2.0
1.29k stars 176 forks source link

[bug] Option "tweet.fields":" public_metrics" only returns retweet_count, the rest are always 0 #390

Closed alejandromc23 closed 1 year ago

alejandromc23 commented 1 year ago

Describe the bug Option "tweet.fields":" public_metrics" only returns retweet_count, others values like like_count are always 0

To Reproduce Endpoint tweets/search/recent combined with options argument: options: { 'tweet.fields': ['public_metrics']}

Expected behavior Return real public_metrics

alkihis commented 1 year ago

How is this the fault of the library?! 😭

alejandromc23 commented 1 year ago

ohh my bad! trying another endpoint and it worked, sorry! :pray:

alejandromc23 commented 1 year ago

tryed with this and it worked: https://api.twitter.com/2/tweets/search/recent?query=from:amascort17&tweet.fields=public_metrics And trying with lib it did not, so I supposed it was libs logic... :face_exhaling: