Proxy Location
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.
Last updated
Was this helpful?

