perform_request function

Internal function to perform API requests to the World Bank API