Proxy Location
Find out how to use the geo_location parameter to access web data as if you’re browsing from a different country.
Use the geo_location parameter to select the proxy server's location. This lets you scrape data as if you’re browsing from a different country.
geo_location parameter functions differently for SERP and E-Commerce localization. Read more in the respective sections.
Request sample
This example retrieves a product page using a proxy in Germany.
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "universal",
"url": "https://sandbox.oxylabs.io/products/1",
"geo_location": "Germany"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'universal',
'url': 'https://sandbox.oxylabs.io/products/1',
'geo_location': 'Germany',
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload,
)
# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())We use synchronous Realtime integration method in our examples. If you would like to use Proxy Endpoint or asynchronous Push-Pull integration, refer to the integration methods section.
Sessions
You can force the same proxy IP address for multiple requests by including the session_id parameter. Set the session ID to any alphanumeric string (e.g., abc123), and all scraping jobs with that session ID will use the same IP. This is useful for session management when combined with custom cookies.
Here's an example:
Last updated
Was this helpful?

