{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Search Scraper 💰 $4/1K pages · Rank Tracker · Real URLs",
    "description": "Scrape Google search results to JSON or CSV for $4 per 1,000 pages: rank, title, real URL, domain, snippet, People Also Ask, related searches and ads. Track your domains, stop paging once they are found, and get rank changes in Slack, Discord or a webhook. Empty pages are free.",
    "version": "0.1",
    "x-build-id": "HP0bBu46QbyswdzCL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/first-penguin~google-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-first-penguin-google-search-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/first-penguin~google-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-first-penguin-google-search-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/first-penguin~google-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-first-penguin-google-search-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 terms or Google Search URLs",
            "type": "string",
            "description": "One search per line. Plain words, Google operators (site:, intitle:, \"exact phrase\", -word) or a Google Search URL you copied from your browser (its country, language and date filters are kept). Duplicates are removed automatically."
          },
          "maxPagesPerQuery": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many results pages to read for each search. Each page has about 10 organic results. Positions continue across pages (page 2 starts at about 11).",
            "default": 1
          },
          "countryCode": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code for the Google results, sent as Google's gl parameter, for example us, gb, de, se. Leave empty for Google's default.",
            "default": "us"
          },
          "languageCode": {
            "title": "Interface language",
            "type": "string",
            "description": "Language of Google's interface (hl), for example en, de, fr. Affects labels and sometimes which results appear.",
            "default": "en"
          },
          "searchLanguage": {
            "title": "Results language",
            "type": "string",
            "description": "Only return pages written in this language (Google's lr parameter), for example de for German. Leave empty for all languages."
          },
          "locationUule": {
            "title": "Exact location (uule code)",
            "type": "string",
            "description": "Google's uule code for a precise location, for example a city. Leave empty to use the country only."
          },
          "fixLocation": {
            "title": "Search from one fixed city per country",
            "type": "boolean",
            "description": "Google changes results by location. When on and no exact location is set, every search uses the same city for its country (for example New York for us, London for gb), so rankings stay comparable between runs. Turn off to let Google pick.",
            "default": true
          },
          "trackDomains": {
            "title": "Domains to track",
            "type": "array",
            "description": "Your domain and your competitors' domains, for example example.com. Each search gets a ranking row with the best position and ranking URL of every domain. Subdomains count (blog.example.com counts as example.com).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "stopWhenTrackedFound": {
            "title": "Stop paging when every tracked domain is found",
            "type": "boolean",
            "description": "Saves money in rank tracking: once all tracked domains are found for a search, the remaining pages of that search are not read and not charged.",
            "default": true
          },
          "monitorChanges": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Shows how each tracked domain moved since the last reported ranking with the same monitor name: up, down, new, dropped out, or a different ranking URL. Also lists domains that entered or left the top 10. The previous results are kept only in your own Apify account.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use a different name for each keyword list you track, for example one per client.",
            "default": "default"
          },
          "minRankChange": {
            "title": "Smallest move to report",
            "minimum": 1,
            "type": "integer",
            "description": "Only report a tracked domain when it moved at least this many positions. Entering or dropping out is always reported.",
            "default": 1
          },
          "confirmChanges": {
            "title": "Report a move only when it shows up in two runs in a row",
            "type": "boolean",
            "description": "Google results move a little between runs even minutes apart. When on, a move is reported only if the next run shows it again, so one-off jumps do not trigger alerts (you hear about a real move one run later). Moves seen once are listed in pendingChanges. Turn off to report every move at once.",
            "default": true
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Get one message per run listing the ranking changes. Needs Compare with the previous run."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Same message, sent to a Discord channel."
          },
          "webhookUrl": {
            "title": "Webhook URL (JSON)",
            "type": "string",
            "description": "Receives the ranking changes as JSON (event rankings.changed)."
          },
          "site": {
            "title": "Only this site",
            "type": "string",
            "description": "Adds site: to every search, for example linkedin.com/in or example.com."
          },
          "relatedToSite": {
            "title": "Related to site",
            "type": "string",
            "description": "Adds related: to every search."
          },
          "forceExactMatch": {
            "title": "Exact phrase",
            "type": "boolean",
            "description": "Wraps each search in quotes.",
            "default": false
          },
          "wordsInTitle": {
            "title": "Words in title",
            "type": "array",
            "description": "Adds intitle: for each word or phrase.",
            "items": {
              "type": "string"
            }
          },
          "wordsInText": {
            "title": "Words in text",
            "type": "array",
            "description": "Adds intext: for each word or phrase.",
            "items": {
              "type": "string"
            }
          },
          "wordsInUrl": {
            "title": "Words in URL",
            "type": "array",
            "description": "Adds inurl: for each word.",
            "items": {
              "type": "string"
            }
          },
          "fileTypes": {
            "title": "File types",
            "type": "array",
            "description": "Adds filetype:, for example pdf, docx, xlsx. Several types are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "quickDateRange": {
            "title": "Date range",
            "type": "string",
            "description": "h (past hour), d (past day), w, m, y, optionally with a number: d7 = past 7 days, m6 = past 6 months."
          },
          "afterDate": {
            "title": "After date",
            "type": "string",
            "description": "YYYY-MM-DD or a relative value such as 8 days. Overrides Date range."
          },
          "beforeDate": {
            "title": "Before date",
            "type": "string",
            "description": "YYYY-MM-DD or a relative value such as 8 days. Overrides Date range."
          },
          "includeUnfilteredResults": {
            "title": "Include results Google filters out",
            "type": "boolean",
            "description": "Adds filter=0, which shows near-duplicate results Google normally hides.",
            "default": false
          },
          "resolveUrls": {
            "title": "Resolve Google redirect links",
            "type": "boolean",
            "description": "Google wraps result links in its own redirect. When on, each link is turned into the real page URL. When a link cannot be resolved, you get Google's link and urlResolved is false.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Searches in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many searches run at the same time.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}