JustSERPDocs
Google

Google Shopping Filters

Every filter of a Google Shopping search with all the options of each group, answered as the document: `search_metadata`, `search_parameters`, `search_information`, `filters_results`.

GET
/v1/google/shopping/filters

Every filter of a Google Shopping search with all the options of each group, answered as the document: search_metadata, search_parameters, search_information, filters_results. Each option's shoprs is usable as shoprs in google_shopping. The token is the all_filters_token of a google_shopping answer (this API's own, not Google's). The answer expands each "See more" (up to four rounds).

Authorization

headerX-API-Key<token>

Your API key.

Query Parameters

cancel_token?string

A name you make up for this request (a UUID is fine), so you can later GET /v1/cancel with it. Only you know it, so only you can cancel. Use a new one for every request, retries included: a cancelled token stays cancelled for a few minutes.

Length1 <= length <= 128
all_filters_token*string

The all_filters_token of a google_shopping answer.

Response Body

The filters, as the document. When the page could not be parsed, the usual envelope.

application/json
  1. response

The first three keys of every parsed 200 (the answer is the document itself, no success/data envelope): what the search was (search_metadata), what it asked (search_parameters), the parser's own search_information ({} when it has none). The engine's blocks follow, at the same level. An engine whose answer is a list puts it under results.

search_metadata*
search_parameters*

The request's own fields as sent, engine first, without cancel_token.

search_information*

The parser's own, e.g. yelp_search's; otherwise {}.

filters_results?array<>
[key: string]?any
Example Request
curl -X GET 'https://api.justserp.com/v1/google/shopping/filters?all_filters_token=eyJxIjoicHM1IiwiZ2wiOiJ1cyIsImhsIjoiZW4ifQ'
Example Response
{  "search_metadata": {    "id": "string",    "status": "Success",    "created_at": "string",    "request_url": "string",    "html_url": "string"  },  "search_parameters": {},  "search_information": {},  "filters_results": [    {      "type": "string",      "options": [        {          "text": "string",          "shoprs": "string"        }      ]    }  ]}