{
  "openapi": "3.0.1",
  "info": {
    "title": "Encar Used Car Collector",
    "description": "Crawl the Encar (encar.com) manufacturer/model taxonomy to enumerate used car listings, then collect per-listing detail including accident records, inspection and diagnosis data.",
    "version": "1.0",
    "x-build-id": "Oop8H2KFnldHrhdW6"
  },
  "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 both.",
            "default": "for"
          },
          "manufacturers": {
            "title": "Manufacturers",
            "type": "array",
            "description": "Limit to these manufacturers. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "modelGroups": {
            "title": "Model Groups",
            "type": "array",
            "description": "Limit to these model groups. Options appear once a manufacturer is picked.",
            "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": "Year",
            "type": "array",
            "description": "Model year range. Leave a side empty for open-ended."
          },
          "priceRange": {
            "title": "Price",
            "type": "array",
            "description": "Asking price in 만원. Leave a side empty for open-ended."
          },
          "mileageRange": {
            "title": "Mileage",
            "type": "array",
            "description": "Odometer range in km. Leave a side empty for open-ended."
          },
          "fuelTypes": {
            "title": "Fuel",
            "type": "array",
            "description": "Fuel",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "transmissions": {
            "title": "Transmission",
            "type": "array",
            "description": "Transmission",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Body Category",
            "type": "array",
            "description": "Body Category",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "seatingCapacities": {
            "title": "Seating Capacity",
            "type": "array",
            "description": "Seating Capacity",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "colors": {
            "title": "Color",
            "type": "array",
            "description": "Color",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "accidentTypes": {
            "title": "Accident History",
            "type": "array",
            "description": "Accident History",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "conditions": {
            "title": "Published Records",
            "type": "array",
            "description": "Published Records",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "services": {
            "title": "Encar Services",
            "type": "array",
            "description": "Encar Services",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sellTypes": {
            "title": "Sale Type",
            "type": "array",
            "description": "Sale Type",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Region",
            "type": "array",
            "description": "Region",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "options": {
            "title": "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 ads to take from each taxonomy group. 0 = all.",
            "default": 20
          },
          "maxTotalListings": {
            "title": "Max Total Listings",
            "type": "integer",
            "description": "Hard cap on ads collected across the whole run. 0 = unlimited.",
            "default": 200
          },
          "collectDetail": {
            "title": "Collect Vehicle Detail",
            "type": "boolean",
            "description": "Fetch each ad's detail page data (spec, options, description, photos). Off = list rows only, much faster.",
            "default": true
          },
          "collectRecord": {
            "title": "Collect Insurance Record",
            "type": "boolean",
            "description": "Also fetch the published 보험이력 (accident counts and per-claim repair costs, owner changes, total loss).",
            "default": true
          },
          "collectInspection": {
            "title": "Collect Inspection Record",
            "type": "boolean",
            "description": "Also fetch the 성능·상태 점검기록부: accident/simple-repair flags and the per-panel 교환·판금 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 Markdown Files",
            "type": "boolean",
            "description": "Write one Markdown file per vehicle in addition to the dataset rows.",
            "default": true
          },
          "concurrency": {
            "title": "Concurrent Vehicles",
            "type": "integer",
            "description": "How many vehicles to fetch detail for at once (1-8).",
            "default": 4
          },
          "requestDelayMs": {
            "title": "Request Delay (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 results. Turn on only if a downstream consumer expects taxonomy and vehicle rows mixed in one dataset.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Encar blocks datacenter IP addresses outright, so a run without a residential proxy cannot reach the API from the Apify platform. Residential proxy traffic is billed separately by Apify.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "allowDuplicateVehicles": {
            "title": "Keep re-listed duplicates",
            "type": "boolean",
            "description": "Off by default: when the same car appears under more than one ad id, only the first is kept. Leaving duplicates in inflated a 200-row result by about 21%. Turn on if you are tracking listings rather than vehicles.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}