Restricting Responses API Web Search to Specific Domains

The new responses API has web search capability; however, when used, it currently searches broadly and returns results from any domain. Is there a way to restrict the search or limit responses to specific domains?

For instance, if a user asks, “I am looking to buy laptop bags,” can the search results be limited exclusively to suggestions from myecommerce.com and mybags.com? Is this functionality possible?

4 Likes

I just tried this as a “hack,” and it seems to work?

search site:litrpgreads.com

1 Like

works but doesn’t return the exact source url from which it got the answer