{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Search Scraper: SERP, AI Overview & Leads Enrichment",
    "description": "[$0.8/1K] Extract Google Search organic results, AI Overviews, People Also Ask, Knowledge Graph, paid ads, full webpage Markdown, and optional B2B domain contact enrichment.",
    "version": "1.0",
    "x-build-id": "oYG7hffMLZoYYkisy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/offerastudio~google-serp-ai-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-offerastudio-google-serp-ai-leads-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/offerastudio~google-serp-ai-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-offerastudio-google-serp-ai-leads-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/offerastudio~google-serp-ai-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-offerastudio-google-serp-ai-leads-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 or URLs",
            "type": "string",
            "description": "Search queries separated by newline (or array of strings)."
          },
          "maxPagesPerQuery": {
            "title": "Max Pages Per Query",
            "minimum": 1,
            "type": "integer",
            "description": "Number of SERP pages to scrape per query.",
            "default": 1
          },
          "resultsPerPage": {
            "title": "Results Per Page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of organic results per SERP page (10-100).",
            "default": 10
          },
          "countryCode": {
            "title": "Country Code (gl)",
            "type": "string",
            "description": "Two-letter ISO country code (e.g. 'us', 'gb', 'de', 'tr').",
            "default": "us"
          },
          "languageCode": {
            "title": "Language Code (hl)",
            "type": "string",
            "description": "Two-letter language code (e.g. 'en', 'de', 'tr').",
            "default": "en"
          },
          "aiOverview": {
            "title": "Extract Google AI Overview",
            "type": "boolean",
            "description": "Extract Google AI Overview & synthesized multi-source answer with citations.",
            "default": true
          },
          "maximumLeadsEnrichmentRecords": {
            "title": "Maximum Leads Enrichment Records Per Page",
            "minimum": 0,
            "type": "integer",
            "description": "Crawl the top N organic result domains per page to extract verified emails, phones, socials, Impressum, and tech stack (0 disables lead enrichment).",
            "default": 0
          },
          "verifyLeadsEnrichmentEmails": {
            "title": "Verify Enriched Emails (DNS MX Check)",
            "type": "boolean",
            "description": "Perform DNS MX record validation on enriched emails.",
            "default": false
          },
          "websiteContentScraper": {
            "title": "Scrape Full Website Markdown for Organic Results",
            "type": "boolean",
            "description": "Fetch each organic result URL and convert its content into clean GFM Markdown.",
            "default": false
          },
          "forceExactMatch": {
            "title": "Force Exact Match",
            "type": "boolean",
            "description": "Wrap query in quotes for exact phrase matching.",
            "default": false
          },
          "site": {
            "title": "Site Restriction (site:)",
            "type": "string",
            "description": "Restrict results to a specific domain (e.g. 'linkedin.com/in')."
          },
          "relatedToSite": {
            "title": "Related To Site (related:)",
            "type": "string",
            "description": "Find sites related to a domain."
          },
          "wordsInTitle": {
            "title": "Words In Title (intitle:)",
            "type": "array",
            "description": "Require words in page title.",
            "items": {
              "type": "string"
            }
          },
          "wordsInText": {
            "title": "Words In Text (intext:)",
            "type": "array",
            "description": "Require words in page body text.",
            "items": {
              "type": "string"
            }
          },
          "wordsInUrl": {
            "title": "Words In URL (inurl:)",
            "type": "array",
            "description": "Require words in URL.",
            "items": {
              "type": "string"
            }
          },
          "fileTypes": {
            "title": "File Types (filetype:)",
            "type": "array",
            "description": "Filter by file extensions (e.g. ['pdf', 'xlsx']).",
            "items": {
              "type": "string"
            }
          },
          "quickDateRange": {
            "title": "Quick Date Range",
            "type": "string",
            "description": "Google tbs date filter (e.g. 'd' past 24h, 'w' past week, 'm' past month, 'y' past year)."
          },
          "beforeDate": {
            "title": "Before Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Filter results published before date."
          },
          "afterDate": {
            "title": "After Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Filter results published after date."
          },
          "mobileResults": {
            "title": "Mobile SERP User-Agent",
            "type": "boolean",
            "description": "Use mobile iPhone User-Agent instead of desktop.",
            "default": false
          },
          "saveHtml": {
            "title": "Include Raw SERP HTML in Output",
            "type": "boolean",
            "description": "Include raw HTML string in each dataset item.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy settings.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}