URL

The google_shopping source is designed to retrieve content from various Google Shopping URLs. This means that instead of sending multiple parameters, you can provide us with a direct URL to the required Google Shopping page. We do not strip any parameters or alter your URLs in any other way.

Request samples

In this example, we send a request with the specified URL to retrieve search results from Google Shopping for the keyword adidas. The search results are retrieved as if the search was conducted in New York, USA, as indicated by the geo_location parameter.

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "google_shopping", 
        "url": "https://www.google.com/search?tbm=shop&q=adidas&hl=en", 
        "geo_location": "New York,New York,United States"
    }'
Output example
{
    "results": [
        {
            "content": "<!doctype html>
            CONTENT
            </html>",
            "created_at": "2024-07-01 10:57:20",
            "updated_at": "2024-07-01 10:57:26",
            "page": 1,
            "url": "https://www.google.com/search?tbm=shop&q=adidas&hl=en",
            "job_id": "7213495890735035393",
            "status_code": 200
        }
    ]
}

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.

Request parameter values

Generic

Basic setup and customization for scraping Google Shopping pages with offers for a chosen product ID.

Parameter
Description
Default Value

source

Sets the scraper.

google_shopping

url

Direct URL (link) to Google page.

-

render

Enables JavaScript rendering when set to html. More info.

-

parse

Returns parsed data when set to true. Limited to URLs of specific Google page types.

false

callback_url

URL to your callback endpoint. More info.

-

user_agent_type

Device type and browser. The full list can be found here.

desktop

geo_location

The geographical location that the result should be adapted for. Using this parameter correctly is extremely important to get the right data. For more information, read about our suggested geo_location parameter structures here.

-

- mandatory parameter

Last updated