Streaming API: matching keywords criteria

streaming
api

#1

Hi there! I wanted to capture tweets matching with some keywords but when I saw the results I found a number of tweets without any of these keywords, but maybe the API is misunderstanding my request (or I am misunderstanding the API :blush: ).

For example:
RT @UN: #ParisAgreement is a health insurance policy for the planet - Ban Ki-moon explains here: https://t.co/AEX0qTkAU0 https://t.co/g8VHV…
These are the keywords that I used:
String keywords[] = {“climate”,“climate action”,“climate change”,“climate education”,“climateaction”,“climatechange”,“climateeducation”,“RoadtoParis”,“GlobalWarning”};

Thank you very much for your help


#2

Can you provide the Tweet ID for the Tweet that you’ve posted the text of? it may be that another element of the Tweet is being matched.


#3

I don’t have the Tweet ID, I will try to find it… I only have the date and user that posted it :confused:


#4

I don’t know how can I find the Tweet ID. Do you know if there is a way to do this?


#5

I guess if you search for that exact text and the user who posted it then you may find the original Tweet on the website. The Tweet ID is part of the Tweet’s URL.


#6

Yes, you are right! This is the Tweet ID: 676493121438412800
I forgot to add the last word in the keywords array that I copied before: String keywords[] = {“climate”,“climate action”,“climate
change”,“climate
education”,“climateaction”,“climatechange”,“climateeducation”,“RoadtoParis”,“GlobalWarning”, “COP21”};
And now I am wondering if this tweet is taken into account because it’s a quote tweet and it has the word COP21 in its quoted tweet. I mean, you can see this situation here: https://twitter.com/UN/status/676493121438412800 Maybe, matching criteria works in this way, isn’t?


#7

That would be why it matched, yes.


#8

Thank you!!


#9