built http request for getDates api call