user_location
parameter within web_search_options
allows you to refine search results based on the user’s approximate geographic location. This helps provide more contextually relevant information.city
and region
fields. For supported country codes, please refer to the list here.city
and region
fields significantly improve location accuracy. We strongly recommend including them alongside coordinates and country code for the best results.user_location
filter helps tailor search results by incorporating geographic context. This is particularly useful for queries where location significantly impacts relevance, such as:
user_location
object within the web_search_options
in your request payload. You can provide coordinates, country code, city, region, or combine them for maximum accuracy:
Using All Available Fields (Recommended for Best Accuracy):
city
and region
fields along with coordinates for Paris, France to achieve maximum location accuracy.
Request Example