# Sgcarmart — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and compare used cars on Singapore's market with detailed pricing, specifications, and deregistration values. Get comprehensive information on vehicle models, features, and market statistics to make informed buying decisions.

**Category:** Automotive | **Website:** [sgcarmart.com/](https://sgcarmart.com/) | **Docs:** [parse.bot/marketplace/4e4d5d51-af54-4aae-bfa0-6bf0f289def1/sgcarmart-com-api](https://parse.bot/marketplace/4e4d5d51-af54-4aae-bfa0-6bf0f289def1/sgcarmart-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-sgcarmart-com-api-4e4d5d51/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_dereg_value

Get current deregistration value, COE, and ARF details for a used car listing by its numeric ID. Returns pricing breakdown useful for valuation. Some older or special listings may return N.A for deregistration values.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Date in YYYY-MM-DD format for the valuation. Omitting uses today's date. |
| `listing_id` | string | Yes | Numeric listing ID from SGCarMart (e.g., 1501976). Obtainable from search_listings results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sgcarmart-com-api-4e4d5d51/get_dereg_value \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>","listing_id":"<string>"}'
```

### get_listing_details

Get detailed information for a specific used car listing including price, mileage, engine specs, COE, ARF, depreciation, and seller information. Accepts either a full listing URL (from search_listings results) or a numeric listing ID.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `listing_id` | string | No | Numeric listing ID from SGCarMart (e.g., 1526577). Obtainable from search_listings results. Either url or listing_id must be provided. |
| `url` | string | No | Full URL of the listing (e.g., https://www.sgcarmart.com/used-cars/info/toyota-harrier-turbo-20a-1526577/?dl=2493). Obtainable from search_listings results. Either url or listing_id must be provided. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sgcarmart-com-api-4e4d5d51/get_listing_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"listing_id":"<string>","url":"<string>"}'
```

### get_model_features

Get interior, exterior, and safety features for a new car model, including all sub-model variants with detailed feature flags and descriptions. Returns feature details per sub-model variant.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | URL path of the new car model page (e.g., /new-cars/info/12618/toyota-corolla-altis). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sgcarmart-com-api-4e4d5d51/get_model_features \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_model_stats

Get technical specifications for a new car model, including all sub-model variants with engine, performance, dimensions, and EV charging details where applicable. Returns structured data per sub-model variant.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | URL path of the new car model page (e.g., /new-cars/info/12618/toyota-corolla-altis). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sgcarmart-com-api-4e4d5d51/get_model_stats \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### search_listings

Search for used car listings on SGCarMart. Returns a paginated list of listings with basic details including model, price, mileage, and registration date. Results are from the latest listings across all makes unless filtered. Each page typically returns 10-20 listings.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `make` | string | No | Car make to search for (e.g., Toyota, Honda, BMW, Mercedes-Benz). |
| `page` | integer | No | Page number for pagination, starting from 1. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sgcarmart-com-api-4e4d5d51/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"make":"<string>","page":"<integer>"}'
```
