towards an API, REST-style queries for get_last and search