Insights/keyword/search question


#1

Hi All,

I have a couple of questions about the endpoint GET insights/keyword/search.

First one when we send multiple keywords example nike,adidas we get sum of tweets that used one or more of this keywords and not data per keyword so we need to make separate calls for all keywords is this expected behavior. Second when we use country code for many countries in Europe we get 0 for this keywords. And when we use them on the Twitter UI with the same country we get data. For example for Germany we get 0 on API and on Twitter UI we see that that keyword is in 10K–100K reach


#2

The functionality is meant so that you can include stemming and variation of entities/phrases to get the complete reach (or in a different scenario, they might be keywords that you intend to target with the same line item/campaign). If we were to support calling for multiple keywords it would more likely be done with a batch JSON interface similar to what we have on the campaign management side.

Could you please share an example of country filtered search getting 0?

The Twitter UI search is not a similar search result as searching from API would be (because the UI is doing no country filtering at all).

Thanks,

John


#3

Hi John

So for nike we have this if we use country code for the USA

?granularity=DAY&start_time=2016-05-27&end_time=2016-06-02&keywords=nike&location=96683cc9126741d1’

we get this

{"request":{"params":{"start_time":"2016-05-27T00:00:00Z","location":"96683cc9126741d1","end_time":"2016-06-02T00:00:00Z","granularity":"DAY","keywords":["nike"]}},"data_type":"keyword_insights","data":{"tweet_volume":[57010,61385,46799,54871,62076,72134]},"x-rate-limit-remaining":"498","HTTP_CODE":"HTTP\/1.1 200 OK"}

if we use country code for Germany

‘?granularity=DAY&start_time=2016-05-27&end_time=2016-06-02&keywords=nike&location=fdcd221ac44fa326’

we get this

{"request":{"params":{"start_time":"2016-05-27T00:00:00Z","location":"fdcd221ac44fa326","end_time":"2016-06-02T00:00:00Z","granularity":"DAY","keywords":["nike"]}},"data_type":"keyword_insights","data":{"tweet_volume":[0,0,0,0,0,0]},"x-rate-limit-remaining":"497","HTTP_CODE":"HTTP\/1.1 200 OK"}

It is strange that we do not see any tweet with nike in it for Germany