package/utils: rename api_info function to get_url_body
This naming is more explicit about what this function is doing.