fix query and extract first item
sleep and re-request api when ErrorCode is RequestThrottled