version of api_ranks that works for 91