UserLocation - TypeScript SDK

UserLocation type definition

The TypeScript 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).

Example Usage

1import { UserLocation } from "@openrouter/sdk/models";
2
3let value: UserLocation = {
4 type: "approximate",
5};

Fields

FieldTypeRequiredDescription
citystringN/A
countrystringN/A
regionstringN/A
timezonestringN/A
typemodels.WebSearchPluginType✔️N/A