{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Search Results Scraper",
    "description": "Scrape Google Search for any keyword or URL: organic results, AI Overview, People Also Ask, related searches, ads, videos and knowledge panel. No login or API key. Country, language and date filters. Bulk input, auto proxy fallback. Export JSON, CSV or Excel.",
    "version": "1.1",
    "x-build-id": "xkJAU0mLFjQNkvjNU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_minds~google-search-results-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_minds-google-search-results-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/data_minds~google-search-results-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data_minds-google-search-results-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/data_minds~google-search-results-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data_minds-google-search-results-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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "🔎 Search queries or Google links",
            "type": "array",
            "description": "One search per line: a keyword (e.g. best running shoes) or a full Google search link. Every line is searched.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max results per query",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Organic results collected for each query. A search can return fewer when Google has no more results.",
            "default": 10
          },
          "countryCode": {
            "title": "📍 Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "nz",
              "ie",
              "in",
              "pk",
              "bd",
              "lk",
              "np",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "be",
              "ch",
              "at",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "cz",
              "sk",
              "hu",
              "ro",
              "bg",
              "gr",
              "pt",
              "tr",
              "ru",
              "ua",
              "br",
              "mx",
              "ar",
              "cl",
              "co",
              "pe",
              "ve",
              "ec",
              "uy",
              "jp",
              "kr",
              "cn",
              "hk",
              "tw",
              "sg",
              "my",
              "id",
              "th",
              "vn",
              "ph",
              "ae",
              "sa",
              "il",
              "eg",
              "za",
              "ng",
              "ke",
              "ma",
              "dz"
            ],
            "type": "string",
            "description": "Which country's Google results to see.",
            "default": "us"
          },
          "languageCode": {
            "title": "🌍 Interface language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "pt-BR",
              "pt-PT",
              "nl",
              "sv",
              "no",
              "da",
              "fi",
              "pl",
              "cs",
              "sk",
              "hu",
              "ro",
              "bg",
              "el",
              "tr",
              "ru",
              "uk",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "ar",
              "he",
              "hi",
              "bn",
              "ur",
              "id",
              "ms",
              "th",
              "vi",
              "fil",
              "fa",
              "sw",
              "ca",
              "hr",
              "sr",
              "sl",
              "lt",
              "lv",
              "et"
            ],
            "type": "string",
            "description": "Language of the Google page (affects wording and result ranking).",
            "default": "en"
          },
          "quickDateRange": {
            "title": "📅 Quick date range",
            "enum": [
              "any",
              "1h",
              "24h",
              "7d",
              "2w",
              "1m",
              "1y"
            ],
            "type": "string",
            "description": "Only results published in this period. Overrides After date and Before date.",
            "default": "any"
          },
          "forceExactMatch": {
            "title": "✅ Exact match",
            "type": "boolean",
            "description": "Put every keyword query in quotes so Google matches the exact phrase.",
            "default": false
          },
          "afterDate": {
            "title": "📅 After date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Only results from this day on, as a date (2025-01-31) or relative (30 days, 2 weeks, 3 months, 1 year). Used when Quick date range is Any time."
          },
          "beforeDate": {
            "title": "📅 Before date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Only results up to this day, as a date (2025-01-31) or relative (30 days, 2 weeks, 3 months, 1 year). Used when Quick date range is Any time."
          },
          "searchLanguage": {
            "title": "🌍 Result language",
            "enum": [
              "",
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "sv",
              "no",
              "da",
              "fi",
              "pl",
              "cs",
              "sk",
              "hu",
              "ro",
              "bg",
              "el",
              "tr",
              "ru",
              "uk",
              "ja",
              "ko",
              "ar",
              "he",
              "hi",
              "bn",
              "ur",
              "id",
              "ms",
              "th",
              "vi",
              "fil",
              "fa",
              "sw",
              "ca",
              "hr",
              "sr",
              "sl",
              "lt",
              "lv",
              "et",
              "zh-cn",
              "zh-tw"
            ],
            "type": "string",
            "description": "Only show pages written in this language.",
            "default": ""
          },
          "locationUule": {
            "title": "📍 Exact location code",
            "type": "string",
            "description": "Optional Google location code (uule) to see results as seen from one exact place."
          },
          "includeUnfilteredResults": {
            "title": "✅ Include similar results",
            "type": "boolean",
            "description": "Also show results Google normally hides as near-duplicates.",
            "default": false
          },
          "includeExtraSections": {
            "title": "✅ Related searches, People also ask and more",
            "type": "boolean",
            "description": "Add related searches, People also ask answers, the AI overview, videos, the knowledge panel and search suggestions to the per-query summary.",
            "default": true
          },
          "includePaidResults": {
            "title": "✅ Paid ads",
            "type": "boolean",
            "description": "Add the sponsored ads shown above and below the results to the per-query summary. Ads appear only for searches that have them.",
            "default": true
          },
          "expandByDate": {
            "title": "✅ Reach further back in time",
            "type": "boolean",
            "description": "When a query runs out of results before Max results, keep searching older one-year periods. Ignored when a date filter is set.",
            "default": false
          },
          "saveHtml": {
            "title": "📦 Save result page HTML",
            "type": "boolean",
            "description": "Keep the raw HTML of every result page in the run's key-value store. Each result row and search record then carries htmlSnapshotUrl.",
            "default": false
          },
          "includeIcons": {
            "title": "📦 Add site icons",
            "type": "boolean",
            "description": "Add faviconUrl (the site's small icon) to every result.",
            "default": false
          },
          "mobileResults": {
            "title": "✅ Mobile results",
            "type": "boolean",
            "description": "Return the results Google shows to phone users instead of the desktop ones. Ranking and snippets can differ; some extra sections are shown less often.",
            "default": false
          },
          "maxPagesPerQuery": {
            "title": "🔢 Max pages per query",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Optional cap on result pages per query (about 7 organic results each). 0 = as many pages as needed for Max results.",
            "default": 0
          },
          "startPage": {
            "title": "🔢 Start page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "First result page to load (1 = the first page).",
            "default": 1
          },
          "maxConcurrency": {
            "title": "⚡ Parallel queries",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many queries run at the same time.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional network settings for the run."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}