UserLocation - Python SDK

UserLocation method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic).

Fields

FieldTypeRequiredDescription
cityOptionalNullable[str]N/A
countryOptionalNullable[str]N/A
regionOptionalNullable[str]N/A
timezoneOptionalNullable[str]N/A
typecomponents.WebSearchPluginType✔️N/A