# Sgcarmart — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/sgcarmart/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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.beta.paywithlocus.com/api/wrapped/credits/sgcarmart/get-dereg-value \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/sgcarmart/get-listing-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/sgcarmart/get-model-features \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/sgcarmart/get-model-stats \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/sgcarmart/search-listings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"make":"<string>","page":"<integer>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.