{
  "openapi": "3.0.1",
  "info": {
    "title": "Encar Scraper — South Korea Used Cars in English",
    "description": "Scrape used cars from Encar, South Korea's largest car marketplace, in English: make, model, trim, year, mileage, price in KRW, fuel, gearbox, colour, engine, VIN, plate, accident and insurance history, owner changes, dealer, photos. Filter by make, model, price, year.",
    "version": "1.0",
    "x-build-id": "HVZHOvp2u2cnKCHlB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hipersoft~encar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hipersoft-encar-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/hipersoft~encar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hipersoft-encar-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/hipersoft~encar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hipersoft-encar-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": {
          "carType": {
            "title": "Car type",
            "enum": [
              "all",
              "domestic",
              "imported"
            ],
            "type": "string",
            "description": "Korean-brand (domestic) cars, imported brands, or both.",
            "default": "all"
          },
          "makes": {
            "title": "Makes",
            "type": "array",
            "description": "Car makes in English or Korean, e.g. Hyundai, Kia, Genesis, BMW, Mercedes-Benz. Leave empty for all makes.",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Models",
            "type": "array",
            "description": "Optional model names of the makes above, e.g. Tucson, Sonata, Grandeur, Sorento, 5 Series, E-Class. Each make/model pair is a separate search.",
            "items": {
              "type": "string"
            }
          },
          "priceMinMillionKrw": {
            "title": "Minimum price (million KRW)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in millions of won, e.g. 10 = ₩10,000,000."
          },
          "priceMaxMillionKrw": {
            "title": "Maximum price (million KRW)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in millions of won, e.g. 30 = ₩30,000,000."
          },
          "yearMin": {
            "title": "Year from",
            "minimum": 1980,
            "type": "integer",
            "description": "Oldest first-registration year."
          },
          "yearMax": {
            "title": "Year to",
            "minimum": 1980,
            "type": "integer",
            "description": "Newest first-registration year."
          },
          "mileageMaxKm": {
            "title": "Maximum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest mileage in kilometres."
          },
          "fuelTypes": {
            "title": "Fuel types",
            "type": "array",
            "description": "Only these fuel types.",
            "items": {
              "type": "string",
              "enum": [
                "gasoline",
                "diesel",
                "lpg",
                "hybrid",
                "dieselHybrid",
                "electric",
                "hydrogen",
                "cng"
              ],
              "enumTitles": [
                "Gasoline",
                "Diesel",
                "LPG",
                "Gasoline hybrid",
                "Diesel hybrid",
                "Electric",
                "Hydrogen",
                "CNG"
              ]
            }
          },
          "gearbox": {
            "title": "Gearbox",
            "type": "array",
            "description": "Only these gearbox types.",
            "items": {
              "type": "string",
              "enum": [
                "automatic",
                "manual",
                "semiAutomatic",
                "cvt"
              ],
              "enumTitles": [
                "Automatic",
                "Manual",
                "Semi-automatic",
                "CVT"
              ]
            }
          },
          "saleOnly": {
            "title": "Sale listings only",
            "type": "boolean",
            "description": "Skip lease and rental takeover listings, whose price is not the full car price.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "priceLowToHigh",
              "priceHighToLow",
              "mileageLowToHigh",
              "mileageHighToLow",
              "yearNewest"
            ],
            "type": "string",
            "description": "Order of results.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Full details and accident history",
            "type": "boolean",
            "description": "Also collect English model and trim names, gearbox, colour, body type, engine size, seats, original new-car price, VIN, plate number, dealer details, views, description, and the insurance accident history (accident count and cost, owner changes, total loss, flood, theft, rental use). Slower.",
            "default": false
          },
          "maxItems": {
            "title": "Max cars",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many cars. 0 means no limit.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Korean residential proxy is used by default for reliable results.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "KR"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}