Hi,
How to add the tweet.fields to the streaming rule below
{“value”: “covid -is:retweet -is:reply lang:en”, “tag”: “covid”}
I did the following and it is not working
{“value”: “covid -is:retweet -is:reply lang:en tweet.fields=public_metrics”, “tag”: “covid”}
1 Like
tweet.fields and expansions go into the request as URL parameters when connecting, not as rules, like
https://api.twitter.com/2/tweets/search/stream?expansions=referenced_tweets.id&tweet.fields=public_metrics
3 Likes
Thanks a lot I appreciate it.
2 Likes