All Apps and Add-ons

Is it possible to monitor all tweets and retweets from a single account on twitter?

syx093
Communicator

I am trying to monitor all tweets and retweets made my a single user on twitter. I am trying to accomplish this using the Rest API app on splunk. I have been using GET statueses/user_timeline from the twitter documentation in order to accomplish this however, I am getting nothing from twitter and I do not have any idea why. I can stream the most recent most recent tweet made by a user using POST statuses/filterhowever, it only takes the tweets and turns it to a event if a user tweets @<account name> followed by there messages. Is there any possible way to get both tweets and retweets from twitter. Or do I have to resort to coding something that can accomplish this.

0 Karma

twh1
Communicator

Hi,
In URL argument you pass the twitterId of the user as below. You can get twitterId from http://gettwitterid.com/ by passing Twitter user name. This way it worked for me.

follow=359714389^stall_warnings=true

0 Karma

Damien_Dallimor
Ultra Champion

I'm pretty sure you can use the search/tweets endpoint

And then pass in a query string to narrow to 1 user and use the since_id parameter to get historic tweets (note , twitter will rate limit how many tweets you can pull back, read their docs.)

alt text

Fields from above :

Endpoint URL : https://api.twitter.com/1.1/search/tweets.json

URL arguments : q=from:someuserhandle,since_id=24012619984051000,result_type=mixed

0 Karma

syx093
Communicator

It is not working on my end. Even when I switch to Authentication Type to oauth1 and enter in my keys and secret. Thanks but I think I will stick with Get User. The only thing I think I may have messed up is the url argument.

0 Karma

syx093
Communicator

I recently got this working with GET user however, it only streams the most recent tweets and retweets.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...