Scrape with Geolocation Proxies

Route browser automation traffic through specific geolocations to access region-specific content

Scrape with Geolocation Proxies demo
TypeScript
Source code
npx create-browser-app --template proxies-weather
uvx create-browser-app --template proxies-weather

Access region-specific content with geolocation proxies

Route your browser automation traffic through specific cities to access location-dependent content. This template shows how to configure geolocation proxies (New York, London, Tokyo, São Paulo) and extract region-specific data from websites. Perfect for price comparison across regions, localized content testing, and geo-restricted site access. Uses Browserbase Proxies with structured data extraction.

Steps

  1. Configure a Browserbase session with a geolocation proxy (city/country/state)
  2. Navigate to a weather site through that proxy
  3. Extract the current temperature and unit with Stagehand + Zod schema validation
  4. Repeat for multiple locations to compare results across geographies
  5. Print a formatted summary of weather results for all locations