{
  "openapi": "3.0.1",
  "info": {
    "title": "Unified Serper.dev ETL Processor",
    "description": "Find businesses via Google Maps, enrich via Google Search. Uses Serper.dev to sweep cities with geo-grids, then runs customizable search queries to find owners, LinkedIn profiles, or any data you need. Apply quality filters and export clean, deduplicated leads ready for outreach.",
    "version": "9.0",
    "x-build-id": "dGFKAPvgwWmafKgsQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tuguidragos~unified-serper-dev-etl-processor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tuguidragos-unified-serper-dev-etl-processor",
        "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/tuguidragos~unified-serper-dev-etl-processor/runs": {
      "post": {
        "operationId": "runs-sync-tuguidragos-unified-serper-dev-etl-processor",
        "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/tuguidragos~unified-serper-dev-etl-processor/run-sync": {
      "post": {
        "operationId": "run-sync-tuguidragos-unified-serper-dev-etl-processor",
        "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": [
          "serperApiKey",
          "cities",
          "keywords"
        ],
        "properties": {
          "serperApiKey": {
            "title": "Serper.dev API Key",
            "type": "string",
            "description": "Your API key from serper.dev (32-64 hex characters)"
          },
          "keywords": {
            "title": "Search Keywords",
            "type": "array",
            "description": "Types of businesses to search for (one per line)",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Target Cities",
            "type": "array",
            "description": "Cities to search in (one per line)",
            "items": {
              "type": "string"
            }
          },
          "gl": {
            "title": "Country Code",
            "enum": [
              "ar",
              "at",
              "au",
              "be",
              "br",
              "ca",
              "ch",
              "cl",
              "cn",
              "co",
              "cz",
              "de",
              "dk",
              "eg",
              "es",
              "fi",
              "fr",
              "gb",
              "gr",
              "hk",
              "hu",
              "id",
              "ie",
              "il",
              "in",
              "it",
              "jp",
              "ke",
              "kr",
              "mx",
              "my",
              "ng",
              "nl",
              "no",
              "nz",
              "pe",
              "ph",
              "pl",
              "pt",
              "ro",
              "ru",
              "sa",
              "se",
              "sg",
              "th",
              "tr",
              "tw",
              "ua",
              "us",
              "vn",
              "za"
            ],
            "type": "string",
            "description": "Google country code for localized results",
            "default": "de"
          },
          "hl": {
            "title": "Language",
            "enum": [
              "ar",
              "cs",
              "da",
              "de",
              "el",
              "en",
              "es",
              "fi",
              "fr",
              "he",
              "hi",
              "hu",
              "id",
              "it",
              "ja",
              "ko",
              "ms",
              "nl",
              "no",
              "pl",
              "pt",
              "ro",
              "ru",
              "sv",
              "th",
              "tr",
              "uk",
              "vi",
              "zh-cn",
              "zh-tw"
            ],
            "type": "string",
            "description": "Language for search results",
            "default": "de"
          },
          "perCityTarget": {
            "title": "Businesses per city",
            "minimum": 10,
            "maximum": 10000,
            "type": "integer",
            "description": "Target number of businesses to collect in each city",
            "default": 50
          },
          "maxBusinessesTotal": {
            "title": "Maximum total businesses",
            "minimum": 10,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum businesses to collect across all cities",
            "default": 50
          },
          "radiusKm": {
            "title": "Search radius (km)",
            "minimum": 1,
            "maximum": 100,
            "type": "number",
            "description": "Distance from city center to search",
            "default": 20
          },
          "stepKm": {
            "title": "Grid step size (km)",
            "minimum": 0.5,
            "maximum": 20,
            "type": "number",
            "description": "Size of grid cells for geo-search. Smaller = more precise but slower",
            "default": 5
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Filter businesses by minimum rating (0 = no filter)",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum reviews",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Filter businesses by minimum number of reviews (0 = no filter)",
            "default": 0
          },
          "mustHaveWebsite": {
            "title": "Require website",
            "type": "boolean",
            "description": "Only include businesses with a website",
            "default": true
          },
          "includeUnratedBusinesses": {
            "title": "Include unrated businesses",
            "type": "boolean",
            "description": "Include businesses with no rating/reviews even when minRating or minReviews filters are set",
            "default": true
          },
          "enableMaps": {
            "title": "Enable Maps API",
            "type": "boolean",
            "description": "Use Serper Maps API to discover businesses",
            "default": true
          },
          "enableSearchEnrichment": {
            "title": "Enable Search API",
            "type": "boolean",
            "description": "Use Serper Search API for additional data enrichment (LinkedIn profiles, owner names). Slower but richer data.",
            "default": false
          },
          "searchNum": {
            "title": "Results per search query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of search results to retrieve per search query (>10 uses 2 credits)",
            "default": 5
          },
          "maxSearchQueriesPerBusiness": {
            "title": "Max queries per business",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum LinkedIn searches per business",
            "default": 10
          },
          "maxSearchQueriesTotal": {
            "title": "Total search limit",
            "minimum": 10,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum total LinkedIn searches across all businesses",
            "default": 800
          },
          "searchTemplates": {
            "title": "Custom search templates",
            "type": "array",
            "description": "Customize LinkedIn / owner search queries. Placeholders: {{name}}, {{city}}, {{site}}, {{category}}",
            "items": {
              "type": "string"
            },
            "default": [
              "site:linkedin.com/in/ \"{{name}}\" (intitle:\"CEO\" OR intitle:\"Founder\" OR intitle:\"Owner\") -intitle:\"Assistant\"",
              "site:linkedin.com/in/ \"{{name}}\" (intitle:\"CMO\" OR intitle:\"Marketing Director\" OR intitle:\"Head of Marketing\") -intitle:\"Intern\"",
              "site:linkedin.com/in/ \"{{name}}\" (\"{{city}}\") (intitle:\"Director\" OR intitle:\"Manager\")",
              "site:linkedin.com/in/ \"{{name}}\" (intitle:\"General Manager\" OR intitle:\"Administrator\") -jobs",
              "site:linkedin.com/in/ \"{{name}}\" (intitle:\"Director\" OR intitle:\"VP\") -intitle:\"Recruiter\" -intitle:\"HR\"",
              "site:linkedin.com/in/ \"{{name}}\" (intitle:\"CEO\" OR intitle:\"Founder\") \"posted\" after:2024-01-01"
            ]
          },
          "rawSearchResults": {
            "title": "Raw Search Results Mode",
            "type": "boolean",
            "description": "Developer mode: Returns raw search results without processing. Disables website scraping and enrichment logic. Ideal for LLM analysis.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}