{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Brasil: Leads com CNPJ, WhatsApp e E-mail",
    "description": "Leads do Google Maps no Brasil com CNPJ para prospecção: empresas por termo e cidade ou UF, com e-mail, WhatsApp e telefones do site, mais razão social, situação, CNAE, porte, Simples/MEI e sócios da Receita Federal. Google Maps scraper, Brazil leads data. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "WvJtfUTq4e6QAHj3w"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~google-maps-brasil-cnpj-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-google-maps-brasil-cnpj-leads",
        "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/steadyscrape~google-maps-brasil-cnpj-leads/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-google-maps-brasil-cnpj-leads",
        "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/steadyscrape~google-maps-brasil-cnpj-leads/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-google-maps-brasil-cnpj-leads",
        "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": [
          "searchTerms"
        ],
        "properties": {
          "searchTerms": {
            "title": "Termos de busca",
            "maxItems": 20,
            "type": "array",
            "description": "O que você digitaria no Google Maps, em português: \"contabilidade\", \"dentista\", \"loja de roupas\", \"academia\". Cada termo é buscado em cada local.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Cidades ou locais",
            "maxItems": 50,
            "type": "array",
            "description": "Cidades ou bairros como no Google Maps (\"Curitiba, PR\", \"Moema, São Paulo\") ou \"latitude, longitude\". Use este campo, o de estados, ou os dois.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Estados (UF)",
            "type": "array",
            "description": "Busca nas maiores cidades de cada estado (população do Censo 2022), quantas você pedir abaixo.",
            "items": {
              "type": "string",
              "enum": [
                "AC",
                "AL",
                "AP",
                "AM",
                "BA",
                "CE",
                "DF",
                "ES",
                "GO",
                "MA",
                "MT",
                "MS",
                "MG",
                "PA",
                "PB",
                "PR",
                "PE",
                "PI",
                "RJ",
                "RN",
                "RS",
                "RO",
                "RR",
                "SC",
                "SP",
                "SE",
                "TO"
              ],
              "enumTitles": [
                "AC — Acre",
                "AL — Alagoas",
                "AP — Amapá",
                "AM — Amazonas",
                "BA — Bahia",
                "CE — Ceará",
                "DF — Distrito Federal",
                "ES — Espírito Santo",
                "GO — Goiás",
                "MA — Maranhão",
                "MT — Mato Grosso",
                "MS — Mato Grosso do Sul",
                "MG — Minas Gerais",
                "PA — Pará",
                "PB — Paraíba",
                "PR — Paraná",
                "PE — Pernambuco",
                "PI — Piauí",
                "RJ — Rio de Janeiro",
                "RN — Rio Grande do Norte",
                "RS — Rio Grande do Sul",
                "RO — Rondônia",
                "RR — Roraima",
                "SC — Santa Catarina",
                "SP — São Paulo",
                "SE — Sergipe",
                "TO — Tocantins"
              ]
            }
          },
          "citiesPerState": {
            "title": "Cidades por estado",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Quantas das maiores cidades de cada estado escolhido são buscadas.",
            "default": 10
          },
          "radius": {
            "title": "Raio (km)",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "Só entram empresas a esta distância do centro de cada local. Um raio grande numa cidade grande leva tempo: veja «Limites» no README.",
            "default": 10
          },
          "maxLeadsPerSearch": {
            "title": "Máximo de leads por busca",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Leads entregues (e cobrados) por termo × local; com e sem CNPJ contam juntos.",
            "default": 100
          },
          "onlyWithCnpj": {
            "title": "Só leads com CNPJ",
            "type": "boolean",
            "description": "Entrega só as empresas cujo site mostra um CNPJ registrado no mesmo município. Sem isto, as que não mostram CNPJ também vêm, com e-mail ou WhatsApp e mais baratas. Qualquer filtro abaixo liga esta opção.",
            "default": false
          },
          "onlyActiveCompanies": {
            "title": "Só empresas ativas",
            "type": "boolean",
            "description": "Deixa de fora um CNPJ que a Receita lista como baixado, inapto ou suspenso (não é cobrado).",
            "default": true
          },
          "companySizes": {
            "title": "Porte",
            "type": "array",
            "description": "Só empresas destes portes, pelo cadastro da Receita.",
            "items": {
              "type": "string",
              "enum": [
                "MEI",
                "ME",
                "EPP",
                "DEMAIS"
              ],
              "enumTitles": [
                "MEI (microempreendedor individual)",
                "ME (microempresa, sem MEI)",
                "EPP (empresa de pequeno porte)",
                "Demais (médias e grandes)"
              ]
            }
          },
          "cnaes": {
            "title": "CNAE principal",
            "type": "array",
            "description": "Só empresas cuja atividade principal começa com um destes códigos: \"6920-6/01\", \"6920601\" ou só o grupo, \"69\".",
            "items": {
              "type": "string"
            }
          },
          "openedAfter": {
            "title": "Aberta a partir de",
            "type": "string",
            "description": "Só empresas com data de abertura nesta data ou depois (AAAA-MM-DD)."
          },
          "requirePhone": {
            "title": "Só com telefone no Google Maps",
            "type": "boolean",
            "description": "Deixa de fora empresas sem telefone no perfil do Google Maps.",
            "default": false
          },
          "minRating": {
            "title": "Nota mínima",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Só empresas com esta nota no Google ou mais (0 a 5)."
          },
          "minReviews": {
            "title": "Mínimo de avaliações",
            "minimum": 0,
            "type": "integer",
            "description": "Só empresas com pelo menos este número de avaliações no Google."
          },
          "categoryFilter": {
            "title": "Categorias para manter",
            "type": "array",
            "description": "Só empresas cuja categoria no Google Maps contém uma destas palavras (\"contabilidade\", \"dentista\"). Vazio: qualquer categoria.",
            "items": {
              "type": "string"
            }
          },
          "includeClosed": {
            "title": "Incluir empresas fechadas",
            "type": "boolean",
            "description": "Inclui perfis que o Google Maps marca como fechados permanentemente.",
            "default": false
          },
          "onlyNewLeads": {
            "title": "Só leads novos",
            "type": "boolean",
            "description": "Pula as empresas entregues em execuções anteriores desta conta com esta opção ligada, e não as cobra de novo.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}