DocsDemographics & Contextbrowser_get_location

browser_get_location

Browser Get Location

Get user's current geographic location based on IP address. Returns city, country, coordinates (lat/lon), and timezone. Uses GeoIP database for lookup.

Usage Example

1234567891011
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.get_location(
)

Response

Returns a JSON object with the operation result.

{
  "success": true,
  "result": <value>
}