/google-search-shopping

Returns products search results from Google based on a given search query (or many queries).

↗ Open in API Explorer
GET

Google Search Shopping

Returns products search results from Google based on a given search query (or many queries).

Request

Endpoint: GET https://api.outscraper.cloud/google-search-shopping

Parameters

NameInTypeRequiredDescriptionExampleConstraints
query query array<string> Yes Queries to search on Google (e.g., bitcoin, 37th president of usa). It supports batching by sending arrays with up to 1000 queries (e.g., query=text1&query=text2&query=text3). It allows multiple queries to be sent in one request and to save on network latency time. - -
perQuery query integer No The parameter specifies the limit of items to return from one query. - default 100
uule query string No Google UULE parameter is used to encode a place or an exact location (with latitude and longitude) into a code. By using it you can see a Google result page like someone located at the specified location. - -
language query string enum No The parameter specifies the language to use for website. - default en, allowed en, de, es, es-419, fr, hr, it, nl, …
region query string enum No The parameter specifies the country to use for website. It's recommended to use it for a better search experience. - allowed AF, AL, DZ, AS, AD, AO, AI, AG, …
fields query string No The parameter defines which fields you want to include with each item returned in the response. By default, it returns all fields. Use &fields=query,name to return only the specific ones. - -
async query boolean Yes The parameter defines the way you want to submit your task to Outscraper. It can be set to false to open an HTTP connection and keep it open until you got your results, or true (default) to just submit your requests to Outscraper and retrieve them later (usually within 1-3 minutes) with the Request Results endpoint. Each response is available for 4 hours after a request has been completed. A good practice is to send async requests and start checking the results after the estimated execution time. Check out this Python implementation as an example. As most of the requests take some time to be executed the async=true option is preferred to avoid HTTP requests timeouts. - default true
ui query boolean No The parameter defines whether a task will be executed as a UI task. This is commonly used when you want to create a regular platform task with API. Using this parameter overwrites the async parameter to true. - default false
format query array<string enum> No The parameter defines the format of the output data. Using this parameter overwrites the ui parameter to true. - -
webhook query string No The parameter defines the URL address (callback) to which Outscraper will create a POST request with a JSON body once a task/request is finished. Using this parameter overwrites the webhook from integrations. - -

Responses

200

application/json

The response contains the status of the request and data. Data is an array where each element represents a response for a single query from the request.

{
  "id": "your-request-id",
  "status": "Success",
  "data": [
    [
      {
        "query": "iphone",
        "position": 1,
        "link": "https://www.google.com/shopping/product/437651240330897754?q=iphone&hl=en&gl=US&uule=w+CAIQICINdW5pdGVkIHN0YXRlcw&gs_lcp=UvHSLA7Uz640JlchZYoULTOTy09hxrjXrbg1BddDeXJ1L8hKvAxhTGpJh681VIB&prds=eto:10095595960159233791_0,pid:16627194887412580682,rsk:PC_8217023720749633348&sa=X&ved=0ahUKEwjeu_vYub74AhWjj2oFHeQACRYQ8gII4BAoAA",
        "image": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcT3nKfqR3-wmqMxiSP-9MWZoHC87ST6G_T7ehZ8SNPjNTx62Mt8eAc-tJgSsSn_0PvARuFrq_UY53JOLehu7DMvkwqITL3Lgb2Z3JIZ3usVp-apzrcV-SScsw&usqp=CAE",
        "title": "Apple iPhone 13 Pro Max - 128 GB - Alpine Green",
        "options": "4.69,848",
        "id": "16627194887412580682",
        "source": "Apple",
        "source_link": "https://www.google.com/url?url=https://www.apple.com/us/shop/go/product/MNCP3%3Fcppart%3DUNLOCKED%26cid%3Daos-us-seo-pla&rct=j&q=&esrc=s&sa=U&ved=0ahUKEwjeu_vYub74AhWjj2oFHeQACRYQguUECOkQ&usg=AOvVaw00X6LdGKmQSLn67LlB6LPP",
        "delivery": "Free delivery & Free 14-day returns",
        "price": "$1,099.00",
        "parsed_price": 1099
      },
      {
        "query": "iphone",
        "position": 2,
        "link": "https://www.google.com/shopping/product/3628886803268507508?q=iphone&hl=en&gl=US&uule=w+CAIQICINdW5pdGVkIHN0YXRlcw&gs_lcp=UvHSLA7Uz640JlchZYoULTOTy09hxrjXrbg1BddDeXJ1L8hKvAxhTGpJh681VIB&prds=eto:15912357296963554972_0,pid:11865528305208463674,rsk:PC_8971650804785857268&sa=X&ved=0ahUKEwjeu_vYub74AhWjj2oFHeQACRYQ8gII9BAoAA",
        "image": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcRWxIGEb1fJRjba94du551MI4bqKa7IVDrLx_2SUc-skisFAnpU2Zk3BdyhBxZtdvf2oOnAhdfuaV7JAgVTZhxQYHqFCxaNqgq3udmR9mnZM0H1cwdTMyhd&usqp=CAE",
        "title": "Apple iPhone 13 - 128 GB - Green",
        "options": "4.67,547",
        "id": "11865528305208463674",
        "source": "Best Buy",
        "source_link": "https://www.google.com/url?url=https://www.bestbuy.com/site/apple-iphone-13-5g-128gb-green-verizon/6487362.p%3FskuId%3D6487362%26ref%3DNS%26loc%3D101&rct=j&q=&esrc=s&sa=U&ved=0ahUKEwjeu_vYub74AhWjj2oFHeQACRYQguUECP0Q&usg=AOvVaw3alRPH-ZQWxgpeQHBqycSg",
        "delivery": "Free delivery by Jun 27 & Free 30-day returns",
        "price": "4.6/5",
        "parsed_price": 4.6
      },
      {
        "query": "iphone",
        "position": 3,
        "link": "https://www.google.com/shopping/product/10710100573010676174?q=iphone&hl=en&gl=US&uule=w+CAIQICINdW5pdGVkIHN0YXRlcw&gs_lcp=UvHSLA7Uz640JlchZYoULTOTy09hxrjXrbg1BddDeXJ1L8hKvAxhTGpJh681VIB&prds=eto:1516518942022937630_0,pid:13982584929019165962,rsk:PC_12721096405768421674&sa=X&ved=0ahUKEwjeu_vYub74AhWjj2oFHeQACRYQ8gIIiREoAA",
        "image": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcQ3s_S0UyOCmOtBiIX9XGoN9YroGi0QCRbUJaQA3c2OkdtPHfZoCBIjQLj7nz4H8HKOD3ArTDggeDL_VFPVnW_Q6_x-O_iV86vwyhjq4iE&usqp=CAE",
        "title": "Apple iPhone 13 Pro - 128 GB - Alpine Green",
        "options": "4.67,001",
        "id": "13982584929019165962",
        "source": "T-Mobile",
        "source_link": "https://www.google.com/url?url=https://www.t-mobile.com/cell-phone/apple-iphone-13-pro%3Fsku%3D194253118831&rct=j&q=&esrc=s&sa=U&ved=0ahUKEwjeu_vYub74AhWjj2oFHeQACRYQguUECJER&usg=AOvVaw39zC2xSjmvfIGfvQmaQKid",
        "delivery": "Free delivery",
        "price": "4.3/5",
        "parsed_price": 4.3
      }
    ]
  ]
}

202

application/json

The response contains a request ID that can be used to fetch results by using Request Results endpoint. Each response is available for 4 hours after a request has been completed.

{
  "id": "your-request-id",
  "status": "Pending",
  "results_location": "https://api.outscraper.cloud/requests/your-request-id"
}

204

application/json

The request was finished with failure and has no results.

{
  "id": "your-request-id",
  "status": "Failure"
}

401

application/json

Wrong or missing API Key (token).

{
  "error": true,
  "errorMessage": "401 Unauthorized: The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required."
}

402

application/json

Past due invoices or a payment method not connected.

{
  "error": true,
  "errorMessage": "Please close past due invoices or verify your card information is correct."
}

422

application/json

Wrong query url parameters.

{
  "error": true,
  "errorMessage": "422 Unprocessable Entity: The request was well-formed but was unable to be followed due to semantic errors."
}

Code Samples

cURL

curl -X GET "https://api.outscraper.cloud/google-search-shopping?query=iphone&async=false" -H  "X-API-KEY: YOUR-API-KEY"

cURL (async)

curl -X GET "https://api.outscraper.cloud/google-search-shopping?query=iphone" -H  "X-API-KEY: YOUR-API-KEY"

Related Endpoints

Returns Google Maps photos from places when using search queries (e.g., restaurants, Manhattan, NY, USA) or from a single place when using IDs or names (e.g., NoMad Restaurant, NY…

Returns Google Maps reviews from places when using search queries (e.g., restaurants, Manhattan, NY, USA) or from a single place when using Google IDs or names (e.g., NoMad Restau…

Returns places from Google Maps based on a given search query (or many queries). The results from searches are the same as you would see by visiting a regular Google Maps site. Ho…