Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi friends,
I am trying to import from World Bank resource (http://www.worldbank.org/) through API.
When I type in the following call in the browser - it works fine:
http://api.worldbank.org/V2/incomeLevel/LIC/country
But when I create a new Web Query in Power BI Desktop - it gives me an error:
"Unable to connect:
We encountered an error while trying to connect.
Details: "Access to the resource is forbidden."
I have cleaned the Global Data Source permissions, tried again, chose "Anonymous" authentication...
Still - the same error.
I am able to connect to the same url in the Dataflows - so the url and Anonymous authentication are working.
Something in my Desktop?
Please suggest
Thanks!
Solved! Go to Solution.
Ok.
I think my IT Department is blocking API calls from inside applications (but not from browser)
That's why it is not working.
Ok.
I think my IT Department is blocking API calls from inside applications (but not from browser)
That's why it is not working.
Hi @Anonymous ,
Have you solved your problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please feel free to ask.
Best Regards,
Cherry
Hi @Anonymous ,
But when I create a new Web Query in Power BI Desktop - it gives me an error:
"Unable to connect:
We encountered an error while trying to connect.
Details: "Access to the resource is forbidden."
Do you mean that you create a Web query in Advanced Editor?
Please have a reference of the query below.
let Source = Xml.Tables(Web.Contents("http://api.worldbank.org/V2/incomeLevel/LIC/country")) in Source
More information here: https://msdn.microsoft.com/en-us/library/mt260892.aspx
and here: https://blog.crossjoin.co.uk/2014/03/26/working-with-web-services-in-power-query/
Best Regards,
Cherry
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
77 | |
74 | |
57 | |
40 | |
33 |
User | Count |
---|---|
70 | |
63 | |
57 | |
49 | |
46 |