{
  "openapi": "3.0.1",
  "info": {
    "title": "Google AI Overviews Scraper & API ($4/1k) ✨",
    "description": "⚡ Scrape Google AI Overviews ($4/1k): Markdown, unwrapped citations, AEO brand audits, organic ranks & PAA globally. Export JSON, CSV, or Excel.",
    "version": "1.0",
    "x-build-id": "DGYhzIgAbqsbh1nPD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unitbytes~google-ai-overviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unitbytes-google-ai-overviews-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/unitbytes~google-ai-overviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unitbytes-google-ai-overviews-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/unitbytes~google-ai-overviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unitbytes-google-ai-overviews-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",
            "type": "array",
            "description": "List of Google Search keywords, questions, or comparison queries to extract AI Overviews, unwrapped source citations, Page 1 organic rankings, People Also Ask, and AEO brand audits for. Also accepts direct Google Search URLs.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Search URLs (Optional)",
            "type": "array",
            "description": "Optional list of direct Google Search URLs (e.g. 'https://www.google.com/search?q=best+crm+for+small+business&gl=us'). Combined and deduplicated automatically with Search Queries.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxQueries": {
            "title": "Max Queries Limit (Budget Cap)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of unique search queries to process in this run (1 to 1,000). Execution stops cleanly once this cap is reached.",
            "default": 25
          },
          "country": {
            "title": "Country (ISO 3166-1)",
            "type": "string",
            "description": "Two-letter ISO 3166-1 country code for localized Google Search & AI Overviews across 150+ countries (e.g. 'US', 'GB', 'DE', 'FR', 'CA', 'AU', 'IN', 'BR', 'JP', 'ES', 'IT', 'NL', 'SG', 'AE'). Common aliases like 'USA' or 'UK' are normalized automatically; if left empty when using `startUrls` (e.g. `google.co.uk`), the country is auto-inferred from the URL."
          },
          "language": {
            "title": "Language Override (Optional)",
            "type": "string",
            "description": "Optional ISO / BCP-47 interface language override (e.g. 'en', 'de', 'fr', 'es', 'ja', 'pt-BR'). Recommended: leave empty ('') so Google Search automatically serves results and AI Overviews in the natural primary language of the selected country.",
            "default": ""
          },
          "location": {
            "title": "City / Region Geo-Targeting (Optional)",
            "type": "string",
            "description": "Optional canonical city, state, or regional location string for hyper-local AI Overviews and organic rankings (e.g. 'Austin, Texas, United States', 'London, England, United Kingdom', 'Toronto, Ontario, Canada').",
            "default": ""
          },
          "timeRange": {
            "title": "SERP Recency Filter (Time Range)",
            "enum": [
              "any",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Server-side Google Search recency filter. Note: Keep set to 'any' when capturing AI Overviews — applying recency filters ('hour', 'day', 'week', 'month', 'year') restricts Page 1 organic SERP results by publication date and typically causes Google upstream to suppress AI Overviews (`hasAiOverview: false`) on most queries.",
            "default": "any"
          },
          "targetDomains": {
            "title": "Target Brand Domains (AEO Citation Audit)",
            "type": "array",
            "description": "Optional list of your brand or client root domains (e.g. ['hubspot.com', 'pipedrive.com']) to compute `brandCitationAudit`: classifies each query as 'cited', 'competitor_cited', 'overview_no_citations', or 'no_overview', lists exact `citedTargetUrls` and `topCompetitorDomains`, and cross-references your Page 1 `organicTargetRanks` in a single pass.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeOrganicResults": {
            "title": "Include Page 1 Organic SERP Rankings",
            "type": "boolean",
            "description": "Include structured Page 1 organic search results (`rank`, `title`, `url`, `domain`, `displayedUrl`, `snippet`) alongside the AI Overview for side-by-side SEO vs. AEO correlation.",
            "default": true
          },
          "includePeopleAlsoAsk": {
            "title": "Include People Also Ask (PAA)",
            "type": "boolean",
            "description": "Include related 'People Also Ask' questions and answers surfaced on the Google SERP.",
            "default": true
          },
          "resolveUrls": {
            "title": "Unwrap Canonical Citation & SERP URLs",
            "type": "boolean",
            "description": "Unwraps Google redirect wrappers into clean, direct canonical external destination URLs across AI Overview citations and top Page 1 organic results.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Optional)",
            "type": "object",
            "description": "Managed residential proxies are automatically configured by default on Apify Cloud. Optionally supply custom HTTP/SOCKS5 `proxyUrls` if you prefer to route requests through your own proxy gateway."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}