{
  "openapi": "3.0.1",
  "info": {
    "title": "Korea Used Car Scraper (Encar.com) — Listings & Inspection",
    "description": "Scrape South Korea used car listings from Encar.com with English & Korean brand/model filtering (Hyundai, Kia, Genesis, BMW, Mercedes-Benz), accident & flood history, frame inspection records, option codes, and dealer metadata. Ideal for vehicle export dealers and automotive price intelligence.",
    "version": "1.0",
    "x-build-id": "G39WGcvntQCItJfFL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/skcho~encar-car-collector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-skcho-encar-car-collector",
        "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/skcho~encar-car-collector/runs": {
      "post": {
        "operationId": "runs-sync-skcho-encar-car-collector",
        "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/skcho~encar-car-collector/run-sync": {
      "post": {
        "operationId": "run-sync-skcho-encar-car-collector",
        "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": {
          "carType": {
            "title": "Car Type (차종 구분)",
            "enum": [
              "for",
              "kor",
              "all"
            ],
            "type": "string",
            "description": "Which Encar tab to walk: Imported (수입), Domestic (국산), or All (전체). If you enter a manufacturer from the other tab, the Actor switches tabs automatically.",
            "default": "all"
          },
          "manufacturers": {
            "title": "Manufacturers (제조사)",
            "type": "array",
            "description": "Filter by manufacturer in English or Korean (e.g. Hyundai, Kia, Genesis, BMW, Mercedes-Benz, Audi, 현대, 기아, 벤츠). Leave empty for all manufacturers.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "modelGroups": {
            "title": "Model Groups (모델그룹)",
            "type": "array",
            "description": "Filter by model group in English or Korean (e.g. Grandeur, Sorento, Avante, Santa Fe, Carnival, 5 Series, E-Class, 그랜저, 쏘렌토). Leave empty for all models.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "taxonomyDepth": {
            "title": "Taxonomy Depth (분류 깊이)",
            "enum": [
              "manufacturer",
              "modelGroup",
              "model"
            ],
            "type": "string",
            "description": "How deep to split the taxonomy before listing ads.",
            "default": "modelGroup"
          },
          "yearRange": {
            "title": "Model Year Range (연식 범위)",
            "type": "array",
            "description": "4-digit model year range, e.g. [2020, 2025]. Leave a side null for open-ended."
          },
          "priceRange": {
            "title": "Price Range in 10,000 KRW / 만원 (가격 범위)",
            "type": "array",
            "description": "Asking price in 만원 (10,000 KRW), e.g. [1500, 4500]. Leave a side null for open-ended."
          },
          "mileageRange": {
            "title": "Mileage Range in km (주행거리 범위)",
            "type": "array",
            "description": "Odometer range in km, e.g. [0, 80000]. Leave a side null for open-ended."
          },
          "fuelTypes": {
            "title": "Fuel Types (연료)",
            "type": "array",
            "description": "Filter by fuel type (e.g. 가솔린, 디젤, 가솔린+전기, 전기, LPG). Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "transmissions": {
            "title": "Transmissions (변속기)",
            "type": "array",
            "description": "Filter by transmission (e.g. 오토, 수동). Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Body Category (차형)",
            "type": "array",
            "description": "Filter by body style (e.g. SUV, 대형차, 중형차, 준중형차, 스포츠카). Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "seatingCapacities": {
            "title": "Seating Capacity (인승)",
            "type": "array",
            "description": "Seating capacity filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "colors": {
            "title": "Exterior Color (색상)",
            "type": "array",
            "description": "Exterior color filter (e.g. 흰색, 검정색, 은색, 회색).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "accidentTypes": {
            "title": "Accident History Filter (사고여부)",
            "type": "array",
            "description": "Accident codes: N (No accident / 무사고), F (Simple repair / 단순수리), Y (Accident recorded / 사고).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "conditions": {
            "title": "Published Records (이력·점검 공개 조건)",
            "type": "array",
            "description": "Filter by published inspection/insurance records (e.g. Inspection, Record).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "services": {
            "title": "Encar Services (엔카 서비스)",
            "type": "array",
            "description": "Encar service tags (e.g. EncarDiagnosis, EncarMeetgo, HomeService).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sellTypes": {
            "title": "Sale Type (판매방식)",
            "type": "array",
            "description": "Sale type (e.g. 일반, 리스, 렌트).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Region (지역)",
            "type": "array",
            "description": "Dealer region in Korea (e.g. 경기, 서울, 인천, 부산, 대구).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "options": {
            "title": "Vehicle Options (차량 옵션)",
            "type": "array",
            "description": "All selected options must be present (AND), same as Encar's own filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort Order (정렬 기준)",
            "enum": [
              "ModifiedDate",
              "PriceAsc",
              "PriceDesc",
              "MileageAsc",
              "MileageDesc",
              "Year"
            ],
            "type": "string",
            "description": "Listing order within each taxonomy group.",
            "default": "ModifiedDate"
          },
          "maxListingsPerGroup": {
            "title": "Max Listings Per Group (그룹당 최대 매물 수)",
            "type": "integer",
            "description": "Maximum unique vehicles to take from each model group. 0 = all.",
            "default": 25
          },
          "maxTotalListings": {
            "title": "Max Total Listings (전체 최대 수집 매물 수)",
            "type": "integer",
            "description": "Hard cap on unique vehicles collected across the whole run. 50 vehicles = $0.25. 0 = unlimited.",
            "default": 200
          },
          "collectDetail": {
            "title": "Collect Vehicle Detail (상세 제원·옵션 수집)",
            "type": "boolean",
            "description": "Fetch each ad's detail page data (spec, options, description, VIN, photos). Off = list rows only, much faster.",
            "default": true
          },
          "collectRecord": {
            "title": "Collect Insurance Accident Record (보험이력 수집)",
            "type": "boolean",
            "description": "Also fetch the published 보험이력 (accident counts, per-claim repair costs, owner changes, flood/total-loss flags).",
            "default": true
          },
          "collectInspection": {
            "title": "Collect Official Inspection Record (성능·상태 점검기록부 수집)",
            "type": "boolean",
            "description": "Also fetch the 성능·상태 점검기록부: accident/simple-repair flags and the per-panel replacement/welding (교환·판금) breakdown.",
            "default": true
          },
          "collectDiagnosis": {
            "title": "Collect Encar Diagnosis (엔카진단 리포트 수집)",
            "type": "boolean",
            "description": "Also fetch the 엔카진단 report per vehicle where one exists.",
            "default": false
          },
          "writeMarkdown": {
            "title": "Write Per-Vehicle Markdown Files (차량별 마크다운 파일 생성)",
            "type": "boolean",
            "description": "Off by default to save Key-Value Store writes. Turn on if you also want one human-readable Markdown summary file per vehicle in the Key-Value Store.",
            "default": false
          },
          "concurrency": {
            "title": "Concurrent Vehicles (동시 상세 수집 수)",
            "type": "integer",
            "description": "How many vehicles to fetch detail for at once (1-8).",
            "default": 4
          },
          "requestDelayMs": {
            "title": "Request Delay in ms (요청 간격)",
            "type": "integer",
            "description": "Pause between API requests inside each worker.",
            "default": 300
          },
          "taxonomyToDefaultDataset": {
            "title": "Put taxonomy rows in the main dataset",
            "type": "boolean",
            "description": "Off by default: manufacturer/model taxonomy rows go to a separate \"encar-taxonomy\" dataset so they do not count as billed results.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Encar blocks datacenter IP addresses outright. A residential proxy is required and selected by default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "allowDuplicateVehicles": {
            "title": "Keep re-listed duplicates",
            "type": "boolean",
            "description": "Off by default: when the same physical car appears under more than one dealer ad ID, only the original vehicle is kept and billed once.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}