{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Condensed SERP Scraper",
    "description": "Extracts structured public Google Search content including organic result metadata, visible images and rich snippets, AI Overview citations, video cards, People also ask answers, and related searches.",
    "version": "1.0",
    "x-build-id": "n9P3FQ0xb9QG2uNqh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/googleapi~google-condensed-serp-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-googleapi-google-condensed-serp-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/googleapi~google-condensed-serp-scraper/runs": {
      "post": {
        "operationId": "runs-sync-googleapi-google-condensed-serp-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/googleapi~google-condensed-serp-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-googleapi-google-condensed-serp-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": "Queries",
            "maxItems": 50,
            "type": "array",
            "description": "Search phrases used to build public Google Search URLs. Defaults to machine learning when no custom URL is supplied.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            },
            "default": [
              "machine learning"
            ]
          },
          "query": {
            "title": "Query (alias)",
            "maxLength": 300,
            "type": "string",
            "description": "Compatibility alias for one search phrase."
          },
          "searchQuery": {
            "title": "Search query (alias)",
            "maxLength": 300,
            "type": "string",
            "description": "Compatibility alias for one search phrase."
          },
          "startUrls": {
            "title": "Google Search URLs",
            "maxItems": 50,
            "type": "array",
            "description": "Approved public HTTPS Google /search URLs. URL input fields are merged and limited to 50 unique URLs; these take precedence over generated query URLs.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            },
            "default": []
          },
          "sourceUrls": {
            "title": "Source URLs (alias)",
            "maxItems": 50,
            "type": "array",
            "description": "Compatibility alias for approved Google Search URLs; URL aliases share a limit of 50 unique URLs.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "urls": {
            "title": "URLs (legacy alias)",
            "maxItems": 50,
            "type": "array",
            "description": "Legacy alias for approved Google Search URLs; URL aliases share a limit of 50 unique URLs.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "url": {
            "title": "URL (single alias)",
            "maxLength": 2000,
            "type": "string",
            "description": "Compatibility alias for one approved Google Search URL; URL aliases share a limit of 50 unique URLs."
          },
          "maxItems": {
            "title": "Maximum condensed pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Global maximum number of normal condensed SERP records emitted.",
            "default": 1
          },
          "maxPages": {
            "title": "Maximum pages per source",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Bounded number of public Google Search pages to inspect per source.",
            "default": 1
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "One-based result page. Google uses a ten-result start offset.",
            "default": 1
          },
          "maxResults": {
            "title": "Maximum web results",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum organic web results retained in each condensed record.",
            "default": 20
          },
          "maxVideos": {
            "title": "Maximum videos",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Maximum public video results retained in each condensed record.",
            "default": 10
          },
          "maxPeopleAlsoAsk": {
            "title": "Maximum People also ask",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum public People also ask questions retained.",
            "default": 20
          },
          "maxRelated": {
            "title": "Maximum related searches",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum public related-search suggestions retained.",
            "default": 20
          },
          "maxImages": {
            "title": "Maximum result images",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum Google-exposed image URLs retained per result card. Set to 0 to omit images.",
            "default": 10
          },
          "includeOrganic": {
            "title": "Include web results",
            "type": "boolean",
            "description": "Keep structured organic web results.",
            "default": true
          },
          "includeSponsoredResults": {
            "title": "Include sponsored results",
            "type": "boolean",
            "description": "Keep public sponsored search-result cards, including advertiser and visible ad copy.",
            "default": true
          },
          "includeVideos": {
            "title": "Include videos",
            "type": "boolean",
            "description": "Keep public video result cards.",
            "default": true
          },
          "includePeopleAlsoAsk": {
            "title": "Include People also ask",
            "type": "boolean",
            "description": "Keep public question suggestions.",
            "default": true
          },
          "includeRelatedSearches": {
            "title": "Include related searches",
            "type": "boolean",
            "description": "Keep public related-search suggestions.",
            "default": true
          },
          "includeAiOverview": {
            "title": "Include AI Overview",
            "type": "boolean",
            "description": "Keep the public AI Overview text when the page exposes it.",
            "default": true
          },
          "includeImages": {
            "title": "Include result images",
            "type": "boolean",
            "description": "Retain favicon and thumbnail URLs when public Google result cards expose them.",
            "default": true
          },
          "acceptLanguage": {
            "title": "Accept-Language",
            "maxLength": 120,
            "type": "string",
            "description": "Optional language preference for the public request.",
            "default": "en-US,en;q=0.8"
          },
          "locale": {
            "title": "Locale",
            "maxLength": 20,
            "type": "string",
            "description": "hl query value used for generated Google Search URLs.",
            "default": "en"
          },
          "safeSearch": {
            "title": "SafeSearch",
            "type": "boolean",
            "description": "Add Google's active SafeSearch parameter to generated URLs.",
            "default": true
          },
          "renderJavaScript": {
            "title": "Render JavaScript fallback",
            "type": "boolean",
            "description": "Use ordinary Playwright rendering as the primary transport for Google's dynamic Search page. False selects direct static HTTP. Access boundaries are not retried; no stealth or CAPTCHA handling is used.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings reach all browser requests when renderJavaScript is true (the default). Static HTTP mode remains direct and ignores this compatibility setting. Credentials are never logged."
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "One-based starting Google result page. page and startPage are compatibility aliases and must match if both are provided.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}