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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...