REST API, not getting any results at first


#1

I’m using Golang to connect to REST API and getting results which contains some keywords (I send multiple query’s in one launch). But first 2 or 3 times i get no data. And only with next times json data start coming in on some query’s. What could be the reason? And how old data do the REST API give back?


#2

It sounds like you are using the REST API's /stream endpoint. If so, this is expected behaviour. The first call will let the API know you want to begin streaming, then all subsequent calls will return data if any has matched your filter. Please note, the /stream endpoint will be deprecated in future versions of the API - we recommend moving to using Push Delivery. The 'pull' Push endpoint will behave in a similar fashion ot the /stream endpoint.

 


#3

Will try out. Thanks. :slight_smile: