{
  "openapi": "3.0.1",
  "info": {
    "title": "Naver Map Search Results Scraper: New Places & Reviews",
    "description": "Scrapes Naver Map search results. Give it search words like 강남역 카페 or map links; get each place's name, category, address, phone, review count, rating, options and coordinates as rows, with an onlyNew mode for changes since the last run.",
    "version": "0.1",
    "x-build-id": "3SXpqdFXo2C4C5aVc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/h1018y~anvil-naver-places/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-h1018y-anvil-naver-places",
        "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/h1018y~anvil-naver-places/runs": {
      "post": {
        "operationId": "runs-sync-h1018y-anvil-naver-places",
        "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/h1018y~anvil-naver-places/run-sync": {
      "post": {
        "operationId": "run-sync-h1018y-anvil-naver-places",
        "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": {
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "What you would type into Naver Map, one per line, e.g. 강남역 카페, 홍대 미용실 or Gangnam dentist. Put the area in the words.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Naver Map search links",
            "type": "array",
            "description": "Optional map.naver.com or m.place.naver.com search links, e.g. https://map.naver.com/p/search/강남역 카페. The search words are read from the link.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerKeyword": {
            "title": "Places per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many matching places for each search, e.g. 50. Naver ranks them by relevance.",
            "default": 50
          },
          "maxItems": {
            "title": "Max places in total",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many rows over all searches together, e.g. 100.",
            "default": 100
          },
          "searchCoordinates": {
            "title": "Search center",
            "type": "string",
            "description": "Optional center as longitude,latitude, e.g. 127.0276,37.4979 for Gangnam. Default is Seoul City Hall. Search words with an area name override it."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "reviews",
              "rating"
            ],
            "type": "string",
            "description": "'relevance' keeps Naver's order, 'reviews' puts the most reviewed places first, 'rating' the best rated first (within the places read).",
            "default": "relevance"
          },
          "minReviews": {
            "title": "Minimum visitor reviews",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only places with at least this many visitor reviews, e.g. 100. Use 0 for all places.",
            "default": 0
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only places rated at least this high on Naver (0 to 5), e.g. 4.5. Places without a rating are left out when this is above 0.",
            "default": 0
          },
          "newlyOpened": {
            "title": "Newly opened only",
            "type": "boolean",
            "description": "Only places Naver marks as newly opened. Good for finding new competitors or leads.",
            "default": false
          },
          "naverPay": {
            "title": "Naver Pay only",
            "type": "boolean",
            "description": "Only places that accept Naver Pay.",
            "default": false
          },
          "takeout": {
            "title": "Takeout only",
            "type": "boolean",
            "description": "Only places whose Naver options list takeout (포장).",
            "default": false
          },
          "delivery": {
            "title": "Delivery only",
            "type": "boolean",
            "description": "Only places whose Naver options list delivery (배달).",
            "default": false
          },
          "acceptsReservations": {
            "title": "Reservations only",
            "type": "boolean",
            "description": "Only places that take reservations through Naver or list reservation (예약) as an option.",
            "default": false
          },
          "wheelchairAccessible": {
            "title": "Wheelchair entrance only",
            "type": "boolean",
            "description": "Only places Naver marks as having a wheelchair-accessible entrance.",
            "default": false
          },
          "includeBioContacts": {
            "title": "Include contacts from description text",
            "type": "boolean",
            "description": "Not used for Naver: phones are only the number a place lists in its own business field (contactSource business_field). Keep this off.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new or changed",
            "type": "boolean",
            "description": "On a schedule, return only places that are new or whose review count or rating changed since the last run with the same input.",
            "default": false
          },
          "monitoringMode": {
            "title": "Monitoring mode (alias)",
            "type": "boolean",
            "description": "Same as Only new or changed, kept so inputs written for the other Naver Map scrapers work unchanged.",
            "default": false
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Send requests through Apify Proxy. Naver often needs a Korean exit address, so add the RESIDENTIAL group if runs fail.",
            "default": true
          },
          "proxyGroups": {
            "title": "Proxy groups",
            "type": "array",
            "description": "Optional Apify Proxy groups, for example RESIDENTIAL. Leave empty for the default.",
            "items": {
              "type": "string"
            }
          },
          "webhookUrl": {
            "title": "Send results to (webhook URL)",
            "type": "string",
            "description": "Optional. An https address - your own system, Zapier, Make or a Slack incoming webhook - that gets each run's results as JSON (with 'only new' on: just the new ones). Example: https://hooks.slack.com/services/T000/B000/XXXX"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}