Skip to main content
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

import { UserLocation } from "@openrouter/sdk/models";

let value: UserLocation = {
  type: "approximate",
};

Fields

FieldTypeRequiredDescription
citystring:heavy_minus_sign:N/A
countrystring:heavy_minus_sign:N/A
regionstring:heavy_minus_sign:N/A
timezonestring:heavy_minus_sign:N/A
typemodels.WebSearchPluginType:heavy_check_mark:N/A