fully implemented recent history grab for the API