{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Shopping Ads Spy Scraper",
    "description": "Google Shopping ads spy tool. Scrape paid PLA listings from desktop or mobile Google SERP with titles, prices, merchants, landing pages, and screenshots.",
    "version": "0.0",
    "x-build-id": "fQaUo11UFKMJ5gCDI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lurkapi~google-shopping-ads-spy-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lurkapi-google-shopping-ads-spy-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/lurkapi~google-shopping-ads-spy-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lurkapi-google-shopping-ads-spy-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/lurkapi~google-shopping-ads-spy-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lurkapi-google-shopping-ads-spy-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "searchQueries",
          "country"
        ],
        "properties": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "What you want to spy on. One keyword per entry, up to 500.",
            "items": {
              "type": "string"
            }
          },
          "maxAdsPerQuery": {
            "title": "Max ads per query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many ads to collect per keyword before stopping. Higher = more data, longer run.",
            "default": 20
          },
          "device": {
            "title": "Device",
            "enum": [
              "mobile",
              "desktop"
            ],
            "type": "string",
            "description": "Mobile and desktop show different ads. Run both if you want full coverage.",
            "default": "mobile"
          },
          "country": {
            "title": "Country",
            "enum": [
              "US",
              "CA",
              "UK",
              "IE",
              "AU",
              "NZ",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "BE",
              "SE",
              "NO",
              "DK",
              "FI",
              "PL",
              "PT",
              "AT",
              "CH",
              "JP",
              "KR",
              "IN",
              "BR",
              "MX",
              "AR",
              "ZA",
              "SG",
              "HK",
              "AE",
              "CL",
              "CO",
              "CZ",
              "GR",
              "HU",
              "ID",
              "IL",
              "MY",
              "PE",
              "PH",
              "RO",
              "SA",
              "SK",
              "TW",
              "TH",
              "TR",
              "VN",
              "RU",
              "BY",
              "UA"
            ],
            "type": "string",
            "description": "The market you want to see ads for. Google Shopping inventory varies heavily by country. Make sure your proxy below matches this country.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "sv",
              "no",
              "da",
              "fi",
              "pl",
              "ja",
              "ko",
              "zh",
              "ru",
              "tr",
              "ar",
              "he",
              "hi",
              "th",
              "vi",
              "id",
              "ms",
              "cs",
              "hu",
              "ro",
              "sk",
              "el",
              "uk",
              "bg",
              "hr",
              "sr",
              "sl",
              "et",
              "lv",
              "lt"
            ],
            "type": "string",
            "description": "The language Google serves the results in. Pick the language most ads in your target country are written in.",
            "default": "en"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Your proxy must match the country above, otherwise Google shows no ads. **Residential** is the default and works for every country. Datacenter only works for US. You can also plug in your own custom proxies.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          },
          "captureScreenshot": {
            "title": "Screenshot the ad",
            "type": "boolean",
            "description": "Save a PNG of each rendered ad card so you can see the creative exactly as a shopper does. Great for screenshots in reports.",
            "default": false
          },
          "outputSearchQuery": {
            "title": "Search query",
            "type": "boolean",
            "description": "searchQuery (the query that produced this ad)",
            "default": true
          },
          "outputPosition": {
            "title": "Position",
            "type": "boolean",
            "description": "position",
            "default": true
          },
          "outputProductTitle": {
            "title": "Product title",
            "type": "boolean",
            "description": "productTitle",
            "default": true
          },
          "outputProductImage": {
            "title": "Product image",
            "type": "boolean",
            "description": "productImage, thumbnailKvUrl",
            "default": true
          },
          "outputPrice": {
            "title": "Price info",
            "type": "boolean",
            "description": "price, currency, originalPrice, discountPercent",
            "default": true
          },
          "outputMerchant": {
            "title": "Merchant",
            "type": "boolean",
            "description": "merchant, merchantDomain",
            "default": true
          },
          "outputLandingPage": {
            "title": "Landing page URL",
            "type": "boolean",
            "description": "landingPage (the real merchant URL behind the ad click)",
            "default": true
          },
          "outputRating": {
            "title": "Rating and reviews",
            "type": "boolean",
            "description": "rating, reviewCount, storeRating",
            "default": true
          },
          "outputFreeShipping": {
            "title": "Free shipping flag",
            "type": "boolean",
            "description": "freeShipping",
            "default": true
          },
          "outputSaleLabels": {
            "title": "Sale and promo labels",
            "type": "boolean",
            "description": "saleLabel, priceDropLabel, promotionText",
            "default": true
          },
          "outputTopQualityStoreBadge": {
            "title": "Top quality store badge",
            "type": "boolean",
            "description": "topQualityStoreBadge",
            "default": true
          },
          "outputDetectedLocation": {
            "title": "Detected location",
            "type": "boolean",
            "description": "detectedLocation (the city Google geolocated your session to)",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}