threaded http get for the api call