UserLocation - TypeScript SDK
UserLocation type definition
Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
UserLocation type definition
import { UserLocation } from "@openrouter/sdk/models";
let value: UserLocation = {
type: "approximate",
};
| Field | Type | Required | Description |
|---|---|---|---|
city | string | :heavy_minus_sign: | N/A |
country | string | :heavy_minus_sign: | N/A |
region | string | :heavy_minus_sign: | N/A |
timezone | string | :heavy_minus_sign: | N/A |
type | models.WebSearchPluginType | :heavy_check_mark: | N/A |