A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hello Lou,
Thanks for reaching out and I’m really glad you asked before spending more time trying to fix something that isn’t actually caused by your proxy or your setup. I understand you’re seeing tunnel errors and 400 Bad Request messages every time Python tries to connect to an API in Excel whether you’re on Windows or using Excel in the browser. That can absolutely be discouraging especially after subscribing specifically to use Python for API work and finding that nothing online will connect the way you expected.
Python in Excel runs entirely inside a secure cloud container and that environment is intentionally blocked from making outbound internet calls. Because of this design any attempt to reach an external API will fail and often shows up as ProxyError or 400‑type failures even when your own network and proxy settings are fine. This is part of how Microsoft protects users from data exfiltration and is the reason direct requests from Python code using the =PY function don’t go through.
The best workaround is to bring the data into Excel first using connected tools such as Power Query or other approved connectors and then use Python in Excel to analyze it once the data is already in the sheet. If you’re concerned that your license may not have updated yet you can refresh it through File then Account then Update License as Python in Excel relies on cloud compute and may take some time to synchronize.
What API or data source are you planning to use and would bringing that data into Excel through Power Query or another connector fit into what you’re trying to build?
I hope this answer is helpful if you have further questions feel free to reply back
Regards,
Marcelo