# Encar Cars Scraper (South Korea) (`scrapyx/encar-cars-scraper`) Actor

Scrapes used-car listings from Encar, South Korea's largest car marketplace. Each row carries price, mileage, model year, manufacturer, trust/inspection badges and photos, with optional accident history, full options and VIN.

- **URL**: https://apify.com/scrapyx/encar-cars-scraper.md
- **Developed by:** [Ibnu Adzim](https://apify.com/scrapyx) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.75 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Encar Cars Scraper — South Korea

Scrapes used-car listings from **Encar**, South Korea's largest used-car
marketplace. Domestic and imported vehicles, with optional accident/inspection
history, full options and VIN.

- **Domestic (Korean-brand) inventory**: ~150,900 listings — Hyundai, Kia,
  Genesis, Chevrolet/GM Daewoo, KG Mobility/Ssangyong, Renault Korea
- **Imported inventory**: ~66,400 listings — Mercedes-Benz, BMW, Audi,
  Porsche, Jeep, Land Rover and other foreign brands

***

### What each row contains

Every listing is emitted as upstream returns it. Highlights:

- **Price** (in 10,000 KRW units), mileage, model year
- **Manufacturer / model / trim** (in Korean)
- **Trust and condition badges** — extended warranty, home service, inspection
  report, accident record, resume
- **Photos** — all image URLs
- With `includeCarDetails`: **accident / inspection / seizure history**,
  **full options list**, **VIN**, seller contact and dealer information

#### Record types

| `recordType` | One per | Purpose |
| --- | --- | --- |
| `SEARCH_SUMMARY` | query | upstream's own count, requests spent, honesty flags |
| `CAR` | listing | the listing itself, upstream shape preserved |
| `ERROR` | failed input | so every input maps to at least one row |

***

### An unusually honest API

Most targets in this portfolio hide a bad filter behind a healthy-looking
200 response with the wrong data. Encar's search API does not — an
unrecognised manufacturer, or a price/year range with no matches, returns a
clean `Count: 0` rather than the unfiltered baseline. This Actor still
validates carType and sort up front (the API rejects those with an honest
HTTP 400, so there's no reason to send a value known to fail), but a
mistyped manufacturer costs you nothing but an empty result.

### The one real trap: a hidden pagination ceiling

Past roughly offset 10,000, the API does **not** error and does **not**
clamp back to page 1 — it returns HTTP 200 with listings drawn from a small,
non-monotonic pool, which would silently corrupt a naive crawl of a large
category. This Actor enforces a hard cap well clear of that boundary and
reports `resultWindowCeilingHit: true` on the summary row when a query has
more matches than it can reach, rather than crawling into the degenerate
zone. Narrow by manufacturer, price or year to reach the rest of a large
category.

***

### Input

| Field | Notes |
| --- | --- |
| `carType` | `domestic` or `import` |
| `manufacturer` | Korean-script brand name, e.g. `현대`, `기아`, `BMW`. Run once without it to read exact spellings off results |
| `minPrice` / `maxPrice` | In units of 10,000 KRW |
| `minYear` / `maxYear` | `YYYYMM` format |
| `sort` | Recently updated, price, or mileage, ascending or descending |
| `queries` | Optional array to run several searches in one call |
| `includeCarDetails` | One extra request per listing |
| `maxItems` | Per query |

***

### Example

```json
{
  "carType": "domestic",
  "manufacturer": "현대",
  "minPrice": 2000,
  "maxPrice": 5000,
  "minYear": 202001,
  "sort": "price-asc",
  "includeCarDetails": true,
  "maxItems": 100
}
```

### Known limits

- Pagination cannot reliably reach past ~10,000 results in a single query
  (see above). Split large categories by manufacturer, price band or year.
- `Price`/`Year` (without `Asc`/`Desc`) are not valid sort values — the API
  rejects them, so only the five options in the input schema are offered.
- Manufacturer names must be in Korean script as Encar itself uses them; no
  English-to-Korean translation is performed.

### Anti-bot

None. Seven TLS fingerprints tested on both the search and detail endpoints
returned clean data every time, and the API even answers requests with no
`Accept-Language` header. The Actor still rotates fingerprints on transient
failure and defaults to residential proxy, since cloud egress can be
fingerprinted differently from a local test.

# Actor input Schema

## `carType` (type: `string`):

Domestic (Korean-brand) or imported vehicles. These are separate inventories on Encar with different manufacturer lists — domestic holds ~150,900 listings (Hyundai, Kia, Genesis, Chevrolet/GM Daewoo, KG Mobility/Ssangyong...), imported holds ~66,400 (Mercedes-Benz, BMW, Audi, Porsche, Jeep, Land Rover...).

## `manufacturer` (type: `string`):

Brand name in Korean script exactly as Encar shows it, e.g. `현대` (Hyundai), `기아` (Kia), `제네시스` (Genesis), `BMW`, `벤츠` (Mercedes-Benz), `아우디` (Audi), `지프` (Jeep). Run once without this filter and read the `Manufacturer` field off the results to get the exact spelling for further queries. Leave empty for all manufacturers.

An unrecognised value is answered honestly with zero results rather than silently returning the unfiltered list, so a typo here costs nothing but an empty summary row.

## `minPrice` (type: `integer`):

Encar prices are in units of 10,000 KRW — e.g. `3000` means 30,000,000 KRW (~22,000 USD). Leave at 0 to skip.

## `maxPrice` (type: `integer`):

Leave at 0 to skip.

## `minYear` (type: `integer`):

Encar encodes model year+month as YYYYMM, e.g. `202001` for January 2020. Leave at 0 to skip.

## `maxYear` (type: `integer`):

Leave at 0 to skip.

## `sort` (type: `string`):

Every option genuinely reorders results (verified by checking that the first row actually changes, not just that the request succeeds). Plain `Price` and `Year` sorts are NOT offered — the API rejects them outright with HTTP 400.

## `queries` (type: `array`):

Optional. Run several searches in one Actor call, each producing its own SEARCH\_SUMMARY row. Each entry accepts the same fields as the top-level input (`carType`, `manufacturer`, `minPrice`, `maxPrice`, `minYear`, `maxYear`, `sort`, `maxItems`). When this is set, the top-level fields above are ignored.

Example: `[{"carType": "domestic", "manufacturer": "현대"}, {"carType": "import", "manufacturer": "BMW"}]`

## `includeCarDetails` (type: `boolean`):

Fetch each listing's own page for fields the search results do not carry: accident/inspection/seizure history, the full options list, VIN, seller contact and dealer info, and the complete photo set.

Costs **one extra request per listing**. De-listed cars answer 404 — those rows are still returned, with `detailFetched: false`.

## `maxItems` (type: `integer`):

Stop after this many listings. This API cannot reliably page past roughly 10,000 results into a single query — narrow by manufacturer, price or year for searches larger than that, rather than raising this number.

## `maxConcurrency` (type: `integer`):

Upper bound on requests in flight at once, across all queries and detail fetches.

## `minRequestInterval` (type: `integer`):

Paces how often requests START, without tying up a concurrency slot. No rate limiting was observed, so this defaults to 0.

## `proxyConfiguration` (type: `object`):

Residential by default. No bot challenge appeared on any of the 7 TLS fingerprints tested — even requests with no headers succeeded — but datacentre egress from a cloud platform is fingerprinted differently from a local test.

## Actor input object example

```json
{
  "carType": "domestic",
  "manufacturer": "",
  "minPrice": 0,
  "maxPrice": 0,
  "minYear": 0,
  "maxYear": 0,
  "sort": "modified",
  "queries": [],
  "includeCarDetails": false,
  "maxItems": 100,
  "maxConcurrency": 5,
  "minRequestInterval": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `items` (type: `string`):

One row per scraped record. See the dataset's default view for field definitions.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapyx/encar-cars-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("scrapyx/encar-cars-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call scrapyx/encar-cars-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapyx/encar-cars-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/YObMxkcSHLjHm6Xwx/builds/gICfp1kFGq7FPzZLw/openapi.json
