rewrite bb api call with requests