Google Shopping API

Find product listings, prices and sellers when provided.

What is this API?

Serqo’s Google Shopping API returns product listings shown in Google Shopping results as structured JSON. Use engine: "google" and type: "shopping"; displayed price, seller, rating and product links are included when available.

Common use cases

  • Compare displayed product offers across search markets.
  • Track which sellers and product listings appear for a query.
  • Collect dated result snapshots for product research.

Request example

POST https://api.serqo.io/v1/search
FieldValue
enginegoogle
typeshopping

Request headers

Create an API key and store it on your server. Send the API key in the x-api-key header.

HeaderValueDescription
Content-Typeapplication/jsonJSON request body.
x-api-keyYOUR_API_KEYAPI key used to authenticate the request.
bash
export SERP_API_KEY='YOUR_API_KEY'

curl https://api.serqo.io/v1/search \
  -H "x-api-key: $SERP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "q": "mechanical keyboard",
  "engine": "google",
  "type": "shopping",
  "gl": "us",
  "hl": "en"
}'

Code examples

Use the same API key with a standard HTTP client. These examples require Node.js 22 or later, or Python 3.

JavaScript
const response = await fetch('https://api.serqo.io/v1/search', {
  method: 'POST',
  headers: { 'x-api-key': process.env.SERP_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({"q": "mechanical keyboard","engine":"google","type":"shopping"}),
});
const result = await response.json();
if (!response.ok) throw new Error(`${response.status}: ${result.error?.message ?? 'Search failed'}`);
console.log(result.data);
Python
import json
import os
from urllib.request import Request, urlopen

payload = {"q": "mechanical keyboard","engine":"google","type":"shopping"}
request = Request(
    'https://api.serqo.io/v1/search',
    data=json.dumps(payload).encode(),
    headers={
        'x-api-key': os.environ['SERP_API_KEY'],
        'Content-Type': 'application/json',
    },
)
with urlopen(request) as response:
    result = json.load(response)
    print(result['data'])

Parameters

The number of results returned per request depends on the search engine and may vary.

FieldTypeRequiredDefaultDescription
qstringYes—Non-empty search query.
enginestringNogoogleUse google for this API.
typestringNowebUse shopping for this API.
glstringNo—Two-letter lowercase country code, for example us.
hlstringNo—Interface language code, for example en.
startintegerNo—Offset from 0 to 1000000. Use nextStart from the response.
safeoff | activeNo—Explicit-content filter: off disables it, active enables it.
tbsstringNo—Google time filter, such as qdr:d, qdr:w or qdr:m.

Only q is required by the API, but keep engine and type as shown for this search. A dash means the API does not assign a default. Unknown parameters return 422 INVALID_PARAM.

Response

HTTP 200. A real API response, trimmed to the first three results for readability. Field availability and result groups vary by the returned page; values can be null.

JSON
{
  "success": true,
  "requestId": "req_91c9fa28-b37e-4e7c-954f-1b7fb88caad6",
  "data": {
    "engine": "google",
    "type": "shopping",
    "query": {
      "q": "mechanical keyboard",
      "gl": "us",
      "hl": "en"
    },
    "searchInformation": {
      "totalResults": null,
      "timeTakenMs": null,
      "displayed": null
    },
    "results": [],
    "features": {
      "knowledgePanel": {
        "title": null,
        "subtitle": null,
        "description": null,
        "kgmid": null,
        "attributes": {
          "AutocompletePrediction": "Delete"
        },
        "sources": []
      },
      "shoppingResults": [
        {
          "position": 1,
          "title": "Keychron Q6 Ultra 8K Wireless Mechanical Keyboard",
          "price": "$239.99",
          "extractedPrice": 239.99,
          "oldPrice": null,
          "source": "Keychron.com",
          "link": null,
          "productId": "14891799261078180163",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_43",
          "rating": 4.4,
          "reviews": "33",
          "delivery": null,
          "badge": null,
          "group": "Best Overall Mechanical Keyboards"
        },
        {
          "position": 2,
          "title": "Keychron K1 Ultra 8K Wireless Custom Mechanical Keyboard Fully Assembled",
          "price": "$109.00",
          "extractedPrice": 109,
          "oldPrice": null,
          "source": "Mechanical Keyboards",
          "link": null,
          "productId": "7090299560878175055",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_71",
          "rating": 5,
          "reviews": "2",
          "delivery": "30-day returns",
          "badge": null,
          "group": "Best Overall Mechanical Keyboards"
        },
        {
          "position": 3,
          "title": "Keychron Q6 Max QMK/VIA Wireless Custom Mechanical Keyboard",
          "price": "$219.99",
          "extractedPrice": 219.99,
          "oldPrice": "$240",
          "source": "Keychron.com",
          "link": null,
          "productId": "4486338873333036170",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_73",
          "rating": 4.3,
          "reviews": "265",
          "delivery": null,
          "badge": "8% OFF",
          "group": "Best Overall Mechanical Keyboards"
        },
        {
          "position": 4,
          "title": "ASUS ROG Strix Scope II 96 Wireless Gaming Keyboard",
          "price": "$179.00",
          "extractedPrice": 179,
          "oldPrice": null,
          "source": "DirectDial",
          "link": null,
          "productId": "13903771518540771606",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_69",
          "rating": 4.6,
          "reviews": "233",
          "delivery": "15-day returns",
          "badge": null,
          "group": "Best Overall Mechanical Keyboards"
        },
        {
          "position": 5,
          "title": "ASUS ROG Strix Scope II 96 RX Wireless Gaming Keyboard, Optical Switches, Low Latency 2.4GHz, RGB, Compact 96% Layout",
          "price": "$399.99",
          "extractedPrice": 399.99,
          "oldPrice": null,
          "source": "neweggbusiness.com",
          "link": null,
          "productId": null,
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_59",
          "rating": null,
          "reviews": null,
          "delivery": "15-day returns",
          "badge": null,
          "group": "Best Overall Mechanical Keyboards"
        },
        {
          "position": 6,
          "title": "GravaStar Mercury K1 Pro 75% Wireless Mechanical Gaming Keyboard",
          "price": "$199.95",
          "extractedPrice": 199.95,
          "oldPrice": null,
          "source": "Micro Center",
          "link": null,
          "productId": "13608562084648114567",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_47",
          "rating": 4.7,
          "reviews": "528",
          "delivery": null,
          "badge": null,
          "group": "Mechanical Keyboards for Gaming"
        },
        {
          "position": 7,
          "title": "GravaStar Mercury K98 Pro Wireless Mechanical Gaming Keyboard",
          "price": "$259.95",
          "extractedPrice": 259.95,
          "oldPrice": null,
          "source": "Gravastar",
          "link": null,
          "productId": "4603642511690907054",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_75",
          "rating": 4.6,
          "reviews": "144",
          "delivery": null,
          "badge": null,
          "group": "Mechanical Keyboards for Gaming"
        },
        {
          "position": 8,
          "title": "Keychron K10 Ultra 8K Wireless Custom Mechanical Keyboard",
          "price": "$114.99",
          "extractedPrice": 114.99,
          "oldPrice": null,
          "source": "Best Buy",
          "link": null,
          "productId": "6927887153002842135",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_55",
          "rating": 4,
          "reviews": "4",
          "delivery": null,
          "badge": null,
          "group": "Mechanical Keyboards for Gaming"
        },
        {
          "position": 9,
          "title": "Logitech G915 X LIGHTSPEED Wireless Gaming Keyboard",
          "price": "$199.99",
          "extractedPrice": 199.99,
          "oldPrice": "Usually $208",
          "source": "Lenovo",
          "link": null,
          "productId": "17463790466465104290",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_67",
          "rating": 4.3,
          "reviews": "689",
          "delivery": null,
          "badge": null,
          "group": "Mechanical Keyboards for Gaming"
        },
        {
          "position": 10,
          "title": "Keychron Q6 Ultra 8K Wireless Mechanical Keyboard",
          "price": "$239.99",
          "extractedPrice": 239.99,
          "oldPrice": null,
          "source": "Keychron.com",
          "link": null,
          "productId": "14891799261078180163",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_56",
          "rating": 4.4,
          "reviews": "33",
          "delivery": null,
          "badge": null,
          "group": "Mechanical Keyboards for Gaming"
        },
        {
          "position": 11,
          "title": "Logitech MX Mechanical Wireless Illuminated Performance Keyboard",
          "price": "$179.99",
          "extractedPrice": 179.99,
          "oldPrice": null,
          "source": "Best Buy",
          "link": null,
          "productId": "4596460316229626748",
          "thumbnailId": null,
          "rating": 4.4,
          "reviews": "1.7K",
          "delivery": null,
          "badge": null,
          "group": "Mechanical Keyboards for Typing"
        },
        {
          "position": 12,
          "title": "Keychron K10 HE Wireless Magnetic Switch Keyboard",
          "price": "$144.99",
          "extractedPrice": 144.99,
          "oldPrice": null,
          "source": "Keychron.com",
          "link": null,
          "productId": "15875100517213137717",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_65",
          "rating": 4.7,
          "reviews": "200",
          "delivery": null,
          "badge": null,
          "group": "Mechanical Keyboards for Typing"
        },
        {
          "position": 13,
          "title": "Logitech MX Mechanical Mini Illuminated Wireless Keyboard",
          "price": "$159.99",
          "extractedPrice": 159.99,
          "oldPrice": null,
          "source": "Target",
          "link": null,
          "productId": "9247276418494032166",
          "thumbnailId": null,
          "rating": 4.6,
          "reviews": "833",
          "delivery": null,
          "badge": null,
          "group": "Mechanical Keyboards for Typing"
        },
        {
          "position": 14,
          "title": "Keyboard Lofree Flow",
          "price": "$119.00",
          "extractedPrice": 119,
          "oldPrice": "$159",
          "source": "Lofree Official",
          "link": null,
          "productId": "8834071140039222711",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_63",
          "rating": 4.9,
          "reviews": "129",
          "delivery": null,
          "badge": "25% OFF",
          "group": "Mechanical Keyboards for Typing"
        },
        {
          "position": 15,
          "title": "NuPhy Air75 V2 QMK/VIA Wireless Mechanical Keyboard",
          "price": "$119.95",
          "extractedPrice": 119.95,
          "oldPrice": null,
          "source": "NUPHY",
          "link": null,
          "productId": "11948412212780746613",
          "thumbnailId": "dimg_EO_aavKSFby2qtsP1r_t0Q4_60",
          "rating": 4.6,
          "reviews": "827",
          "delivery": null,
          "badge": null,
          "group": "Mechanical Keyboards for Typing"
        }
      ]
    },
    "pagination": {
      "page": 1,
      "start": 0,
      "hasNext": false,
      "nextStart": null
    },
    "meta": {
      "elapsedMs": 3096
    }
  },
  "meta": {
    "cache": "miss"
  }
}

Response fields

FieldTypeDescription
data.queryobjectSearch query passed to the engine.
data.searchInformationobjectReported result count and search timing, when provided.
successbooleanWhether the request succeeded. True in this example.
requestIdstringRequest identifier to include when troubleshooting.
data.typestringSearch type used for this response.
data.enginestringEngine that returned the results.
data.resultsarrayMain result list. Check feature groups as well when present.
data.featuresobjectAdditional result groups; groups not returned by the engine may be absent.
data.paginationobjectCurrent offset and next-page availability.
data.meta.elapsedMsnumberSearch duration in milliseconds, not a performance guarantee.
meta.cachestring | nullhit, miss, or null if cache status is unknown.

Result fields

Read data.features.shoppingResults when present. Some results may instead appear in data.results; check both before treating a search as empty.

FieldTypeDescription
data.features.shoppingResults[].positionintegerProduct position.
data.features.shoppingResults[].titlestringProduct name.
data.features.shoppingResults[].pricestring | nullDisplayed price, including currency text.
data.features.shoppingResults[].extractedPricenumber | nullNumeric price, when extracted.
data.features.shoppingResults[].oldPricestring | nullPrevious price when shown.
data.features.shoppingResults[].sourcestring | nullSeller or source label.
data.features.shoppingResults[].linkstring | nullProduct link; may be a Google redirect rather than a merchant URL.
data.features.shoppingResults[].productIdstring | nullProduct identifier, when provided.
data.features.shoppingResults[].thumbnailIdstring | nullThumbnail identifier, not a direct image URL.
data.features.shoppingResults[].ratingnumber | nullDisplayed rating.
data.features.shoppingResults[].reviewsstring | nullReview-count text.
data.features.shoppingResults[].deliverystring | nullDelivery text when shown.
data.features.shoppingResults[].badgestring | nullProduct badge when shown.
data.features.shoppingResults[].groupstring | nullProduct group label.

Main result entries

FieldTypeDescription
data.results[].domainstring | nullDestination domain, when available.
data.results[].faviconstring | nullSite icon when provided.
data.results[].sitelinksarrayAdditional links nested under the result.
data.results[].sitelinks[].titlestringSitelink label.
data.results[].sitelinks[].urlstring | nullSitelink destination.
data.results[].extensionsobjectOther result-specific properties.
data.results[].snippetHighlightedWordsstring[], optionalHighlighted terms in the snippet, when provided.
data.results[].positionintegerRank on this results page, starting at 1.
data.results[].typestringResult category: organic, news, image, video, shopping, local, forum, book, patent or ad. This can differ from the request type.
data.results[].titlestring | nullTitle shown in the result.
data.results[].urlstring | nullDestination URL when resolved; it may be null.
data.results[].displayedUrlstring | nullURL or domain displayed by the engine; not always a clickable link.
data.results[].sourcestring | nullSource name or displayed domain.
data.results[].datestring | nullDate text when extracted; not necessarily an ISO timestamp.
data.results[].snippetstring | nullResult summary.
data.results[].thumbnailstring | nullThumbnail URL or inline data URL, when provided.
data.results[].durationstring | nullVideo duration text when provided.
data.results[].pricestring | nullPrice text when provided.
data.results[].ratingnumber | nullRating when provided.

Pagination

  1. Check data.pagination.hasNext; stop when it is false.
  2. Use data.pagination.nextStart as start. Keep the other search parameters unchanged.
  3. Send the next request. Each page is a separate search request.
FieldTypeDescription
data.pagination.nextUrlstring | nullSearch-engine URL for the next page, when available; use nextStart with this API.
data.pagination.requestedPageintegerPage requested; may differ from the returned page if the engine does not provide it.
data.pagination.pageintegerCurrent page number.
data.pagination.startintegerCurrent result offset.
data.pagination.hasNextbooleanWhether another page is available.
data.pagination.nextStartinteger | nullOffset for the next request, or null when unavailable.

Errors

JSON
{
  "success": false,
  "requestId": "req_example",
  "error": {
    "code": "INVALID_PARAM",
    "message": "Unknown parameter \"page\"",
    "retryable": false
  }
}
FieldTypeDescription
error.codestringMachine-readable error code.
error.messagestringReason the request failed.
error.retryablebooleanWhether retrying is recommended.
error.retryAfterMsnumber, optionalMinimum wait before retrying, in milliseconds.
HTTP statusMeaningWhat to do
400Invalid request or unsupported search type.Check the query and engine/type combination.
401Missing, invalid or revoked API key.Check the authentication header and API key.
402Insufficient credits.Check your credit balance.
403Permission or plan restriction.Check account access and plan limits.
422Invalid parameter.Correct the parameter identified by error.message.
429Request rate or queue limit.Follow the retry rules below.
5xxServer or search service failure.Keep the requestId; retry only if allowed.

Retry rules

  • Retry only when error.retryable is true.
  • If error.retryAfterMs is present, wait at least that many milliseconds.

Pricing and limits

  • Successful searches use credits at the applicable rate.
  • Failed searches and timeouts are not charged.
  • Cache hits are free at the default rate. Before searching, your available balance must cover the full request cost.

See plan pricing and rate-limit and credit details.

Frequently asked questions

Are Shopping prices guaranteed to be current or complete?

No. A returned price is the value displayed in the captured result when available; results can vary by query, country and time. Treat the response as a search-result snapshot, not a product feed or price guarantee.

How are Shopping searches charged?

Successful searches use the applicable credit rate for the engine, type and country. Failed searches and timeouts release the reservation; cache hits are free at the default rate. See Pricing and limits below for the current rules.