Use cases · 6 min read

How Casa Asia put the Encar and Che168 catalogs on its website with the MotorFeed API

Casa Asia imports cars and machinery from Asia to Moldova. The company sources, inspects and delivers vehicles turnkey.

Its website now carries the whole market: the Encar section lists more than 133,000 cars from Korea, and the Che168 section about 240,000 from China (as of October 31, 2026). Listings are in Romanian, Russian and English, every car shows a landed price for Moldova, and Korean cars also show the Encar inspection sheet with a body diagram.

Below is how it works under the hood. If you are building a website for a car importer, you can reuse most of this setup as is.

The Encar catalog on casa-asia.md: filters by make, model, year and mileage, and car cards with landed prices

Requirements

  • An Encar catalog with filters by make, model, generation, trim, year, mileage, drive type and color.
  • A price a buyer in Moldova understands: the car, the commission, shipping and excise, each on its own line.
  • A vehicle page with equipment, insurance claim history and the inspection report.
  • The same catalog for Che168, without a second integration.
  • No in-house listing database or data collection: the site runs on Vercel, and the team did not want to maintain that infrastructure.

Architecture: the key stays on the server

The site is an Angular app with server-side rendering. The browser never calls MotorFeed directly. It calls the site's own routes (/api/encar/*, /api/che168/*), and the server adds the key in the x-api-key header and forwards the request to https://api.motor-feed.com.

The site uses only four API methods:

Site routeMotorFeed methodPurpose
POST /api/encar/search/contextPOST /search/contextFilter tree: makes, models, trims, counts
POST /api/encar/searchPOST /searchA page of results
GET /api/encar/vehicles/:idGET /vehicles/:idVehicle page with landed price
GET /api/encar/vehicles/:id/inspectionGET /vehicles/:id/inspectionInspection sheet and body diagram

Plus GET /vehicles/:id/history for insurance claims.

The browser sends only what is allowed

There is one key for the whole site, and any visitor can send anything to the proxy. So the proxy forwards only the fields the storefront needs and caps the page size:

TypeScript
const ALLOWED_KEYS = ['lang', 'sort', 'offset', 'limit', 'filters', 'country', 'currency', 'exchangeRates'];
const MAX_PAGE_SIZE = 50;

function pickSearchBody(body: Record<string, unknown>) {
  const picked: Record<string, unknown> = {};
  for (const key of ALLOWED_KEYS) {
    if (body[key] !== undefined) picked[key] = body[key];
  }
  if (typeof picked.limit === 'number') {
    picked.limit = Math.min(Math.max(0, picked.limit), MAX_PAGE_SIZE);
  }
  return picked;
}

It is a simple rule, but without it someone else's script can spend your quota on requests your site never makes.

Filters once, pages without them

POST /search/context returns the filter tree with counts. The site requests it when the catalog opens, and sends includeFilters: false when paging. Without that flag every results page would carry the full filter tree, and it would make up most of the response.

Landed price in one request

What a buyer wants to know is what the car will cost in their country, not in Korea. MotorFeed calculates duties, excise and taxes for the chosen country (country), in the response currency (currency), at your exchange rates (exchangeRates). The importer only adds what it alone knows:

  • logisticsTariff: shipping cost, which can be set per fuel type: petrol and diesel, hybrid, electric.
  • additionalCosts: your own charges and commissions as code: amount pairs. Casa Asia passes its Encar purchase commission this way. Each amount is added to the customs value and returned as its own line in pricing.fees.
  • customsClearanceYearBufferMonths: an age buffer. A car bought today clears customs a few months later and may have moved into the next age bracket by then. Duties in Moldova depend on age, so without the buffer the price would come out too low. Casa Asia uses three months.

The site takes the won exchange rate from a Korean bank, caches it for an hour and passes it in exchangeRates. If no rate is passed, MotorFeed uses its own bank rates.

The site's server sets these values after the body from the browser. A visitor cannot send their own shipping cost and get a price lower than the real one.

TypeScript
const body = {
  ...pickSearchBody(req.body),
  logisticsTariff: {
    basis: 'fuel',
    costUsd: { combustion: 3500, hybrid: 3500, electric: 3500 },
  },
  additionalCosts: { encar_commission: commissionUsd },
  customsClearanceYearBufferMonths: 3,
  includeFilters: false,
};

const response = await fetch('https://api.motor-feed.com/search', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'x-api-key': process.env.MOTORFEED_API_KEY! },
  body: JSON.stringify(body),
});

On the vehicle page the buyer sees a breakdown, not a single number. For example, a 2020 Renault Korea QM6:

LineAmount
Car price8,695 USD
Encar commission378 USD
Shipping3,500 USD
Customs excise2,385 USD
Total14,958 USD (≈ 13,425 EUR)

When the shipping rate changes, the site changes one number, not a formula.

A 2024 Genesis GV80 page on casa-asia.md: landed price in dollars and euros, a line-by-line breakdown and the car's specs

The inspection report is optional

For Korean cars the site shows the Encar inspection sheet: the date and mileage at inspection, flags for accidents, flooding and tuning, and a diagram of the body and frame marking each replaced or repaired part.

The report may be missing: the seller did not publish one (available: false), or the source has no such report at all (Che168 returns 501). So the proxy passes the response through unchanged, and the vehicle page simply hides the block. A vehicle page should never break because of optional data.

Che168 on the same code

The Chinese catalog uses the same routes: the request gets providerId: 2 and its own shipping rate, and that is it. Encar and Che168 return the same response format, so the storefront components are shared.

The one difference is speed. The source in China responds more slowly, so Che168 has a longer timeout on the site, and a vehicle page is cached on Vercel's CDN for five minutes (s-maxage=300, stale-while-revalidate=600). A page is the same for everyone viewing it in the same language and currency, so a car shared in a chat costs one API request, not one per click.

How the work went

  • Mid-July 2026: the first version of the Encar catalog with search, filters and landed prices was live within a few days.
  • A week later: Che168 was added.
  • August: shipping rates per fuel type, and filter state in the URL so searches can be shared.
  • September to October: inspection reports, insurance claim history, drive type and color filters, cascading trim selection.

All of these were changes on the website only: data, translations and duty calculation are handled by MotorFeed.

The result

  • More than 370,000 listings from Korea and China on the company's own website, in three languages.
  • A landed price for Moldova on every vehicle page, broken down line by line.
  • Inspection reports with a body diagram for Korean cars.
  • No in-house listing database or data collection: the site runs on Vercel, and the API key lives only on its server.

See it live: the Encar catalog and the Che168 catalog on casa-asia.md.

How to do the same

  1. Sign up at motor-feed.com and get a key.
  2. Add a proxy on your server for the 3–4 methods in the table above, with an allowlist of browser fields.
  3. Add shipping, your own commissions and the age buffer on the server, and show buyers a landed price.

The full list of parameters is in the API documentation. To discuss an integration for your market, contact us.

Bring Encar and Che168 data into your project

Catalog, search, vehicle details, reports and import cost estimates through one API. A test key is issued right after sign-up.