{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Search Results (SERP) Scraper",
    "description": "🔎 Google Search Results (SERP) Scraper extracts organic results, titles, URLs, snippets, ads, PAA, featured snippets, local pack & more by keyword, location, language & device. ⚙️ Ideal for SEO monitoring, rank tracking & competitor intel. 🚀 Fast, scalable, anti-blocking.",
    "version": "0.1",
    "x-build-id": "SFAbtHXBBerXR31Nd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebase~google-search-results-serp-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebase-google-search-results-serp-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/scrapebase~google-search-results-serp-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapebase-google-search-results-serp-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/scrapebase~google-search-results-serp-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebase-google-search-results-serp-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": [
          "keyword"
        ],
        "properties": {
          "keyword": {
            "title": "🔍 Search Keyword(s)",
            "type": "string",
            "description": "Enter **one full search query per line**. Each line will be treated as a separate search (e.g. `nike shoes`, `best laptop 2025`).",
            "default": "nike"
          },
          "include_merged": {
            "title": "🧩 Include merged result",
            "type": "boolean",
            "description": "If enabled, the dataset will include **one extra row per keyword** that merges results from **all pages** (`page = \"all\"`).",
            "default": true
          },
          "limit": {
            "title": "📊 Number of results",
            "enum": [
              "10",
              "20",
              "30",
              "40",
              "50",
              "100",
              "all"
            ],
            "type": "string",
            "description": "Each page returns **up to 10 results**. Use **\"all\"** to fetch as many pages as possible (up to a safe limit).",
            "default": "all"
          },
          "start": {
            "title": "⏩ Start",
            "type": "integer",
            "description": "Optional offset for the **first result index** (Google `start` parameter). Leave empty for the default."
          },
          "page": {
            "title": "📄 Page",
            "type": "integer",
            "description": "If set, the scraper will fetch **only this page number** (1 = first page, 2 = second page, …)."
          },
          "country": {
            "title": "🌍 Country",
            "enum": [
              "AF",
              "AL",
              "DZ",
              "AS",
              "AD",
              "AO",
              "AI",
              "AQ",
              "AG",
              "AR",
              "AM",
              "AW",
              "AU",
              "AT",
              "AZ",
              "BS",
              "BH",
              "BD",
              "BB",
              "BY",
              "BE",
              "BZ",
              "BJ",
              "BM",
              "BT",
              "BO",
              "BA",
              "BW",
              "BV",
              "BR",
              "IO",
              "VG",
              "BN",
              "BG",
              "BF",
              "BI",
              "KH",
              "CM",
              "CA",
              "CV",
              "KY",
              "CF",
              "TD",
              "CL",
              "CN",
              "CX",
              "CC",
              "CO",
              "KM",
              "CG",
              "CD",
              "CK",
              "CR",
              "CI",
              "HR",
              "CU",
              "CY",
              "CZ",
              "DK",
              "DJ",
              "DM",
              "DO",
              "EC",
              "EG",
              "SV",
              "GQ",
              "ER",
              "EE",
              "SZ",
              "ET",
              "FK",
              "FO",
              "FJ",
              "FI",
              "FR",
              "GF",
              "PF",
              "TF",
              "GA",
              "GM",
              "GE",
              "DE",
              "GH",
              "GI",
              "GR",
              "GL",
              "GD",
              "GP",
              "GU",
              "GT",
              "GN",
              "GW",
              "GY",
              "HT",
              "HM",
              "HN",
              "HK",
              "HU",
              "IS",
              "IN",
              "ID",
              "IR",
              "IQ",
              "IE",
              "IL",
              "IT",
              "JM",
              "JP",
              "JO",
              "KZ",
              "KE",
              "KI",
              "KW",
              "KG",
              "LA",
              "LV",
              "LB",
              "LS",
              "LR",
              "LY",
              "LI",
              "LT",
              "LU",
              "MO",
              "MG",
              "MW",
              "MY",
              "MV",
              "ML",
              "MT",
              "MH",
              "MQ",
              "MR",
              "MU",
              "YT",
              "MX",
              "FM",
              "MD",
              "MC",
              "MN",
              "MS",
              "MA",
              "MZ",
              "MM",
              "NA",
              "NR",
              "NP",
              "NL",
              "NC",
              "NZ",
              "NI",
              "NE",
              "NG",
              "NU",
              "NF",
              "KP",
              "MK",
              "MP",
              "NO",
              "OM",
              "PK",
              "PW",
              "PS",
              "PA",
              "PG",
              "PY",
              "PE",
              "PH",
              "PN",
              "PL",
              "PT",
              "PR",
              "QA",
              "RE",
              "RO",
              "RU",
              "RW",
              "WS",
              "SM",
              "ST",
              "SA",
              "SN",
              "RS",
              "SC",
              "SL",
              "SG",
              "SK",
              "SI",
              "SB",
              "SO",
              "ZA",
              "GS",
              "KR",
              "ES",
              "LK",
              "SH",
              "KN",
              "LC",
              "PM",
              "VC",
              "SD",
              "SR",
              "SJ",
              "SE",
              "CH",
              "SY",
              "TW",
              "TJ",
              "TZ",
              "TH",
              "TG",
              "TK",
              "TO",
              "TT",
              "TN",
              "TR",
              "TM",
              "TC",
              "TV",
              "VI",
              "UG",
              "UA",
              "AE",
              "GB",
              "US",
              "UY",
              "UZ",
              "VU",
              "VA",
              "VE",
              "VN",
              "WF",
              "EH",
              "YE",
              "ZM",
              "ZW"
            ],
            "type": "string",
            "description": "Main **country selector**. Automatically sets Google `gl` and default proxy location. Uses ISO 3166 A‑2 country codes."
          },
          "gl": {
            "title": "🌐 GL (Local country results)",
            "enum": [
              "AF",
              "AL",
              "DZ",
              "AS",
              "AD",
              "AO",
              "AI",
              "AQ",
              "AG",
              "AR",
              "AM",
              "AW",
              "AU",
              "AT",
              "AZ",
              "BS",
              "BH",
              "BD",
              "BB",
              "BY",
              "BE",
              "BZ",
              "BJ",
              "BM",
              "BT",
              "BO",
              "BA",
              "BW",
              "BV",
              "BR",
              "IO",
              "VG",
              "BN",
              "BG",
              "BF",
              "BI",
              "KH",
              "CM",
              "CA",
              "CV",
              "KY",
              "CF",
              "TD",
              "CL",
              "CN",
              "CX",
              "CC",
              "CO",
              "KM",
              "CG",
              "CD",
              "CK",
              "CR",
              "CI",
              "HR",
              "CU",
              "CY",
              "CZ",
              "DK",
              "DJ",
              "DM",
              "DO",
              "EC",
              "EG",
              "SV",
              "GQ",
              "ER",
              "EE",
              "SZ",
              "ET",
              "FK",
              "FO",
              "FJ",
              "FI",
              "FR",
              "GF",
              "PF",
              "TF",
              "GA",
              "GM",
              "GE",
              "DE",
              "GH",
              "GI",
              "GR",
              "GL",
              "GD",
              "GP",
              "GU",
              "GT",
              "GN",
              "GW",
              "GY",
              "HT",
              "HM",
              "HN",
              "HK",
              "HU",
              "IS",
              "IN",
              "ID",
              "IR",
              "IQ",
              "IE",
              "IL",
              "IT",
              "JM",
              "JP",
              "JO",
              "KZ",
              "KE",
              "KI",
              "KW",
              "KG",
              "LA",
              "LV",
              "LB",
              "LS",
              "LR",
              "LY",
              "LI",
              "LT",
              "LU",
              "MO",
              "MG",
              "MW",
              "MY",
              "MV",
              "ML",
              "MT",
              "MH",
              "MQ",
              "MR",
              "MU",
              "YT",
              "MX",
              "FM",
              "MD",
              "MC",
              "MN",
              "MS",
              "MA",
              "MZ",
              "MM",
              "NA",
              "NR",
              "NP",
              "NL",
              "NC",
              "NZ",
              "NI",
              "NE",
              "NG",
              "NU",
              "NF",
              "KP",
              "MK",
              "MP",
              "NO",
              "OM",
              "PK",
              "PW",
              "PS",
              "PA",
              "PG",
              "PY",
              "PE",
              "PH",
              "PN",
              "PL",
              "PT",
              "PR",
              "QA",
              "RE",
              "RO",
              "RU",
              "RW",
              "WS",
              "SM",
              "ST",
              "SA",
              "SN",
              "RS",
              "SC",
              "SL",
              "SG",
              "SK",
              "SI",
              "SB",
              "SO",
              "ZA",
              "GS",
              "KR",
              "ES",
              "LK",
              "SH",
              "KN",
              "LC",
              "PM",
              "VC",
              "SD",
              "SR",
              "SJ",
              "SE",
              "CH",
              "SY",
              "TW",
              "TJ",
              "TZ",
              "TH",
              "TG",
              "TK",
              "TO",
              "TT",
              "TN",
              "TR",
              "TM",
              "TC",
              "TV",
              "VI",
              "UG",
              "UA",
              "AE",
              "GB",
              "US",
              "UY",
              "UZ",
              "VU",
              "VA",
              "VE",
              "VN",
              "WF",
              "EH",
              "YE",
              "ZM",
              "ZW"
            ],
            "type": "string",
            "description": "Override the **local country for results** (Google `gl` parameter). Uses ISO 3166 A‑2 codes."
          },
          "hl": {
            "title": "🈶 HL (Google UI language)",
            "enum": [
              "af",
              "ar",
              "hy",
              "be",
              "bg",
              "ca",
              "zh-CN",
              "zh-TW",
              "hr",
              "cs",
              "da",
              "nl",
              "en",
              "eo",
              "et",
              "tl",
              "fi",
              "fr",
              "de",
              "el",
              "iw",
              "hi",
              "hu",
              "is",
              "id",
              "it",
              "ja",
              "ko",
              "lv",
              "lt",
              "no",
              "fa",
              "pl",
              "pt",
              "ro",
              "ru",
              "sr",
              "sk",
              "sl",
              "es",
              "sw",
              "sv",
              "th",
              "tr",
              "uk",
              "vi"
            ],
            "type": "string",
            "description": "Language of the **Google Search interface** (menus, buttons, etc.). For example `en`, `fr`, `de`."
          },
          "tbs": {
            "title": "⏱️ TBS (Time filter)",
            "type": "string",
            "description": "Advanced time filter. Examples: `qdr:d` (past day), `qdr:w` (week) or custom range: `cdr:1,cd_min:01/01/2024,cd_max:01/31/2024`."
          },
          "lr": {
            "title": "🈺 LR (Language restriction)",
            "enum": [
              "lang_af",
              "lang_ar",
              "lang_hy",
              "lang_be",
              "lang_bg",
              "lang_ca",
              "lang_zh-CN",
              "lang_zh-TW",
              "lang_hr",
              "lang_cs",
              "lang_da",
              "lang_nl",
              "lang_en",
              "lang_eo",
              "lang_et",
              "lang_tl",
              "lang_fi",
              "lang_fr",
              "lang_de",
              "lang_el",
              "lang_iw",
              "lang_hi",
              "lang_hu",
              "lang_is",
              "lang_id",
              "lang_it",
              "lang_ja",
              "lang_ko",
              "lang_lv",
              "lang_lt",
              "lang_no",
              "lang_fa",
              "lang_pl",
              "lang_pt",
              "lang_ro",
              "lang_ru",
              "lang_sr",
              "lang_sk",
              "lang_sl",
              "lang_es",
              "lang_sw",
              "lang_sv",
              "lang_th",
              "lang_tr",
              "lang_uk",
              "lang_vi"
            ],
            "type": "string",
            "description": "Restrict results by **content language** (Google `lr` parameter), e.g. `lang_en`, `lang_fr`."
          },
          "cr": {
            "title": "🚩 CR (Country restriction)",
            "enum": [
              "countryAF",
              "countryAL",
              "countryDZ",
              "countryAS",
              "countryAD",
              "countryAO",
              "countryAI",
              "countryAQ",
              "countryAG",
              "countryAR",
              "countryAM",
              "countryAW",
              "countryAU",
              "countryAT",
              "countryAZ",
              "countryBS",
              "countryBH",
              "countryBD",
              "countryBB",
              "countryBY",
              "countryBE",
              "countryBZ",
              "countryBJ",
              "countryBM",
              "countryBT",
              "countryBO",
              "countryBA",
              "countryBW",
              "countryBV",
              "countryBR",
              "countryIO",
              "countryVG",
              "countryBN",
              "countryBG",
              "countryBF",
              "countryBI",
              "countryKH",
              "countryCM",
              "countryCA",
              "countryCV",
              "countryKY",
              "countryCF",
              "countryTD",
              "countryCL",
              "countryCN",
              "countryCX",
              "countryCC",
              "countryCO",
              "countryKM",
              "countryCG",
              "countryCD",
              "countryCK",
              "countryCR",
              "countryCI",
              "countryHR",
              "countryCU",
              "countryCY",
              "countryCZ",
              "countryDK",
              "countryDJ",
              "countryDM",
              "countryDO",
              "countryEC",
              "countryEG",
              "countrySV",
              "countryGQ",
              "countryER",
              "countryEE",
              "countrySZ",
              "countryET",
              "countryFK",
              "countryFO",
              "countryFJ",
              "countryFI",
              "countryFR",
              "countryGF",
              "countryPF",
              "countryTF",
              "countryGA",
              "countryGM",
              "countryGE",
              "countryDE",
              "countryGH",
              "countryGI",
              "countryGR",
              "countryGL",
              "countryGD",
              "countryGP",
              "countryGU",
              "countryGT",
              "countryGN",
              "countryGW",
              "countryGY",
              "countryHT",
              "countryHM",
              "countryHN",
              "countryHK",
              "countryHU",
              "countryIS",
              "countryIN",
              "countryID",
              "countryIR",
              "countryIQ",
              "countryIE",
              "countryIL",
              "countryIT",
              "countryJM",
              "countryJP",
              "countryJO",
              "countryKZ",
              "countryKE",
              "countryKI",
              "countryKW",
              "countryKG",
              "countryLA",
              "countryLV",
              "countryLB",
              "countryLS",
              "countryLR",
              "countryLY",
              "countryLI",
              "countryLT",
              "countryLU",
              "countryMO",
              "countryMG",
              "countryMW",
              "countryMY",
              "countryMV",
              "countryML",
              "countryMT",
              "countryMH",
              "countryMQ",
              "countryMR",
              "countryMU",
              "countryYT",
              "countryMX",
              "countryFM",
              "countryMD",
              "countryMC",
              "countryMN",
              "countryMS",
              "countryMA",
              "countryMZ",
              "countryMM",
              "countryNA",
              "countryNR",
              "countryNP",
              "countryNL",
              "countryNC",
              "countryNZ",
              "countryNI",
              "countryNE",
              "countryNG",
              "countryNU",
              "countryNF",
              "countryKP",
              "countryMK",
              "countryMP",
              "countryNO",
              "countryOM",
              "countryPK",
              "countryPW",
              "countryPS",
              "countryPA",
              "countryPG",
              "countryPY",
              "countryPE",
              "countryPH",
              "countryPN",
              "countryPL",
              "countryPT",
              "countryPR",
              "countryQA",
              "countryRE",
              "countryRO",
              "countryRU",
              "countryRW",
              "countryWS",
              "countrySM",
              "countryST",
              "countrySA",
              "countrySN",
              "countryRS",
              "countrySC",
              "countrySL",
              "countrySG",
              "countrySK",
              "countrySI",
              "countrySB",
              "countrySO",
              "countryZA",
              "countryGS",
              "countryKR",
              "countryES",
              "countryLK",
              "countrySH",
              "countryKN",
              "countryLC",
              "countryPM",
              "countryVC",
              "countrySD",
              "countrySR",
              "countrySJ",
              "countrySE",
              "countryCH",
              "countrySY",
              "countryTW",
              "countryTJ",
              "countryTZ",
              "countryTH",
              "countryTG",
              "countryTK",
              "countryTO",
              "countryTT",
              "countryTN",
              "countryTR",
              "countryTM",
              "countryTC",
              "countryTV",
              "countryVI",
              "countryUG",
              "countryUA",
              "countryAE",
              "countryGB",
              "countryUS",
              "countryUY",
              "countryUZ",
              "countryVU",
              "countryVA",
              "countryVE",
              "countryVN",
              "countryWF",
              "countryEH",
              "countryYE",
              "countryZM",
              "countryZW"
            ],
            "type": "string",
            "description": "Restrict results by **country of origin** (Google `cr` parameter), e.g. `countryUS`, `countryFR`."
          },
          "proxy_location": {
            "title": "🛡️ Proxy location",
            "enum": [
              "us",
              "ca"
            ],
            "type": "string",
            "description": "Force the **proxy region**. Useful if you want to keep Google country separate from the proxy location. Options: `us`, `ca`."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}