# Encar Used Car Monitor (엔카) - New Listings, Price Drops (`magenta_courser/encar-listing-monitor`) Actor

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.

- **URL**: https://apify.com/magenta_courser/encar-listing-monitor.md
- **Developed by:** [SUNGHWAN CHO](https://apify.com/magenta_courser) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 listings

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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Encar Used Car Monitor (엔카): New Listings, Price Drops, Removed Cars

**Languages:** English · [한국어](#korean)

> **Free plan:** Apify's $5 monthly credit covers about 900 listings with this Actor (for example 30 runs of 30 listings; each run also has a $0.01 start fee, and listing details are a separate event).

Enter an Encar (encar.com) search URL, or just a maker and model such as `Hyundai` + `Grandeur`, and get one row per used car listed in Korea: maker, model, trim, year, mileage, fuel, price in KRW, region, photos and URL. From the second run on, every row says whether the listing is **new**, had a **price drop or increase**, or was **removed** since the last run.

- **Built for monitoring.** Each search is remembered and read in full (up to 10,000 listings), so a daily run tells you exactly what changed instead of handing you the same 300 cars again. `outputMode: "changesOnly"` returns only the changes, and you pay only for the rows you receive.
- **English in, Korean and English out.** Type `Kia`, `Sorento`, `Mercedes-Benz` in English. Rows keep the Korean text exactly as Encar shows it (`modelKo`, `gradeKo`) next to English fields. English model and trim names are Encar's own; nothing is machine-translated, and a name Encar does not provide is `null`.
- **Flat rows for spreadsheets and AI agents.** Numbers are numbers, missing values are `null`, prices come as `priceKrw` (integer KRW) and `priceManwon`.
- **No seller personal data.** Dealer and private seller names, phone numbers, addresses, licence plates and free-text descriptions are not collected. You get the dealership company name, seller type and region.

No Encar account, cookies or API key needed.

### What you get

| Field | Type | Description |
|---|---|---|
| `listingId` | string | Encar listing ID |
| `url` | string | Listing page on encar.com |
| `manufacturerKo`, `manufacturerEn` | string | Maker in Korean (`현대`) and English (`Hyundai`) |
| `modelGroupKo`, `modelGroupEn` | string | null | Model line (`그랜저` / `Grandeur`). Filled when the search names one model, or with `includeDetails` |
| `modelKo` | string | Model generation as Encar writes it (`그랜저 IG`). Encar has no English name for generations |
| `gradeKo`, `gradeDetailKo` | string | null | Trim and sub-trim in Korean |
| `gradeEn`, `gradeDetailEn` | string | null | Encar's English trim names. Only with `includeDetails` |
| `year`, `yearMonth`, `modelYear` | number / string | First registration year, `YYYY-MM`, and model year |
| `mileageKm` | number | Odometer in km |
| `fuel`, `fuelKo` | string | `gasoline`, `diesel`, `lpg`, `hybrid (gasoline)`, `electric`, `hydrogen`, … and the Korean original |
| `transmission`, `transmissionKo` | string | `automatic`, `manual`, `semi-automatic`, `cvt` and the Korean original |
| `priceKrw`, `priceManwon` | number | Asking price in KRW and in 만원 (10,000 KRW) as shown on Encar |
| `sellType` | string | `sale`, `lease` or `rent` (lease/rent = contract take-over) |
| `isUnderContract` | boolean | Encar marks the car as under contract (계약중) |
| `region`, `regionKo` | string | Province or city of the seller (`Gyeonggi` / `경기`) |
| `sellerType` | string | null | `dealer` or `private` |
| `dealerCompany` | string | null | Company name of the dealership. `null` for private sellers |
| `hasInspectionReport`, `hasInsuranceHistory` | boolean | Performance inspection report / insurance accident history is published |
| `hasEncarDiagnosis`, `hasEncarWarranty`, `isHomeDelivery` | boolean | Encar diagnosis, warranty and home delivery marks |
| `photoUrl`, `photoUrls` | string / array | Main photo and photo list |
| `modifiedAt` | string | Last update of the listing on Encar (ISO 8601 UTC) |
| `changeType` | string | null | `new`, `priceDrop`, `priceIncrease`, `unchanged`, `removed`, `baseline` on the first run of a search, or `notCompared` for a search too large to follow |
| `isNew` | boolean | null | Not seen in earlier runs of the same search |
| `priceChanged`, `previousPriceKrw`, `priceDeltaKrw`, `priceDropPercent` | boolean / number | null | Price movement since the last run. `priceDeltaKrw` is negative for a drop |
| `isRemoved` | boolean | The listing was in the last run of this search and is gone now. The row carries its last known values |
| `firstSeenAt`, `lastSeenAt`, `daysListed` | string / number | When this monitor first and last saw the listing, and the days in between |
| `searchQuery`, `searchUrl`, `scrapedAt` | string | Which search produced the row, and when |

With `includeDetails` (one extra request per car, charged separately):

| Field | Type | Description |
|---|---|---|
| `modelGroupEn`, `gradeEn`, `gradeDetailEn` | string | null | Encar's own English model line and trim names (`Sorento`, `Signature`) |
| `vin` | string | null | Vehicle identification number (dealer stock only) |
| `vehicleId` | string | Encar's ID of the physical car; one car can have several listings |
| `color`, `colorKo` | string | Body colour |
| `bodyType`, `bodyTypeKo` | string | Body class (`SUV`, `large car`, …) |
| `displacementCc`, `seatCount` | number | Engine size and seats |
| `newCarPriceKrw` | number | null | Price of the car when new |
| `registeredAt`, `firstAdvertisedAt` | string | When the car was registered on Encar and when the current advertisement started |
| `viewCount`, `wishCount` | number | Views and saves of the listing |
| `seizureCount`, `pledgeCount` | number | Seizures (압류) and pledges (저당) registered on the car |
| `photoUrls` | array | All photos instead of the first four |
| `detailsStatus` | string | `ok`, `notAvailable` or `failed` |

A run also writes a `RUN_SUMMARY` record to the key-value store: per-search status, stop reason, Encar's total result count, counts of new / price change / removed rows and refused requests. It is not charged.

### Sample output

One row from a run with `includeDetails` (photo list shortened to three, search URL shortened):

```json
{
  "listingId": "42837787",
  "url": "https://fem.encar.com/cars/detail/42837787",
  "manufacturerKo": "기아",
  "manufacturerEn": "Kia",
  "modelGroupKo": "쏘렌토",
  "modelGroupEn": "Sorento",
  "modelKo": "쏘렌토 4세대",
  "gradeKo": "가솔린 2.5T 2WD",
  "gradeEn": "Gasoline 2.5T 2WD",
  "gradeDetailKo": "프레스티지",
  "gradeDetailEn": "Prestige",
  "year": 2021,
  "yearMonth": "2021-11",
  "modelYear": 2022,
  "mileageKm": 94967,
  "fuelKo": "가솔린",
  "fuel": "gasoline",
  "transmissionKo": "오토",
  "transmission": "automatic",
  "colorKo": "검정색",
  "color": "black",
  "bodyTypeKo": "SUV",
  "bodyType": "SUV",
  "displacementCc": 2497,
  "seatCount": 5,
  "priceManwon": 2120,
  "priceKrw": 21200000,
  "newCarPriceKrw": 32520000,
  "sellTypeKo": "일반",
  "sellType": "sale",
  "isUnderContract": false,
  "regionKo": "서울",
  "region": "Seoul",
  "sellerType": "dealer",
  "dealerCompany": "오토플래닛_강서오토플렉스",
  "hasInspectionReport": true,
  "hasInsuranceHistory": true,
  "hasEncarDiagnosis": true,
  "hasEncarWarranty": false,
  "isHomeDelivery": true,
  "photoUrl": "https://ci.encar.com/carpicture/carpicture03/pic4283/42830764_001.jpg",
  "photoUrls": [
    "https://ci.encar.com/carpicture/carpicture03/pic4283/42830764_001.jpg",
    "https://ci.encar.com/carpicture/carpicture03/pic4283/42830764_010.jpg",
    "https://ci.encar.com/carpicture/carpicture03/pic4283/42830764_004.jpg"
  ],
  "modifiedAt": "2026-11-11T15:33:00.000Z",
  "vin": "KNARH81FGNA134666",
  "vehicleId": "42830764",
  "registeredAt": "2026-10-01T23:46:51.000Z",
  "firstAdvertisedAt": "2026-10-02T08:32:17.000Z",
  "viewCount": 1870,
  "wishCount": 6,
  "seizureCount": 0,
  "pledgeCount": 0,
  "detailsStatus": "ok",
  "changeType": "unchanged",
  "isNew": false,
  "priceChanged": false,
  "previousPriceKrw": null,
  "priceDeltaKrw": null,
  "priceDropPercent": null,
  "isRemoved": false,
  "firstSeenAt": "2026-11-11T15:21:50.000Z",
  "lastSeenAt": "2026-11-11T15:32:27.000Z",
  "daysListed": 0,
  "searchQuery": "manufacturer=Kia, model=Sorento, yearFrom=2021",
  "searchUrl": "http://www.encar.com/dc/dc_carsearchlist.do?carType=kor#!%7B%22action%22%3A%22(And.Hid…",
  "scrapedAt": "2026-11-11T15:32:27.444Z"
}
```

**Second run (changes filled).** A real row from a second run of the same search (Hyundai Grandeur, 2024 or newer) on 2026-11-12, about ten minutes after the first: the asking price went down by 400,000 KRW (selected fields).

```json
{
  "listingId": "43136187",
  "url": "https://fem.encar.com/cars/detail/43136187",
  "modelKo": "그랜저 (GN7)",
  "gradeDetailKo": "캘리그래피",
  "year": 2024,
  "mileageKm": 15988,
  "priceKrw": 39500000,
  "region": "Busan",
  "changeType": "priceDrop",
  "isNew": false,
  "priceChanged": true,
  "previousPriceKrw": 39900000,
  "priceDeltaKrw": -400000,
  "priceDropPercent": 1,
  "isRemoved": false,
  "firstSeenAt": "2026-11-12T03:07:50.000Z",
  "lastSeenAt": "2026-11-12T03:17:12.000Z",
  "daysListed": 0,
  "scrapedAt": "2026-11-12T03:17:12.841Z"
}
```

### Use cases

1. **Used car exporters: a daily feed of new stock and price cuts.** An exporter shipping Korean cars to the CIS, Mongolia, the Middle East or Africa saves one search per model they buy (say Sorento 2021+, diesel, under 30,000,000 KRW), schedules it every morning with `outputMode: "changesOnly"`, and receives only the cars listed since yesterday and the ones whose price was cut, with `priceDeltaKrw` and `priceDropPercent` ready for sorting.
2. **Overseas dealers and brokers.** Watch several models at once and send the changes to Slack, Telegram, Google Sheets or your own system with Apify integrations or a webhook.
3. **Price research.** Keep `outputMode: "all"` on a schedule to build a time series of asking prices, days on market (`daysListed`) and how fast cars disappear (`isRemoved`) per model, year and mileage band.
4. **Dealers in Korea.** Track competing stock for the models you sell and see who cut prices this week.
5. **AI agents.** Ask an agent "which 2022+ GV70 under 50 million won were listed this week?" and let it call the Actor with two fields.

### How to use

#### Apify Console

Open the Actor, type a maker and a model (English or Korean), optionally set year, price and mileage limits, and click **Start**. No field is required: an empty input returns the most recently updated cars for sale on Encar (a search that large is not change-tracked). To monitor, save the input as a Task and add a Schedule; the second run starts reporting changes.

Instead of the filters you can paste search URLs: open a result list on encar.com, set any filters you like and copy the address from the browser.

| Field | Description |
|---|---|
| `searchUrls` | Encar search URLs copied from the browser, one per line. When set, the filter fields are ignored. |
| `manufacturer` | Maker in English or Korean: `Hyundai`, `Kia`, `Genesis`, `BMW`, `Mercedes-Benz`, `현대`. |
| `model` | Model line in English or Korean as Encar lists it: `Grandeur`, `Sonata`, `Sorento`, `그랜저`. If the name is not found, the run ends without a charge and lists the available names. |
| `yearFrom`, `yearTo` | First registration year range. |
| `priceMax` | Highest price in 만원 (10,000 KRW). `3000` = 30,000,000 KRW. |
| `mileageMax` | Highest mileage in km. |
| `fuel` | `any`, `gasoline`, `diesel`, `lpg`, `hybrid`, `electric`, `hydrogen`. |
| `carOrigin` | `all`, `domestic` (Korean brands) or `import`. Only needed without a maker. |
| `includeLeaseAndRent` | Filter searches return cars for sale only; turn on to add lease/rent take-overs. |
| `maxItems` | Rows to save per search. Default 100, max 10,000 (the Console form starts at 15; raise it for more). With comparison on, the whole search is still read and changes are saved first. |
| `includeDetails` | One extra request per car for English trim names, VIN, colour and more. Charged as a separate event. |
| `compareWithLastRun` | Mark new, price-changed and removed listings against the previous run of the same search. Default on. |
| `outputMode` | `all` (every listing with change fields) or `changesOnly`. |
| `historyStoreName` | Key-value store that remembers each search. Use different names for independent monitors. Default `encar-listing-monitor-history`. |
| `proxyConfiguration` | Residential proxy (Korea) by default. Encar refuses most datacenter IPs. |

```json
{
  "manufacturer": "Kia",
  "model": "Sorento",
  "yearFrom": 2021,
  "priceMax": 3000,
  "fuel": "diesel",
  "maxItems": 500,
  "outputMode": "changesOnly"
}
```

#### API (curl)

```bash
curl -X POST "https://api.apify.com/v2/acts/magenta_courser~encar-listing-monitor/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"manufacturer":"Hyundai","model":"Grandeur","yearFrom":2020,"maxItems":100}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("magenta_courser/encar-listing-monitor").call(run_input={
    "manufacturer": "Kia",
    "model": "Sorento",
    "yearFrom": 2021,
    "maxItems": 500,
    "outputMode": "changesOnly",
    "historyStoreName": "sorento-watch",
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["changeType"], row["modelKo"], row["year"], row["priceKrw"], row["priceDeltaKrw"], row["url"])
```

#### JavaScript

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('magenta_courser/encar-listing-monitor').call({
    manufacturer: 'Kia',
    model: 'Sorento',
    yearFrom: 2021,
    maxItems: 500,
    outputMode: 'changesOnly',
    historyStoreName: 'sorento-watch',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((r) => [r.changeType, r.modelKo, r.year, r.priceKrw, r.priceDeltaKrw, r.url]));
```

#### AI agents and MCP

Connect your agent (Claude, Cursor, a LangChain or OpenAI Agents SDK app, or any MCP client) to the Apify MCP server at `https://mcp.apify.com` with your Apify token and add this Actor as a tool, for example `https://mcp.apify.com?tools=magenta_courser/encar-listing-monitor`. The agent then calls the tool `magenta_courser/encar-listing-monitor` with a minimal input such as:

```json
{ "manufacturer": "Genesis", "model": "GV70", "yearFrom": 2022, "maxItems": 50 }
```

Rows are flat, prices and mileage are numbers and missing values are `null`, so an agent can sort by `priceKrw` or filter by `changeType` without post-processing.

### Pricing

Pay per event (FREE plan prices; BRONZE -5%, SILVER -10%, GOLD and up -20% on the two listing events):

| Event | Price | When |
|---|---|---|
| Actor start | $0.01 per run | Once per run (it pays for reading the whole search to compare with the last run) |
| `listing` | $0.005 | Each row saved to the dataset (a current listing or a removed-listing row) |
| `listing-details` | $0.005 | Only with `includeDetails`, per car whose details were read successfully |

The run summary, refused or failed requests, searches with invalid input and runs that find nothing are free. If you set a *Maximum cost per run*, the Actor stops cleanly when it is reached and says so in the status message. Platform usage, including the residential proxy, is included in the event price.

### FAQ

#### Do I need an Encar account?

No. The Actor reads only what Encar shows to visitors who are not logged in. It does not log in, send cookies or solve captchas.

#### How does change tracking work?

Each search (the same filters or the same URL conditions) has its own record in the key-value store named in `historyStoreName`. The first run of a search reads all its listings, stores them and marks every row `baseline`. Later runs compare with that record: a listing not seen before is `new`, a different price is `priceDrop` or `priceIncrease`, and a listing that is no longer in the results is returned once as a `removed` row with its last known values. Typing the maker in English or Korean leads to the same record.

#### When is a listing reported as removed?

When a run has read every result of the search and the listing is not among them. Encar's list keeps moving while it is read, so now and then a read ends one or two listings short of the total; such a run reports a missing listing only if it was already missing in the run before. "Removed" means the listing left this search: sold, withdrawn, or edited so that it no longer matches your filters.

#### What does `maxItems` limit?

The rows saved (and charged) per search, not the listings read. With comparison on, the Actor reads the whole search so that `new` and `removed` are exact, then saves changes first (new, price changes, removed) and fills the rest with unchanged listings, most recently updated first. Rows left out by `maxItems` count as seen. Without comparison it simply returns the most recently updated listings.

#### My search has more than 10,000 results. What happens?

The Actor follows up to 10,000 listings per search. For a larger search it reads only `maxItems` listings, still reports price changes for listings it has seen before, and marks the others `notCompared` instead of guessing; new and removed listings are not reported. Narrow the search by model, year or price, or split it into several searches. `totalResults` in `RUN_SUMMARY` shows the size of each search.

#### Are model and trim names translated?

No. Makers, fuel, transmission, region, colour and body class come from fixed tables. Model line and trim names in English are the ones Encar itself publishes (`modelGroupEn` for a maker+model search, the trim names with `includeDetails`). When Encar has no English name the field is `null` and the Korean text is in the `…Ko` field.

#### What happens when Encar refuses the request?

The Actor retries a few times with a new proxy session. If Encar keeps refusing, the search is reported in `RUN_SUMMARY`, the run still ends normally with the rows it could read, and nothing is charged for what was not delivered. Encar refuses most datacenter IPs, so keep the residential proxy.

#### When am I not charged?

For searches with invalid input, refused or failed requests, runs that return no rows (for example `changesOnly` with no changes), details that could not be read, and the run summary.

#### Why is the price of some cars odd?

Rows are what sellers entered. Lease and rent take-overs (`sellType` `lease` / `rent`) show a take-over amount, not a sale price; filter searches leave them out unless you turn on `includeLeaseAndRent`. Some sellers enter placeholder prices such as 9,999만원.

#### Is the price converted to USD?

No. Prices are in KRW exactly as listed. Convert with the exchange rate you actually trade at.

#### Where do I see the per-search status?

In the key-value store record `RUN_SUMMARY` of the run.

### 한국어 안내 (Korean)

엔카(encar.com) 검색 URL을 붙여넣거나 제조사·모델(예: `현대` + `그랜저`, 영문 `Hyundai` + `Grandeur`도 가능)을 입력하면 매물 한 건당 한 행으로 제조사, 모델, 등급, 연식, 주행거리, 연료, 가격(원·만원), 지역, 사진, URL을 돌려줍니다. 같은 조건을 다시 실행하면 지난 실행과 비교해 **새 매물**(`isNew`), **가격 인하·인상**(`priceDeltaKrw`, `priceDropPercent`), **사라진 매물**(`isRemoved`)을 표시합니다. `outputMode`를 `changesOnly`로 두면 바뀐 매물만 받습니다. 연식·최고가(만원)·최대 주행거리·연료 필터를 쓸 수 있고, `includeDetails`를 켜면 엔카가 제공하는 영문 모델·등급명, 차대번호(딜러 매물), 색상, 배기량, 신차가, 압류·저당 건수가 추가됩니다. 비교를 켜 두면 `maxItems`와 상관없이 검색 결과 전체(최대 1만 건)를 읽어 변화를 판정하고, `maxItems`는 저장되는(과금되는) 행 수만 제한합니다. 결과가 1만 건을 넘는 검색은 새 매물·사라진 매물을 판정하지 않으니 모델·연식·가격으로 좁혀 주세요. 판매자 개인 이름·전화번호·주소·차량번호·설명글은 수집하지 않으며, 상사명과 지역까지만 제공합니다. 엔카 계정이나 API 키는 필요 없습니다.

### Notes

This Actor reads publicly visible listing data and is not affiliated with Encar. Use the data in line with Encar's terms and the laws that apply to you.

### Need another field or feature?

Tell us in the **Issues** tab: a missing field, another input mode, a different output format. We aim to ship requested fields and features within a week, and we answer every issue.

# Actor input Schema

## `searchUrls` (type: `array`):

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.

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

English or Korean maker name, e.g. Hyundai, Kia, Genesis, BMW, Mercedes-Benz, 현대. Leave empty for all makers.

## `model` (type: `string`):

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` (type: `integer`):

Earliest year of first registration, e.g. 2020.

## `yearTo` (type: `integer`):

Latest year of first registration, e.g. 2023.

## `priceMax` (type: `integer`):

Highest asking price in 만원 (units of 10,000 KRW). 3000 = 30,000,000 KRW.

## `mileageMax` (type: `integer`):

Highest odometer reading in km, e.g. 100000.

## `fuel` (type: `string`):

Fuel type. "any" for all.

## `carOrigin` (type: `string`):

all, domestic (Korean brands: Hyundai, Kia, Genesis, ...) or import (BMW, Mercedes-Benz, ...). Only needed without a maker.

## `includeLeaseAndRent` (type: `boolean`):

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.

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

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.

## `includeDetails` (type: `boolean`):

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.

## `compareWithLastRun` (type: `boolean`):

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.

## `outputMode` (type: `string`):

all = every current listing with its change fields. changesOnly = only new listings, price changes and removed listings (the first run still returns the baseline).

## `historyStoreName` (type: `string`):

Named key-value store that remembers the last results of each search. Use different names for independent monitors. Lowercase letters, digits and dashes.

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

Encar refuses most datacenter IPs. Residential proxy (Korea) is the default and recommended.

## Actor input object example

```json
{
  "manufacturer": "Hyundai",
  "model": "Grandeur",
  "yearFrom": 2024,
  "fuel": "any",
  "carOrigin": "all",
  "includeLeaseAndRent": false,
  "maxItems": 15,
  "includeDetails": false,
  "compareWithLastRun": true,
  "outputMode": "all",
  "historyStoreName": "encar-listing-monitor-history",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "KR"
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

One row per listing, most recently updated first per search; removed listings at the end.

## `runSummary` (type: `string`):

Per-search status, stop reason, totals, new / price change / removed counts and refused requests. Not charged.

# 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 = {
    "manufacturer": "Hyundai",
    "model": "Grandeur",
    "yearFrom": 2024,
    "maxItems": 15,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "KR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("magenta_courser/encar-listing-monitor").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 = {
    "manufacturer": "Hyundai",
    "model": "Grandeur",
    "yearFrom": 2024,
    "maxItems": 15,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "KR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("magenta_courser/encar-listing-monitor").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 '{
  "manufacturer": "Hyundai",
  "model": "Grandeur",
  "yearFrom": 2024,
  "maxItems": 15,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "KR"
  }
}' |
apify call magenta_courser/encar-listing-monitor --silent --output-dataset

```

## MCP server setup

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

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/JbvRNqxuZ0bZ0C1xy/builds/tRPvMMUKIa2MZ443y/openapi.json
