{
  "openapi": "3.0.1",
  "info": {
    "title": "Baidu Maps Scraper — POIs, Phones, Ratings & Coordinates",
    "description": "Baidu Maps (百度地图) scraper: export places from any Chinese city, district or radius with address, admin codes, phones, categories, rating, price per person, reviews, opening hours and WGS-84 / GCJ-02 / BD-09 coordinates. No 200-result cap, no login, no API key.",
    "version": "1.0",
    "x-build-id": "wCB9OYSG8xd42Fd7X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~baidu-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-baidu-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/logiover~baidu-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-baidu-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/logiover~baidu-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-baidu-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",
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "What to look for, as you would type it into Baidu Maps. Chinese keywords match best: 咖啡 (coffee), 餐厅 or 美食 (restaurants, food), 酒店 (hotels), 银行 (banks), 医院 (hospitals), 超市 (supermarkets), 加油站 (gas stations), 健身 (gyms), 药店 (pharmacies), or a brand such as 星巴克 (Starbucks) or 瑞幸咖啡 (Luckin). English brand names work too. Each keyword is searched in every city / area.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities, districts or provinces",
            "type": "array",
            "description": "Where to search. A city in Chinese, English or pinyin (北京 / Beijing / beijing, 上海, Shenzhen, Xi'an, Hong Kong), a Baidu city code (131 = Beijing) or a 6-digit admin code (110000), a district or county in Chinese (海淀区, 北京市朝阳区, 浦东新区, 昆山市), or a province (广东省 / Guangdong = every city in it). Shared English names pick the bigger city and say so in the log: write \"Suzhou, Anhui\" or 宿州 for the other one.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max places",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many unique places across all searches. 0 = no limit (every matching place in your areas — a big city can hold tens of thousands for broad keywords like 美食). Big runs need a big enough \"Maximum cost per run\".",
            "default": 1000
          },
          "coverage": {
            "title": "Coverage",
            "enum": [
              "full",
              "top"
            ],
            "type": "string",
            "description": "\"Whole area\" reads Baidu's own top results first and then splits the city (or district, circle, map view) into map circles until every circle is complete — thousands of places. \"Top results only\" returns just Baidu's own ranking for each keyword and city (what the app lists, ~100-200 places), which is the fastest.",
            "default": "full"
          },
          "includeDetails": {
            "title": "Add details from each place page",
            "type": "boolean",
            "description": "Opens every place's Baidu page and adds description, aliases, postcode, the date Baidu created the place, detail tags, hotel category / facilities / services, nearby landmarks, booking links, sub-ratings, favourites and navigation counts. One extra request per place (about half the speed).",
            "default": false
          },
          "lat": {
            "title": "Latitude (nearby search)",
            "type": "string",
            "description": "Optional: search a circle around a point instead of (or in addition to) cities, e.g. 39.9087 for Tiananmen. Use with longitude, radius and the coordinate system of your point."
          },
          "lng": {
            "title": "Longitude (nearby search)",
            "type": "string",
            "description": "Longitude of the circle's centre, e.g. 116.3975."
          },
          "radiusMeters": {
            "title": "Radius (metres)",
            "minimum": 50,
            "maximum": 200000,
            "type": "integer",
            "description": "Radius of the nearby circle, 50 m to 200 km. Every matching place inside the circle is returned (the circle is split as needed).",
            "default": 1000
          },
          "coordinateSystem": {
            "title": "Coordinate system of your point",
            "enum": [
              "wgs84",
              "gcj02",
              "bd09"
            ],
            "type": "string",
            "description": "WGS-84 is GPS / Google Maps outside China / OpenStreetMap. GCJ-02 is what Amap (Gaode), Tencent Maps and Apple Maps show in China. BD-09 is Baidu's own (what you copy from Baidu Maps).",
            "default": "wgs84"
          },
          "uids": {
            "title": "Place uids",
            "type": "array",
            "description": "Optional: look up places you already know by their Baidu uid (24 hexadecimal characters, e.g. 261d9a8f181b11948c1a894d — the uid= value in a Baidu Maps place link). Useful to refresh a list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Baidu Maps links",
            "type": "array",
            "description": "Optional: paste Baidu Maps links. Place links (…?uid=…, poiShareUid=…) are looked up; search links (map.baidu.com/search/咖啡/@x,y,13z?…&wd=咖啡&c=131) are searched over the visible map area (or the whole city when the link has only a city); mobile links (map.baidu.com/mobile/webapp/…) and j.map.baidu.com short links work too.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItemsPerSearch": {
            "title": "Max places per search",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional cap per keyword × area (useful when one city would otherwise take the whole \"Max places\"). 0 = no per-search limit.",
            "default": 0
          },
          "categoryFilter": {
            "title": "Category must contain",
            "type": "array",
            "description": "Optional: keep only places whose Baidu category, tags or name contain one of these words, e.g. 咖啡厅 (drops bakeries and restaurants that Baidu mixes into a 咖啡 search) or 火锅.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "",
              "3",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Only places with at least this Baidu rating (places without a rating are left out when this is set).",
            "default": ""
          },
          "onlyWithPhone": {
            "title": "Only places with a phone number",
            "type": "boolean",
            "description": "Leave out places without a phone number.",
            "default": false
          },
          "skipClosed": {
            "title": "Skip temporarily closed places",
            "type": "boolean",
            "description": "Baidu marks some places as temporarily closed (暂停营业); they are kept by default with status \"temporarily closed\".",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Used only as a fallback. The scraper reads Baidu Maps over a direct connection and Apify datacenter proxies side by side (no proxy cost to you); if Baidu refuses both, the proxy chosen here takes over.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}