Twitter Streaming API not filtering all the keywords in "track"


#1

Hi Guys,

I am doing some research with twitter’s streaming API.
What I am doing is using public streams with “track” API parameter.
The resource URL being : https://stream.twitter.com/1.1/statuses/filter.json

I am using tmhOAuth.php library to make the request.

Here is my code , param being the keywords I am willing to track.

$params = array("track"=>'BAND','BET','DEAF','FLOAT');
$twitter->streaming_request($method,$url,$params,'streamRequestCallBack');

However I am getting tweets only with “BAND” as keywords and no other, Can someone help me with this as to why I am not getting other keywords.

Best ,
Ishan


#2

Hello Ishan

Have you tried using the OAuth Tool to test as well? I created a similar cURL command with the same keywords as yours, i.e. “BAND”, “BET”, “DEAF”, “FLOAT”. I was able to find “BAND”, “DEAF”, “FLOAT” in the data. Below is the curl command I used.

curl --get ‘https://stream.twitter.com/1.1/statuses/filter.json’ --data ‘track=BAND+%2CBET+%2C+DEAF+%2C+FLOAT’ --header ‘Authorization: OAuth oauth_consumer_key=“xxxxxxx”, oauth_nonce=“xxxxxx”, oauth_signature=“xxxxx”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1412538590”, oauth_token=“xxxxx-xxxxx”, oauth_version=“1.0”’ --verbose