{
  "openapi": "3.0.1",
  "info": {
    "title": "Encar Used Car Monitor (엔카) - New Listings, Price Drops",
    "description": "Paste an Encar (encar.com) search URL or pick maker, model, year and price filters and get one row per Korean used car listing: maker, model, trim, year, mileage, fuel, price in KRW, region, photos, URL. Flags new listings, price drops and removed cars since the last run. No seller personal data.",
    "version": "0.1",
    "x-build-id": "tRPvMMUKIa2MZ443y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/magenta_courser~encar-listing-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-magenta_courser-encar-listing-monitor",
        "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/magenta_courser~encar-listing-monitor/runs": {
      "post": {
        "operationId": "runs-sync-magenta_courser-encar-listing-monitor",
        "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/magenta_courser~encar-listing-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-magenta_courser-encar-listing-monitor",
        "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": {
          "searchUrls": {
            "title": "Encar search URLs",
            "type": "array",
            "description": "Optional. Search result URLs copied from encar.com with your filters set (e.g. http://www.encar.com/dc/dc_carsearchlist.do?carType=kor#!{...}). One per line. When set, the filter fields below are ignored. Leave empty to use the filters.",
            "items": {
              "type": "string"
            }
          },
          "manufacturer": {
            "title": "Maker",
            "type": "string",
            "description": "English or Korean maker name, e.g. Hyundai, Kia, Genesis, BMW, Mercedes-Benz, 현대. Leave empty for all makers."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "English or Korean model name as Encar lists it, e.g. Grandeur, Sonata, Sorento, 5-Series, 그랜저. Needs a maker. If the name is not found, the run tells you the available names."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1980,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest year of first registration, e.g. 2020."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1980,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest year of first registration, e.g. 2023."
          },
          "priceMax": {
            "title": "Max price (만원)",
            "minimum": 1,
            "type": "integer",
            "description": "Highest asking price in 만원 (units of 10,000 KRW). 3000 = 30,000,000 KRW."
          },
          "mileageMax": {
            "title": "Max mileage (km)",
            "minimum": 1,
            "type": "integer",
            "description": "Highest odometer reading in km, e.g. 100000."
          },
          "fuel": {
            "title": "Fuel",
            "enum": [
              "any",
              "gasoline",
              "diesel",
              "lpg",
              "hybrid",
              "electric",
              "hydrogen"
            ],
            "type": "string",
            "description": "Fuel type. \"any\" for all.",
            "default": "any"
          },
          "carOrigin": {
            "title": "Korean or imported brands",
            "enum": [
              "all",
              "domestic",
              "import"
            ],
            "type": "string",
            "description": "all, domestic (Korean brands: Hyundai, Kia, Genesis, ...) or import (BMW, Mercedes-Benz, ...). Only needed without a maker.",
            "default": "all"
          },
          "includeLeaseAndRent": {
            "title": "Include lease and rent take-over listings",
            "type": "boolean",
            "description": "Filter searches return cars for sale only. Turn on to add lease/rent contract take-overs (리스·렌트 승계), whose price field is not a sale price. Search URLs are not changed.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum rows to save per search. With \"Compare with the last run\" on, the whole search (up to 10,000 listings) is still read so that changes are exact, and changes are saved first; without it, the most recently updated listings are returned. The form starts at 15 to keep a first try cheap; raise it to get more rows.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include car details (charged separately)",
            "type": "boolean",
            "description": "One extra request per listing adds Encar's English model and trim names, VIN (dealer stock), colour, body type, engine size, seats, new-car price, registration date, views, seizure/pledge counts and all photos. Slower and charged as a separate event.",
            "default": false
          },
          "compareWithLastRun": {
            "title": "Compare with the last run",
            "type": "boolean",
            "description": "Remember each search and mark new listings, price changes and removed listings against the previous run of the same search. The first run of a search is the baseline. Works for searches with up to 10,000 results; narrow larger ones.",
            "default": true
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "all",
              "changesOnly"
            ],
            "type": "string",
            "description": "all = every current listing with its change fields. changesOnly = only new listings, price changes and removed listings (the first run still returns the baseline).",
            "default": "all"
          },
          "historyStoreName": {
            "title": "History store name",
            "type": "string",
            "description": "Named key-value store that remembers the last results of each search. Use different names for independent monitors. Lowercase letters, digits and dashes.",
            "default": "encar-listing-monitor-history"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Encar refuses most datacenter IPs. Residential proxy (Korea) is the default and recommended.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}