Skip to main content
Prices, availability, and content often vary by country. Use proxy_country_code to route the browser through a residential proxy in the target region — the site sees a local visitor.
from browser_use_sdk import AsyncBrowserUse
from pydantic import BaseModel

class Price(BaseModel):
    product: str
    price: str
    currency: str

client = AsyncBrowserUse()

# Create session with Japanese proxy
session = await client.sessions.create(proxy_country_code="jp")

result = await client.run(
    "Go to apple.com/jp and get the price of MacBook Air",
    session_id=session.id,
    output_schema=Price,
)
print(result.output)  # Price(product='MacBook Air', price='148,800', currency='JPY')

await client.sessions.stop(session.id)
Combine with structured output to extract prices as typed objects for easy comparison across regions.
See Proxies & Stealth for the full list of supported country codes.