{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Search Results Scraper: SERP to JSON, Real URLs",
    "description": "Scrape Google search results pages: organic results with the real target URL, title, description, date and sitelinks, plus ads, People also ask and related searches. Any country and language, site: and date filters, many pages per query. One row per results page. No Google account needed.",
    "version": "0.1",
    "x-build-id": "2AeCsxIysaZntEBYM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/transparent_meteorite~google-search-results-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-transparent_meteorite-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/transparent_meteorite~google-search-results-scraper/runs": {
      "post": {
        "operationId": "runs-sync-transparent_meteorite-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/transparent_meteorite~google-search-results-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-transparent_meteorite-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 terms or Google URLs",
            "type": "string",
            "description": "One search per line. Operators work (site:, intitle:, \"exact\", -exclude, OR). A full Google search URL on a line is also accepted; its gl, hl, tbs, start and filter parameters are kept.",
            "default": "project manager jobs detroit"
          },
          "maxPagesPerQuery": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Google serves 10 organic results per page. 3 pages = about 30 results. Paging stops when Google has no next page.",
            "default": 1
          },
          "resultsPerPage": {
            "title": "Results per page",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "Kept for compatibility. Google now returns 10 organic results per page whatever is asked; use Pages per search for more.",
            "default": 10
          },
          "countryCode": {
            "title": "Country (gl)",
            "type": "string",
            "description": "Two-letter country to search from, e.g. us, gb, de, ca, au, in. Changes local rankings.",
            "default": "us"
          },
          "languageCode": {
            "title": "Interface language (hl)",
            "type": "string",
            "description": "Language of the Google interface, e.g. en, de, fr, es.",
            "default": "en"
          },
          "searchLanguage": {
            "title": "Only results in language (lr)",
            "type": "string",
            "description": "Restrict results to pages in one language, e.g. de or fr. Empty = any language."
          },
          "site": {
            "title": "Only this site (site:)",
            "type": "string",
            "description": "Adds site:example.com to every search. Pages where Google ignores it are flagged and not charged."
          },
          "relatedToSite": {
            "title": "Related to site (related:)",
            "type": "string",
            "description": "Adds related:example.com to every search."
          },
          "wordsInTitle": {
            "title": "Words in title (intitle:)",
            "type": "array",
            "description": "Each word must appear in the page title.",
            "items": {
              "type": "string"
            }
          },
          "wordsInText": {
            "title": "Words in text (intext:)",
            "type": "array",
            "description": "Each word must appear in the page text.",
            "items": {
              "type": "string"
            }
          },
          "wordsInUrl": {
            "title": "Words in URL (inurl:)",
            "type": "array",
            "description": "Each word must appear in the URL.",
            "items": {
              "type": "string"
            }
          },
          "forceExactMatch": {
            "title": "Exact match",
            "type": "boolean",
            "description": "Wraps each search in quotes.",
            "default": false
          },
          "quickDateRange": {
            "title": "Date range",
            "type": "string",
            "description": "Only results from the last h (hours), d (days), w (weeks), m (months) or y (years), with an optional number: d1, w2, m6, y1."
          },
          "includeAds": {
            "title": "Include ads (best effort, often empty)",
            "type": "boolean",
            "description": "Best effort, often empty: fetches each page through Google directly and returns paid results only if Google happens to show ads to the proxy location. No guarantee. Slower (about 15-45 s per page) than the default fast route.",
            "default": false
          },
          "includeAiOverview": {
            "title": "Include AI Overview",
            "type": "boolean",
            "description": "Fetch each page through Google directly and return the AI Overview text and sources when Google shows one. Slower than the default fast route.",
            "default": false
          },
          "mobileResults": {
            "title": "Mobile results",
            "type": "boolean",
            "description": "Search as a phone (mobile rankings).",
            "default": false
          },
          "includeUnfilteredResults": {
            "title": "Include omitted similar results",
            "type": "boolean",
            "description": "Adds filter=0 so Google does not hide near-duplicate results.",
            "default": false
          },
          "saveHtml": {
            "title": "Save HTML in the dataset",
            "type": "boolean",
            "description": "Adds the raw page HTML to each row (large rows).",
            "default": false
          },
          "saveHtmlToKeyValueStore": {
            "title": "Save HTML to key-value store",
            "type": "boolean",
            "description": "Saves each page HTML as a file and adds a link to it in the row.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}