Google Search result source URL not available in code output

In AI Studio, it’s easy to see the google search’s sources used for the output

If i’m using the same code in python, the output only shows the website that’s using, instead of the actual sources,

After i added please include source url in output in prompt, then it hallucinated some urls within the source, since those are generated instead of the actual ones used.


Note: last link from Nikkei Asia doesn’t exist on website

Is there a way to natively output the links from grounded search in the python output? This would greatly improved output’s trustworthiness