{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Search Results Scraper: SERP API, Exact Site Filter",
    "description": "Scrapes Google Search results pages. Give it search queries (and optional site, country, language, date or file-type filters); get one row per results page with the organic results (title, real link, snippet, date), related searches and an off-site count.",
    "version": "0.1",
    "x-build-id": "pq2NbnHtJZTJqWgX2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/h1018y~anvil-google-search-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-h1018y-anvil-google-search-api",
        "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/h1018y~anvil-google-search-api/runs": {
      "post": {
        "operationId": "runs-sync-h1018y-anvil-google-search-api",
        "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/h1018y~anvil-google-search-api/run-sync": {
      "post": {
        "operationId": "run-sync-h1018y-anvil-google-search-api",
        "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",
            "type": "string",
            "description": "Google searches, one per line, for example: web scraping tools. Every line is searched on its own.",
            "default": "web scraping tools"
          },
          "maxPagesPerQuery": {
            "title": "Pages per query",
            "minimum": 1,
            "type": "integer",
            "description": "How many result pages to read for each query; every page holds about 10 results, for example 2.",
            "default": 1
          },
          "aiOverview": {
            "title": "AI Overview",
            "type": "object",
            "description": "Kept for compatibility: AI answers are not returned.",
            "default": {}
          },
          "aiModeSearch": {
            "title": "AI Mode",
            "type": "object",
            "description": "Kept for compatibility: AI answers are not returned.",
            "default": {}
          },
          "geminiSearch": {
            "title": "Gemini search",
            "type": "object",
            "description": "Kept for compatibility: not supported, leave empty.",
            "default": {}
          },
          "perplexitySearch": {
            "title": "Perplexity search",
            "type": "object",
            "description": "Kept for compatibility: not supported, leave empty.",
            "default": {}
          },
          "chatGptSearch": {
            "title": "ChatGPT search",
            "type": "object",
            "description": "Kept for compatibility: not supported, leave empty.",
            "default": {}
          },
          "copilotSearch": {
            "title": "Copilot search",
            "type": "object",
            "description": "Kept for compatibility: not supported, leave empty.",
            "default": {}
          },
          "maximumLeadsEnrichmentRecords": {
            "title": "Leads enrichment records",
            "type": "integer",
            "description": "Kept for compatibility: people and e-mail lookups are not offered.",
            "default": 0
          },
          "leadsEnrichmentDepartments": {
            "title": "Leads departments",
            "type": "array",
            "description": "Kept for compatibility: people and e-mail lookups are not offered.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "verifyLeadsEnrichmentEmails": {
            "title": "Verify lead e-mails",
            "type": "boolean",
            "description": "Kept for compatibility: people and e-mail lookups are not offered.",
            "default": false
          },
          "linkProspecting": {
            "title": "Link prospecting",
            "type": "object",
            "description": "Kept for compatibility: not supported, leave empty.",
            "default": {}
          },
          "websiteContentScraper": {
            "title": "Website content",
            "type": "object",
            "description": "Kept for compatibility: result pages are not opened, only the search page is read.",
            "default": {}
          },
          "focusOnPaidAds": {
            "title": "Focus on paid ads",
            "type": "boolean",
            "description": "Kept for compatibility: paid results are always returned when Google shows them.",
            "default": false
          },
          "countryCode": {
            "title": "Country code",
            "type": "string",
            "description": "Two-letter country the search is made from, for example us or de. Empty means the proxy country.",
            "default": ""
          },
          "searchLanguage": {
            "title": "Search language",
            "type": "string",
            "description": "Restrict results to a language by its two-letter code, for example en or de. Empty means any.",
            "default": ""
          },
          "languageCode": {
            "title": "Interface language",
            "type": "string",
            "description": "Two-letter language of the Google page, for example en. This is the default.",
            "default": "en"
          },
          "locationUule": {
            "title": "Location UULE",
            "type": "string",
            "description": "Optional Google UULE location code that makes results local to a place. Leave empty for none."
          },
          "forceExactMatch": {
            "title": "Exact match",
            "type": "boolean",
            "description": "Turn on to search the whole query as one exact phrase in quotes.",
            "default": false
          },
          "site": {
            "title": "Site",
            "type": "string",
            "description": "Only return results from these websites, written like apify.com or several separated by commas: github.com, gitlab.com. Results from other domains are dropped.",
            "default": ""
          },
          "relatedToSite": {
            "title": "Related to site",
            "type": "string",
            "description": "Return sites similar to this one, for example apify.com.",
            "default": ""
          },
          "wordsInTitle": {
            "title": "Words in title",
            "type": "array",
            "description": "Words that must appear in the page title, one per line, for example pricing.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "wordsInText": {
            "title": "Words in text",
            "type": "array",
            "description": "Words that must appear in the page text, one per line, for example scraper.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "wordsInUrl": {
            "title": "Words in URL",
            "type": "array",
            "description": "Words that must appear in the page address, one per line, for example blog.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "quickDateRange": {
            "title": "Quick date range",
            "type": "string",
            "description": "Only results from the last hour (h), day (d), week (w), month (m) or year (y), written like d1 or w1. Empty means any time.",
            "default": ""
          },
          "beforeDate": {
            "title": "Before date",
            "type": "string",
            "description": "Only results before this date, written as YYYY-MM-DD, for example 2025-06-30.",
            "default": ""
          },
          "afterDate": {
            "title": "After date",
            "type": "string",
            "description": "Only results after this date, written as YYYY-MM-DD, for example 2025-01-01.",
            "default": ""
          },
          "fileTypes": {
            "title": "File types",
            "type": "array",
            "description": "Only results with these file types, one per line, for example pdf.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mobileResults": {
            "title": "Mobile results",
            "type": "boolean",
            "description": "Turn on to read the phone version of the Google result page.",
            "default": false
          },
          "includeUnfilteredResults": {
            "title": "Include unfiltered results",
            "type": "boolean",
            "description": "Turn on to also see results Google normally hides as near duplicates.",
            "default": false
          },
          "saveHtml": {
            "title": "Save HTML",
            "type": "boolean",
            "description": "Kept for compatibility: the page HTML is not saved.",
            "default": false
          },
          "saveHtmlToKeyValueStore": {
            "title": "Save HTML to store",
            "type": "boolean",
            "description": "Kept for compatibility: the page HTML is not saved.",
            "default": false
          },
          "includeIcons": {
            "title": "Include icons",
            "type": "boolean",
            "description": "Kept for compatibility: result icons are not returned.",
            "default": false
          },
          "useApifyProxy": {
            "title": "Use Apify proxy",
            "type": "boolean",
            "description": "Send requests through the Apify proxy; the site usually refuses plain data center traffic.",
            "default": true
          },
          "proxyGroups": {
            "title": "Proxy groups",
            "type": "array",
            "description": "Apify proxy groups for the Google requests. Keep GOOGLE_SERP (Apify's Google search proxy); other groups get a CAPTCHA.",
            "default": [
              "GOOGLE_SERP"
            ],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new",
            "type": "boolean",
            "description": "Turn on to return only results not seen in the previous run with the same input; good for a schedule.",
            "default": false
          },
          "maxRunMinutes": {
            "title": "Time limit (minutes)",
            "type": "number",
            "description": "Stops the run after this many minutes and keeps the rows already found, for example 10. Default 20.",
            "default": 20
          },
          "webhookUrl": {
            "title": "Send results to (webhook URL)",
            "type": "string",
            "description": "Optional. An https address - your own system, Zapier, Make or a Slack incoming webhook - that gets each run's results as JSON (with 'only new' on: just the new ones). Example: https://hooks.slack.com/services/T000/B000/XXXX"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}