Limiting Gemini 2.0 Pro grounding searches to a specific domain?

Hello all,
Does anyone have any tips on how to prompt the Gemini 2.0 Pro model to only return search results that are from a specific domain?

4 Likes

Looking for the same thing, haven’t found it yet, and it’s causing problems. Anyone else?

I also want it. Experimenting with prompting it to use “site:domain.com” in the web search query. Doesn’t seem to work.

Hey @Gintas @doss . Apologies for late response .
Please check this out and let me know if that’s what you were looking for. URL context  |  Gemini API  |  Google AI for Developers
Please keep in mind this URL context tool is still an experimental feature.
Thank you