{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Search Results Scraper - SERP API, PAA & Rich Results",
    "description": "Scrape Google Search results at scale: organic rankings, People Also Ask, AI Overview, featured snippets, ads & related searches. Any keyword, 190+ countries, desktop or mobile. Clean JSON/CSV. 95%+ success. No proxies or API keys to manage.",
    "version": "0.0",
    "x-build-id": "8bPqLdpTNNjQDuSVA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/santhej~google-search-results-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-santhej-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/santhej~google-search-results-scraper/runs": {
      "post": {
        "operationId": "runs-sync-santhej-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/santhej~google-search-results-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-santhej-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",
        "properties": {
          "queries": {
            "title": "Search queries",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "Keywords / search queries to scrape. One per line. Each query = 1 Google SERP page. Up to 1,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "resultsDepth": {
            "title": "Results per query",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "How many results to return per query (10–100).",
            "default": 20
          },
          "locationCode": {
            "title": "Country",
            "enum": [
              "2840",
              "2826",
              "2124",
              "2036",
              "2356",
              "2276",
              "2250",
              "2724",
              "2380",
              "2392"
            ],
            "type": "string",
            "description": "Target country. Default United States (2840). UK 2826, Canada 2124, Australia 2036, India 2356, Germany 2276.",
            "default": "2840"
          },
          "locationName": {
            "title": "City / region (optional)",
            "type": "string",
            "description": "Precise location, e.g. 'New York,New York,United States' or 'London,England,United Kingdom'. Overrides Country when set. Leave blank to use Country."
          },
          "languageCode": {
            "title": "Language",
            "type": "string",
            "description": "Language code (e.g. en, es, de, fr).",
            "default": "en"
          },
          "dateRange": {
            "title": "Date range",
            "enum": [
              "any",
              "past-day",
              "past-week",
              "past-month",
              "past-year",
              "custom"
            ],
            "type": "string",
            "description": "Restrict results by recency. Use Custom to set exact before/after dates.",
            "default": "any"
          },
          "dateAfter": {
            "title": "After date (custom range)",
            "type": "string",
            "description": "Only results after this date. Format YYYY-MM-DD. Used only when Date range = Custom."
          },
          "dateBefore": {
            "title": "Before date (custom range)",
            "type": "string",
            "description": "Only results before this date. Format YYYY-MM-DD. Used only when Date range = Custom."
          },
          "site": {
            "title": "Limit to site (site:)",
            "type": "string",
            "description": "Restrict to one domain, e.g. 'nytimes.com'. Composed into the query as site:domain."
          },
          "exactPhrase": {
            "title": "Exact phrase",
            "type": "string",
            "description": "Match this exact phrase (wrapped in quotes in the query)."
          },
          "excludeWords": {
            "title": "Exclude words",
            "type": "string",
            "description": "Comma/space separated words to exclude (each becomes -word)."
          },
          "intitle": {
            "title": "In title (intitle:)",
            "type": "string",
            "description": "Require this word/phrase in the page title."
          },
          "inurl": {
            "title": "In URL (inurl:)",
            "type": "string",
            "description": "Require this word in the page URL."
          },
          "filetype": {
            "title": "File type (filetype:)",
            "type": "string",
            "description": "Restrict to a file type, e.g. 'pdf', 'doc', 'ppt'."
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "mobile"
            ],
            "type": "string",
            "description": "Desktop or mobile SERP.",
            "default": "desktop"
          },
          "organicOnly": {
            "title": "Organic results only",
            "type": "boolean",
            "description": "If enabled, returns only organic results and drops ads, PAA, AI Overview, etc.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}