Weather Proxy Demo
Demonstrate geolocation proxies by extracting weather data for multiple cities

TypeScript
Source codenpx create-browser-app --template proxies-weather
Python
Source codeuvx create-browser-app --template proxies-weather
Get started with geolocation proxies
This template demonstrates Browserbase geolocation proxies by routing traffic through specific cities (New York, London, Tokyo, São Paulo) and extracting location-specific weather data from the same website. It configures a Browserbase-managed proxy per run, navigates to a weather service, and uses Stagehand + Zod to extract structured temperature data. Running locations sequentially makes it easy to see how proxy location impacts content.
Steps
- Configure a Browserbase session with a geolocation proxy (city/country/state)
- Navigate to a weather site through that proxy
- Extract the current temperature and unit with Stagehand + Zod schema validation
- Repeat for multiple locations to compare results across geographies
- Print a formatted summary of weather results for all locations