# Toyota (Malaysia) — 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.

> Browse Toyota Malaysia's complete vehicle lineup with detailed specs, galleries, and videos for each model, then compare variants side-by-side to find the perfect match for your needs. Access comprehensive information on pricing tiers, features, and specifications across all available Toyota models in Malaysia.

**Category:** Automotive | **Website:** [toyota.com.my/](https://toyota.com.my/) | **Docs:** [parse.bot/marketplace/c2390f7a-244c-4764-a2f4-77d5883ff303/toyota-com-my-api](https://parse.bot/marketplace/c2390f7a-244c-4764-a2f4-77d5883ff303/toyota-com-my-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/toyota-malaysia/`
**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

### Compare variants

Compare variants side-by-side with specs including engine, measurements, in-vehicle features, and safety. Filter by specific variant slugs, body type, or model slug. If no filter is provided, all variants are returned. Returns structured comparison data with spec labels for each section.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `body_type` | string | No | Filter by body type category |
| `model_slug` | string | No | Filter variants matching a model slug (e.g., 'fortuner' returns all Fortuner variants) |
| `variant_slugs` | string | No | Comma-separated variant slugs to compare (e.g., 'fortuner-2-8-vrz-at-4wd,fortuner-2-4-at-4wd') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/toyota-malaysia/compare-variants \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"body_type":"<string>","model_slug":"<string>","variant_slugs":"<string>"}'
```

### Get model details

Get detailed information for a specific Toyota model including hero image, video URL, gallery images, colors, variants with regional pricing, overview specs, and feature sections. Each model page provides comprehensive marketing and specification data.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `model_slug` | string | Yes | Model slug identifier used in Toyota Malaysia URLs (e.g., 'fortuner', 'hilux', 'vios', 'corolla-cross-hybrid-electric', 'gr-supra') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/toyota-malaysia/get-model-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"model_slug":"<string>"}'
```

### Get variant specs

Get full detailed specifications for a specific model variant, organized by category (Engine, Transmission, Chassis, Dimensions, Exterior Features, Interior Features, Safety, Security, Optional). Each spec section contains key-value pairs of specification labels and values.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `model_slug` | string | Yes | Model slug (e.g., 'fortuner', 'vios', 'hilux') |
| `variant_slug` | string | Yes | Variant slug identifying the specific trim/configuration (e.g., 'fortuner-2-8-vrz-at-4wd', 'new-vios-1-5g-at') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/toyota-malaysia/get-variant-specs \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"model_slug":"<string>","variant_slug":"<string>"}'
```

### List models

List all available Toyota Malaysia models with basic info including name, body type, category, starting price, image URL, and available grades/variants. Returns the complete catalog extracted from the global navigation model list. No parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/toyota-malaysia/list-models \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Next steps

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