{
  "openapi": "3.0.1",
  "info": {
    "title": "Bing Maps Scraper — Business Data & Leads",
    "description": "Turn Bing Maps into a clean local-business dataset. Search keywords across cities, map whole markets by category, enrich with addresses, opening hours, emails & socials, and stream results in real time to your dataset or webhook. 10,000+ businesses per run — ready for CRM, Sheets & AI.",
    "version": "0.0",
    "x-build-id": "7z7Hx5kjyCDuJhKNQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~Bing-Maps-Real-Time-Data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-Bing-Maps-Real-Time-Data",
        "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/b2b_leads~Bing-Maps-Real-Time-Data/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-Bing-Maps-Real-Time-Data",
        "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/b2b_leads~Bing-Maps-Real-Time-Data/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-Bing-Maps-Real-Time-Data",
        "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": {
          "enableSearch": {
            "title": "Keyword search",
            "type": "boolean",
            "description": "Search Bing Maps by keyword and location. Enabled by default.",
            "default": true
          },
          "searchTasks": {
            "title": "Search tasks",
            "type": "array",
            "description": "Add one row per search: a keyword plus a city or area. Note: this is a paid Actor — free (non-paying) Apify accounts receive a free sample of 2 businesses with an upgrade reminder, while paid plans get the full dataset.",
            "items": {
              "type": "object",
              "properties": {
                "query": {
                  "title": "Keyword",
                  "type": "string",
                  "description": "What to search for (e.g. \"coffee shops\", \"plumbers\", \"hotels\" or a business name).",
                  "editor": "textfield"
                },
                "location": {
                  "title": "Location",
                  "type": "string",
                  "description": "Where to search. A city (\"Seattle, WA\"), a neighbourhood (\"downtown Austin\"), or a postal code (\"78701\") — a postal code is the most precise text option and returns businesses clustered in that area.",
                  "editor": "textfield"
                },
                "placesPerQuery": {
                  "title": "Max businesses",
                  "type": "integer",
                  "description": "Maximum businesses for this task. Uses the default below when omitted.",
                  "minimum": 1,
                  "editor": "number"
                },
                "latitude": {
                  "title": "Centre latitude",
                  "type": "number",
                  "description": "Optional exact centre. Supply this together with longitude to get an exact circle (and a distance on every row). Copy coordinates from Bing Maps or any map tool.",
                  "editor": "number"
                },
                "longitude": {
                  "title": "Centre longitude",
                  "type": "number",
                  "description": "Optional exact centre longitude — required when latitude or radiusMeters is set.",
                  "editor": "number"
                },
                "radiusMeters": {
                  "title": "Radius (metres)",
                  "type": "integer",
                  "description": "Keep only businesses within this many metres of the centre above. Requires both coordinates; without them the run fails with a clear message rather than returning un-filtered results. Every kept row includes distanceMeters.",
                  "minimum": 50,
                  "maximum": 100000,
                  "editor": "number"
                }
              },
              "required": [
                "query"
              ]
            }
          },
          "placesPerQuery": {
            "title": "Default max businesses per task",
            "minimum": 1,
            "type": "integer",
            "description": "Default maximum businesses per search task. Override per task in the list above.",
            "default": 20
          },
          "maxPagesPerQuery": {
            "title": "Max depth per task",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How deep this Actor collects for each task. The default is generous — lower it for quick test runs.",
            "default": 50
          },
          "enableNearby": {
            "title": "Nearby discovery",
            "type": "boolean",
            "description": "Discover businesses by category around one location, without typing keywords yourself.",
            "default": false
          },
          "nearbyCategories": {
            "title": "Categories",
            "type": "array",
            "description": "Business categories to discover around the location below. All are used when none are selected.",
            "items": {
              "type": "string",
              "enum": [
                "restaurants",
                "hotels",
                "cafes",
                "bars",
                "gyms",
                "dentists",
                "doctors",
                "pharmacies",
                "gas_stations",
                "parking",
                "shopping",
                "beauty_salons",
                "auto_repair",
                "lawyers",
                "real_estate",
                "schools",
                "banks",
                "hospitals"
              ],
              "enumTitles": [
                "Restaurants",
                "Hotels",
                "Cafes",
                "Bars",
                "Gyms",
                "Dentists",
                "Doctors",
                "Pharmacies",
                "Gas stations",
                "Parking",
                "Shopping",
                "Beauty salons",
                "Auto repair",
                "Lawyers",
                "Real estate",
                "Schools",
                "Banks",
                "Hospitals"
              ]
            },
            "default": [
              "restaurants",
              "hotels",
              "cafes",
              "dentists",
              "gyms"
            ]
          },
          "nearbyLocation": {
            "title": "Location",
            "type": "string",
            "description": "City or area for nearby discovery (e.g. \"Miami, FL\").",
            "default": ""
          },
          "placesPerCategory": {
            "title": "Businesses per category",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum businesses to collect for each selected category.",
            "default": 20
          },
          "enableScrapeByUrl": {
            "title": "Scrape business links",
            "type": "boolean",
            "description": "Resolve specific Bing Maps business links into the same enriched records as a search. Turns on automatically when you paste links below — untick to ignore the list.",
            "default": false
          },
          "scrapeUrls": {
            "title": "Bing Maps business links",
            "type": "array",
            "description": "One link per business, e.g. https://www.bing.com/maps?q=Business+Name&filters=ypid:\"…\". Links that are not Bing Maps business links are skipped with a note in the log.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only businesses rated at least this high (0–5). Leave empty for no rating filter."
          },
          "requirePhone": {
            "title": "Require a phone number",
            "type": "boolean",
            "description": "Only keep businesses that list a phone number.",
            "default": false
          },
          "requireWebsite": {
            "title": "Require a website",
            "type": "boolean",
            "description": "Only keep businesses that list a website.",
            "default": false
          },
          "categoryFilter": {
            "title": "Category contains",
            "type": "string",
            "description": "Keep only businesses whose category contains this text (e.g. \"dentist\", \"hotel\", \"plumb\").",
            "default": ""
          },
          "excludeClosed": {
            "title": "Exclude closed businesses",
            "type": "boolean",
            "description": "Skip permanently and temporarily closed businesses.",
            "default": true
          },
          "fetchPlaceDetails": {
            "title": "Fetch address breakdown & opening hours",
            "type": "boolean",
            "description": "Add structured street/city/state/postal-code fields and the weekly opening-hours schedule to each business. Adds a little extra time and cost per business.",
            "default": true
          },
          "fetchEmails": {
            "title": "Find emails & social profiles",
            "type": "boolean",
            "description": "Visit the business website and discover contact emails plus social profiles (adds emails[] and socials[]). Best opt-in for lead generation and outreach lists.",
            "default": false
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language for business names and addresses (e.g. en, es, de).",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code used for localized results and proxy routing (e.g. us, uk, ca).",
            "default": "us"
          },
          "maxItems": {
            "title": "Max total businesses",
            "minimum": 1,
            "type": "integer",
            "description": "Global cap on dataset rows for this run. Note: on the Apify free plan only a small free sample is exported (2 businesses) — a paid plan is required for the full dataset. Paying users are never capped by the plan; only this setting applies.",
            "default": 10000
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. Every record is always saved to the run's dataset — this webhook is an ADDITIONAL real-time push to your own system (CRM, Slack incoming webhook, Zapier, Make, Google Sheets).",
            "default": ""
          },
          "webhookFormat": {
            "title": "Webhook format",
            "enum": [
              "json",
              "slack"
            ],
            "type": "string",
            "description": "json = full record object; slack = Slack-friendly message payload.",
            "default": "json"
          },
          "proxyConfiguration": {
            "title": "Proxy settings",
            "type": "object",
            "description": "Apify residential proxy (US) is enabled by default for reliable Bing Maps collection.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}