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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...