{
  "openapi": "3.0.1",
  "info": {
    "title": "No Website Maps Scraper",
    "version": "0.0",
    "x-build-id": "rz0QwXp4LI4tfkAra"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jerryboysnorr~no-website-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jerryboysnorr-no-website-maps-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/jerryboysnorr~no-website-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jerryboysnorr-no-website-maps-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/jerryboysnorr~no-website-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jerryboysnorr-no-website-maps-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",
        "required": [
          "area"
        ],
        "properties": {
          "area": {
            "title": "📍 Area",
            "type": "string",
            "description": "The city, town or region to search in, for example <b>Leiden</b>. You can also give a neighbourhood (<b>Leiden Noord</b>) or a full location (<b>Leiden, Netherlands</b>)."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Added behind the area so Google Maps knows which country you mean. Ignored when the area already contains a comma. Leave empty to search the area exactly as typed.",
            "default": "Netherlands"
          },
          "searchTerms": {
            "title": "🔍 Search terms",
            "type": "array",
            "description": "Business types to search for in the area, for example <b>kapper</b> or <b>loodgieter</b>. <b>Leave empty</b> to sweep a built-in list of ~125 common Dutch business categories. More terms means better coverage but a higher cost.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "enum": [
              "nl",
              "en",
              "de",
              "fr",
              "es",
              "it"
            ],
            "type": "string",
            "description": "Google Maps interface language. Affects the wording of the business category and the address format.",
            "default": "nl"
          },
          "includeSocialMediaOnly": {
            "title": "Include businesses with only a social media page",
            "type": "boolean",
            "description": "Off (recommended): Google Maps only returns businesses with no link at all, so you only pay for actual leads. On: a business whose only link is a Facebook, Instagram or platform page (Thuisbezorgd, Treatwell, ...) is exported too, but then every place is charged, including the many that already have a website. Expect 10-20x higher cost per lead.",
            "default": false
          },
          "skipClosedPlaces": {
            "title": "Skip closed businesses",
            "type": "boolean",
            "description": "Leave out places that Google Maps marks as permanently or temporarily closed.",
            "default": true
          },
          "maxPlacesTotal": {
            "title": "💸 Max places to check in total",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on how many places the Google Maps Scraper returns (and charges for). This is the main cost driver: about $0.005 per place, so 500 places ≈ $2.50. With social media off, every returned place is a lead.",
            "default": 500
          },
          "maxPlacesPerSearchTerm": {
            "title": "Max places per search term",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Max places the Google Maps Scraper returns per search term. With social media off, only businesses without a website are returned, so this is the max number of leads per search term.",
            "default": 100
          },
          "maxLeads": {
            "title": "Max leads to export",
            "minimum": 0,
            "type": "integer",
            "description": "Stop once this many businesses without a website have been found. Set to 0 for no limit.",
            "default": 0
          },
          "maxCostPerMapsRunUsd": {
            "title": "Max cost per Google Maps run (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Extra safety net: the platform stops a single Google Maps Scraper run once it has charged this much. Set to 0 to disable.",
            "default": 0
          },
          "outputFileName": {
            "title": "Excel file name",
            "type": "string",
            "description": "Name of the .xlsx file in the key-value store. Unsupported characters are replaced with a dash.",
            "default": "leads-zonder-website.xlsx"
          },
          "searchTermsPerRun": {
            "title": "Search terms per Google Maps run",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Search terms are bundled into batches; each batch is one Google Maps Scraper run. Smaller batches give more frequent intermediate results, larger batches pay the $0.007 start fee less often.",
            "default": 10
          },
          "googleMapsActorMemoryMbytes": {
            "title": "Memory for the Google Maps Scraper (MB)",
            "minimum": 1024,
            "maximum": 8192,
            "type": "integer",
            "description": "Memory in MB given to each Google Maps Scraper run. Lower it to 1024 or 2048 if you hit the memory limit of your Apify plan.",
            "default": 4096
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}