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.

ParameterDescriptionDefault Value

source

Sets the scraper.

google_shopping

url

Direct URL (link) to Google page.

-

render

-

parse

false

callback_url

-

user_agent_type

desktop

geo_location

-

- mandatory parameter

Last updated