{"openapi":"3.1.0","info":{"title":"ToyotaEPC API","version":"2.0.0","description":"# Overview\n\nThe ToyotaEPC API serves Toyota's parts catalogue to your application: decode a VIN into the exact vehicle, walk its catalogue, open any exploded-view diagram with clickable callouts, and look up part numbers, their replacements and the vehicles they fit. It covers the Toyota and Lexus catalogues for North America (`NA`), Europe (`EU`), Japan (`JP`) and the general export markets (`OTHER`), for vehicles built from 1967 (Japan) or 1969 (other markets) up to the current year.\n\n- **Base URL:** `https://api.toyotaepc.com`\n- **Format:** JSON over HTTPS; every call is a `GET`.\n- **Authentication:** your key in the `x-api-key` header of every request.\n- **Compression:** send `Accept-Encoding: gzip` — answers are large JSON (a part lookup is about 230 KB, 15 KB compressed).\n\nResponse examples on this page are real answers, with long lists cut to three entries; the Quickstart also leaves out fields its steps do not use, and says so under each answer.\n\nA typical integration follows one path:\n\n| # | Call | Returns |\n| --- | --- | --- |\n| 1 | `GET /identify?vin=…` | The vehicle: `region`, `year`, `model`, `modelCode` and `details.catalogCode` |\n| 2 | `GET /vehicle` | Its categories and diagram groups |\n| 3 | `GET /diagram` | The parts of one group, the drawing and its clickable callouts |\n| 4 | `GET /parts/{pn}` | Everything about one part number, including what replaces it |\n\nWithout a VIN, `/selector` walks region → year → model → model code and joins the path at step 2. On the Business and Enterprise plans, `/equipment` gives a vehicle's factory equipment by VIN (see **Guides**).\n\n# Getting access\n\nCreate a free account at [toyotaepc.com](https://toyotaepc.com/login?mode=signup), then subscribe to Starter or Business at [toyotaepc.com/pricing](https://toyotaepc.com/pricing#api). Your API key arrives by email within a minute of payment and is always in your account under **API** ([toyotaepc.com/dashboard](https://toyotaepc.com/dashboard?section=api)). Need to evaluate first? Ask [support@toyotaepc.com](mailto:support@toyotaepc.com) for a short trial key: it opens every endpoint except `/equipment`.\n\n| Plan | Price | Requests per month | What it includes |\n| --- | --- | --- | --- |\n| Starter | $99 per month | 50,000 | Every endpoint except `/equipment`; the parts catalogue of every car on toyotaepc.com and in your AI assistant, with no monthly car limit; email support |\n| Business | $199 per month | 200,000 | Everything in Starter, plus `/equipment` (factory equipment by VIN); priority support |\n| Enterprise | Custom | Custom | Your volume and an SLA, by agreement |\n\nEvery call counts as one request; an export of a whole vehicle counts as 100, and so does the factory equipment of a vehicle (`/equipment`, Business and Enterprise; see **Rate limits**). Keep your key on your server and call the API from there, never from a web page.\n\n# Quickstart\n\nFour calls take one real car — a Corolla LE sedan built in July 2007, VIN `1NXBR32E68Z959363` — from its VIN to a part number and the drawing it sits on. Put your API key in `KEY` first:\n\n```bash\nexport KEY=\"tep_live_…\"    # your API key\n```\n\n## 1. Identify the vehicle\n\n```bash\ncurl -H \"x-api-key: $KEY\" --compressed \"https://api.toyotaepc.com/identify?vin=1NXBR32E68Z959363\"\n```\n\n```json\n{\n  \"vin\": \"1NXBR32E68Z959363\",\n  \"items\": [{\n    \"region\": \"NA\", \"year\": \"2007\", \"model\": \"COROLLA-MATRIX-NAP\",\n    \"modelCode\": \"ZZE130L-DEPNKA\",\n    \"details\": {\"catalogCode\": \"155450\", \"engine\": \"1ZZFE\", \"productionDate\": \"200707\", \"decode\": \"full\"}\n  }]\n}\n```\n\n`details` is shortened here. Keep `region`, `year`, `model`, `modelCode` and `details.catalogCode`: the next calls take them.\n\n## 2. List the vehicle's diagram groups\n\nThe values from step 1, and `vin` again: with it the answer is narrowed to this car — its production month, colour and options.\n\n```bash\ncurl -H \"x-api-key: $KEY\" --compressed -G \"https://api.toyotaepc.com/vehicle\" \\\n  -d region=NA -d year=2007 -d model=COROLLA-MATRIX-NAP -d modelCode=ZZE130L-DEPNKA \\\n  -d catalogCode=155450 -d vin=1NXBR32E68Z959363\n```\n\n```json\n{\n  \"vehicle\": {\"region\": \"NA\", \"year\": 2007, \"model\": \"COROLLA-MATRIX-NAP\",\n              \"modelCode\": \"ZZE130L-DEPNKA\", \"catalogCode\": \"155450\"},\n  \"categories\": [\n    {\"categoryId\": 1, \"label\": \"Engine / Fuel / Tool\", \"groups\": [\n      {\"diagramId\": \"1502\", \"name\": \"OIL FILTER\", \"image\": \"/img/diagram/US/150151G\"}\n    ]}\n  ]\n}\n```\n\nShortened: `vehicle` carries every decoded attribute, and there are four categories — category `1` alone has 24 groups. Each group's `diagramId` opens it; group `1502` is the oil filter.\n\n## 3. Open a diagram group\n\n```bash\ncurl -H \"x-api-key: $KEY\" --compressed -G \"https://api.toyotaepc.com/diagram\" \\\n  -d region=NA -d year=2007 -d model=COROLLA-MATRIX-NAP -d modelCode=ZZE130L-DEPNKA \\\n  -d catalogCode=155450 -d vin=1NXBR32E68Z959363 -d categoryId=1 -d diagramId=1502\n```\n\n```json\n{\n  \"sectionName\": \"OIL FILTER\",\n  \"currentDiagram\": \"150151G\",\n  \"imageUrl\": \"/img/diagram/US/150151G\",\n  \"spareParts\": [\n    {\"partNumber\": \"90915-10009\", \"callout\": \"15601\", \"description\": \"FILTER SUB-ASSY, OIL\",\n     \"qty\": \"01\", \"variant\": \"1ZZFE..ZZE130..NAP\", \"spec\": \"(Japan made)\",\n     \"dateFrom\": \"200412\", \"dateTo\": \"999999\", \"type\": \"BASE\", \"parentPn\": \"90915-10003\"},\n    {\"partNumber\": \"90915-10009\", \"callout\": \"15601\", \"description\": \"FILTER SUB-ASSY, OIL\",\n     \"qty\": \"01\", \"variant\": \"1ZZFE..ZZE130..NAP\", \"spec\": \"(Local made)\",\n     \"dateFrom\": \"200412\", \"dateTo\": \"999999\", \"type\": \"BASE\", \"parentPn\": \"90915-TA001\"}\n  ],\n  \"coordinates\": [\n    {\"callout\": \"15601\", \"codeType\": \"H\", \"x\": 485, \"y\": 269, \"width\": 67, \"height\": 16}\n  ],\n  \"totalParts\": 3\n}\n```\n\nShortened to callout `15601` — the third row, `15600A`, is the filter's union — and to the fields this step uses: the oil filter to order is `90915-10009`, which replaces the catalogue numbers `90915-10003` (Japan made) and `90915-TA001` (locally made). `coordinates` places each callout on the drawing, and `imageUrl` is the drawing itself:\n\n```bash\ncurl -H \"x-api-key: $KEY\" \"https://api.toyotaepc.com/img/diagram/US/150151G\" -o 150151G.webp\n```\n\n## 4. Look up a part number\n\n```bash\ncurl -H \"x-api-key: $KEY\" --compressed \"https://api.toyotaepc.com/parts/90915-10009\"\n```\n\n```json\n{\n  \"data\": {\n    \"part_input\": \"90915-10009\",\n    \"ref_code\": \"15601\",\n    \"full_pn\": \"90915-10009\",\n    \"primary_name\": \"FILTER SUB-ASSY, OIL\",\n    \"price\": 1050,\n    \"price_currency\": \"JPY\",\n    \"supersededBy\": [{\"partNumber\": \"90915-CA004\", \"current\": \"90915-CA004\", \"chain\": [],\n                      \"regions\": [\"EU\", \"NA\", \"OTHER\"],\n                      \"catalogs\": [\"400\", \"418\", \"465\", \"50C\", \"C02\", \"C03\"]}],\n    \"isSuperseded\": true\n  }\n}\n```\n\nFor this car, order `90915-10009`: `/diagram` in step 3 already showed the number that applies to it. `supersededBy` is for looking a number up without a vehicle — here `90915-CA004` replaces it in the Toyota sales markets coded in `catalogs`, codes you do not need to place an order. Shortened: `names`, `models` and `diagrams` are long lists, and each `supersededBy` entry also carries `sources`.\n\n## Test vehicles\n\nMore inputs for a first run, one per market:\n\n- `NA` — `1NXBR32E68Z959363`, the Corolla above\n- `EU` — `SB1BZ56L70E043027`, an Avensis built in 2005\n- `JP` — `KDH2000012345`, a frame number (Japanese cars carry one instead of a VIN): a HiAce built in 2005. A frame number can also be sent as printed, `KDH200-0012345`\n- `OTHER` — `LFMJD7BN6N0057334`, a Crown Kluger built in 2022\n- `JT2AL32W7D0065702` matches several vehicles (`decode: multi`)\n\n# Concepts\n\n```text\nvehicle modification\n└─ category (1–4)\n   └─ group (1502)\n      └─ figure (150151G)\n         └─ callout (15601)\n            └─ part rows\n```\n\nA group is one assembly, such as `1502` OIL FILTER; a figure is one drawing of the group; a callout is the reference number printed on the drawing; part rows give the number, quantity, dates and conditions.\n\nFive values name one vehicle modification. `/identify` (from a VIN) and `/selector` (by browsing) return them; `/vehicle`, `/diagram` and `/all-parts` take them.\n\n- **`region`** — catalogue market: `NA`, `EU`, `JP` or `OTHER` (general export markets). Drawings and part names label the same markets `US`, `EU`, `JP` and `GR`.\n- **`year`** — year of production. For a decoded VIN it is the year of `productionDate`, which can differ from the model year coded in the VIN. With `vin`, answers follow the car's production month; without it, they describe the modification as built in January of `year` — or in its first month, if production started later that year.\n- **`model`** — name of the catalogue, e.g. `COROLLA-MATRIX-NAP`. A catalogue can cover related models (here the Corolla and the Matrix); the car's body, grade and engine are in the `/identify` details.\n- **`modelCode`** — Toyota model code of one modification — engine, transmission, body, grade — e.g. `ZZE130L-DEPNKA`.\n- **`catalogCode`** — the catalogue, e.g. `155450`: `details.catalogCode` in `/identify`, the item details in `/selector`. Optional; it pins the catalogue when a model code appears in several.\n\nInside the catalogue:\n\n- **`categoryId`** — 1 Engine / Fuel / Tool, 2 Chassis / Driveline, 3 Body, 4 Electrical. From `/vehicle`; used by `/diagram` and `/all-parts`.\n- **`diagramId`** — a diagram group (one assembly), e.g. `1502`; a string, so keep leading zeros such as `0901`. From `/vehicle` `groups[].diagramId`; used by `/diagram`.\n- **Figure code** — one drawing of a group, e.g. `150151G`; a group has one or more. From `/diagram` `diagrams[].figure_code` and `currentDiagram`; used by `/diagram?diag=` and `/img/diagram/…`.\n- **`callout`** — reference number printed on the drawing next to a part. In `/diagram` it links `spareParts[].callout` to `coordinates[].callout`.\n- **Part number** — `XXXXX-XXXXX`, or `XXXXX-XXXXX-XX` with a colour or specification suffix. From `/diagram` and `/all-parts`; used by `/parts/{pn}` and `/compatibility`, which answer a number given without its suffix (`45100-47130`) for all of its suffixed numbers.\n\nA request that names a `modelCode` without a `vin` is answered for that modification in every colour, trim and option. Add `vin` and the answer is narrowed to that car.\n\n# Guides\n\n## Show a clickable diagram for a VIN\n\n1. **Identify.** `GET /identify?vin=…`, then:\n   - **One item:** take its `region`, `year`, `model`, `modelCode` and `details.catalogCode`.\n   - **Several items:** the VIN matches more than one vehicle. Let the user choose by engine, transmission or production.\n   - **`decode: multi`:** the VIN points to a model family. `details` is a list of `{key, value}` pairs and `year` is the model year read from the VIN (or absent). Continue with the chosen candidate and a year inside its `production` range (`YYYYMM-YYYYMM`): the car's year of build when the customer knows it, otherwise the VIN's `year` when it lies inside the range. Years inside that range can give different answers — the catalogue changed during production — and `vin` does not narrow these answers further.\n   - **No items:** the VIN is not in the catalogue.\n2. **List the groups.** `GET /vehicle` with those values and `vin`. Show `categories[].groups[]` by `name`.\n3. **Open a group.** `GET /diagram` with `categoryId`, `diagramId` and `vin`. The answer covers `currentDiagram`; `diagrams` lists every figure of the group — request the others with `diag=<figure_code>` and show them as pages.\n4. **Show the drawing.** `imageUrl` is a path such as `/img/diagram/US/150151G`. Request it from your server with your key, store it (a figure never changes) and serve your copy to the page. Use the path exactly as returned.\n5. **Place the callouts.** Each `coordinates` entry is a box in pixels of the image at its natural size, `x` and `y` from its top-left corner; scale boxes and image together. There are three kinds of box — check for `targetFigure` first:\n   - A box with `targetFigure` refers to another group: its `callout` is that group's `diagramId` and `targetFigure` the figure to open there — request `/diagram` with `diagramId` set to the callout and `diag` to `targetFigure` (the group's `categoryId` is in `/vehicle`). Its `codeType` is `H`.\n   - Any other `codeType` `H` box is a callout number. `callout` links the box to the `spareParts` rows with the same `callout`; a callout with no rows is a part this vehicle does not have.\n   - `codeType` `P` — a standard part printed by its full number. `callout` is that number without hyphens; `stdParts` lists the same numbers with hyphens. Standard parts have no rows in `spareParts`, and some groups hold only standard parts.\n6. **List the parts.** What to order for this vehicle is `partNumber` — already the current number, or, when `MAIN` rows follow, one of those candidates. Group `spareParts` by `callout` and show `partNumber`, `description`, `qty` (`X` means as required), the production window `dateFrom`–`dateTo` (`YYYYMM`; `999999` means still current), and `variant` and `spec` — the vehicles and specification a row applies to.\n   - `type` `BASE` is a catalogue row. When its number has been replaced, `partNumber` is the current number and `parentPn` the catalogue number, so the same `partNumber` can appear on several rows when it replaces several catalogue numbers.\n   - `MAIN` and `SUB` rows belong to the row whose number is in their `parentPn`: `MAIN` lists candidate replacements when there is more than one, `SUB` parts supplied with it, such as kit contents, with their `qty`.\n   - Even with a VIN, a callout can keep several rows — alternatives the VIN does not settle, told apart by `variant` and `spec` (for example an engine number range or the country of manufacture); show them all. Each catalogue number appears once per callout.\n\n## Browse without a VIN\n\n`GET /selector` returns the regions; add `region` for the years, `year` for the models and `model` for the model codes. At the last level `items` carries each model code with its catalogue and details (`catalogCode`, engine, transmission, `driversPosition` — the steering position that `/identify` details call `steering`). Continue with `/vehicle` and `/diagram` as above, without `vin`: the answers cover that modification in every colour, trim and option.\n\n## Look up a part number\n\n`GET /parts/{pn}` accepts numbers with or without hyphens.\n\n- `primary_name`, `names` — the part's name in each language the catalogue has.\n- `diagrams` — the figures it is printed on: `/img/diagram/{region}/{figure_code}`.\n- `models` — the catalogues, and their model codes, whose parts list or drawings print it.\n- `price` — Toyota Japan list price in yen, when known.\n- `supersededBy` — every number that replaces it: `partNumber` is the next number, `current` the last one of its chain and `catalogs` the Toyota sales-market codes the replacement applies to. A number can have different successors in different markets; with a vehicle at hand, `/diagram` already shows the one that applies to it, so you do not need to read `catalogs` to place an order. `isSuperseded` is `true` when any market has a successor.\n\n`models` and `diagrams` list where the number itself is printed; a vehicle that receives it as a replacement shows it in `/diagram` under the number it replaces.\n\nTo find which vehicles a part fits, use `GET /compatibility?partNumber=…`: every model code whose catalogue lists the number, checked against each modification's specification and production dates. A standard part printed on a drawing by its full number (`stdParts`) fits the model codes that drawing is shown for. Vehicles that receive the number as a replacement are listed under the number it replaces. With a vehicle at hand, check its `/diagram` instead: a `BASE` row's `partNumber` is the number to order and its `parentPn` the one it replaces. The list can be long — thousands of items for common parts — so request it with gzip and cache it.\n\n## Export a whole vehicle\n\n`GET /all-parts` returns every part row of a vehicle in one call: one section per diagram group with part rows, each holding the parts drawn on any of its figures, one row per callout and part number, with replaced numbers shown as their current number. Standard parts printed on the drawings by their full number are not included — `/diagram` lists them in `stdParts`. Omit `categoryId` for the whole vehicle or pass 1–4 for one category: a whole vehicle counts as 100 requests, one category as 25. The body is large: fetch it once per vehicle and cache it.\n\n## Factory equipment by VIN\n\n`GET /equipment?vin=…` returns what a vehicle has from the factory: every option line of its build data in Toyota's words, grouped (`safety`, `comfort`, `multimedia`, `exterior`, `offroad`, `market`, `other`), with abbreviations spelled out; the options it does not have, and whether Toyota fitted them to this version, to this version later, or only to other versions; and the genuine dealer-fit accessories that fit it, matched to its colour and market. `vehicle` carries the fields `/identify` gives for the same VIN; to open the vehicle's catalogue, take `model` from `/identify`.\n\nThe endpoint is available on the Business and Enterprise plans ([toyotaepc.com/pricing](https://toyotaepc.com/pricing#api)); any other key gets `403` and uses up nothing. Counts as 100 requests; a VIN without Toyota build data (`status: no_build_data`) or one that does not decode counts as 1 request. Coverage is best for Japan-built cars from 2005; older cars often have no build data.\n\nJapanese-market cars, which carry a frame number instead of a VIN, answer `no_build_data` for now; a special-version frame number (Welcab, G's and the like), which `/identify` reads as its base model, is `not_decoded` here; both count as 1 request. Pictures (`image`) are on toyotaepc.com: download each one once and keep it.\n\n## Filter by delivery market\n\nRows built for particular markets list them in `destination`, e.g. `[\"TUNISIA\"]`. Pass `destination=` with a name from `/destinations` to leave out rows built for a different market; rows that name no market always stay, and `destination=GENERAL` keeps only those. The vehicle's `destination` in `/identify` details is a catalogue code, not a market name.\n\n`spareParts` holds one row per callout and catalogue number. When the catalogue records the same number under one callout once per market, the row is the first of those records — and, with `destination=`, the first one that suits that market.\n\n# Limits & errors\n\n## Rate limits\n\n| Plan | Per hour | Per month |\n| --- | --- | --- |\n| Starter | 5,000 | 50,000 |\n| Business | 20,000 | 200,000 |\n| Enterprise | Custom | Custom |\n| Trial | 1,000 | 10,000 per day |\n\nThe month runs from your subscription date, and every call counts, drawings included — whatever it answers, a `404` or `422` too. An export of a whole vehicle counts as 100 requests: `/all-parts` — 25 with `categoryId`, for one category — and `/api/parts/{vin}` without `group`, `section` or `ref_code`; an export answered with an error or with no parts counts as one. The factory equipment of a vehicle, `/equipment`, counts as 100 too, and as one for a VIN without build data or one that does not decode. A call refused with `401`, `403` or `429` does not use up your monthly allowance; an export that needs more requests than are left is refused with `429` and uses up nothing, and so is an `/equipment` call: it needs 100 requests left, even for a VIN that would count as 1. With a valid key, every endpoint on this page answers with `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix time when the allowance renews) for your monthly allowance — for a trial key, the daily one. Over any limit, the hourly one included, the API answers `429` with `Retry-After`, the seconds to wait; the three headers then describe the limit that was reached. Too many calls at once get `429` with `Retry-After` alone, without the three headers.\n\n## Errors\n\n| Status | Meaning | Body |\n| --- | --- | --- |\n| `401` | Missing, unknown or expired key | `{\"error\": {\"code\": \"UNAUTHORIZED\", \"message\": \"…\"}}` |\n| `403` | The endpoint is not part of your plan (`/equipment`: Business and Enterprise) | `{\"error\": {\"code\": \"PLAN_REQUIRED\", …}}` |\n| `404` | Unknown path, or a model code, figure, VIN or drawing that does not exist | `{\"error\": {\"code\": \"NOT_FOUND\", …}}` for an unknown path, `{\"detail\": \"…\"}` otherwise |\n| `422` | A parameter is missing or invalid | `{\"detail\": \"…\"}`, or `{\"detail\": [{\"type\": \"missing\", \"loc\": [\"query\", \"year\"], \"msg\": \"Field required\"}]}` |\n| `429` | A rate limit is reached | `{\"error\": {\"code\": \"RATE_LIMITED\", …}}`; wait `Retry-After` seconds |\n| `500` | An error on our side; retry later, and write to support if it persists | `{\"error\": {\"code\": \"INTERNAL\", …}}` |\n| `502` | The catalogue is temporarily unavailable; retry after a short pause | `{\"error\": {\"code\": \"BAD_GATEWAY\", …}}` |\n| `503` | Factory equipment is temporarily unavailable; retry in a minute | `{\"error\": {\"code\": \"UNAVAILABLE\", …}}` |\n\nAn empty result is a `200` with empty lists — for example an unknown VIN in `/identify`.\n\n# Changelog\n\n## 2026-11-29\n\n- New: `/equipment` — factory equipment, what the car lacks, and the genuine accessories that fit it, by VIN (Business and Enterprise).\n\n## 2026-11-20\n\n- The `engine` field now carries the catalogue’s full engine code: `2GRFKS` instead of `2GRFK`, `A25AFXS` instead of `A25AF`, `1KDFTV` instead of `1KDFT`. About one configuration in five had a code cut to five characters, and two engines could share one cut code (`A25AF` stood for both the A25A-FKS and the A25A-FXS). It changes in `/identify` details, the model codes of `/selector`, the vehicle of `/vehicle`, `/diagram` and `/all-parts`, and the rows of `/compatibility`. The response shape, the other fields and the parts lists stay the same; if you match `engine` against stored five-character codes, match by prefix or refresh them.\n\n## 2026-11-17\n\n- `/identify` decodes Japanese frame numbers of special versions — Welcab, G's, special-body trucks, and Toyota models sold under Subaru, Suzuki, Daihatsu and Mazda badges. `modelCode` and `details.catalogCode` name the modification the car is built on, and `/vehicle`, `/diagram` and `/all-parts` take them as usual; `details.frame` is the car's own model code (`TRH2000107959`: `modelCode` `TRH200K-ERPDK5`, `details.frame` `TRH200K-VTZYA`).\n\n## 2026-10-25\n\n- `/all-parts` counts as 100 requests, or 25 with `categoryId`; `/api/parts/{vin}` without `group`, `section` or `ref_code` counts as 100. An export answered with an error or with no parts counts as one.\n\n## 2026-10-15\n\n- `/identify`, `/vehicle`, `/diagram`, `/all-parts` and `/api/parts/{vin}` take a frame number as printed: with its hyphen or a space (`KDH200-0012345`), in full-width characters, or with the 6-digit serial of an older plate (`AE86-233000`).\n- `/parts/{pn}` and `/compatibility`: a number without its colour or specification suffix (`45100-47130`) answers for all of its suffixed numbers (`45100-47130-B0`, `45100-47130-C0`).\n- `/compatibility` and `/parts/{pn}` `models` include standard parts printed on drawings by their full number (`stdParts`): the model codes and catalogues of those drawings.\n\n## 2026-09-30\n\n- API keys are issued automatically: your key arrives by email within a minute of payment and is always in your account under **API**.\n\n## 2026-09-29\n\n- Without `vin`, `/vehicle`, `/diagram` and `/all-parts` answer for the requested `modelCode` only; before, groups and rows of other modifications of the same catalogue were included.\n- `/all-parts`: each section holds exactly the parts drawn on its group's figures — parts that were missing appear, parts filed under another group moved to their own, repeated rows are gone.\n- `/parts/{pn}`: `names`, `primary_name`, `ref_code` and `diagrams` come from the callout the part is listed under; numbers with a colour or specification suffix return their `models`; `diagrams[].region` works with `/img/diagram`; unknown numbers return empty lists.\n- Replacements are followed to the end of their chain; one-to-one replacements apply even when the first five characters of the number change; `SUB` rows carry `qty`.\n- `spec` and `destination` come only from the row's own catalogue record.\n- `/selector` lists every production year, 2026 included; lowercase VINs keep the model year in multi-candidate answers; `/diagram` returns no parts for a year without figures; `destination=` accepts names such as `U.K.`, and comma-separated market lists are read in full; `/api/parts/{vin}` callout boxes match `/diagram`.\n\n# Support\n\nWrite to [support@toyotaepc.com](mailto:support@toyotaepc.com) with the request URL and the response you got.\n","contact":{"name":"ToyotaEPC support","email":"support@toyotaepc.com"}},"servers":[{"url":"https://api.toyotaepc.com"}],"security":[{"apiKey":[]}],"tags":[{"name":"Identify","description":"Start here: turn a VIN into the vehicle, or browse to one without a VIN."},{"name":"Equipment","description":"What a car has from the factory, what it lacks, and the genuine accessories that fit it."},{"name":"Vehicle catalogue","description":"The catalogue of one vehicle: categories, diagram groups and every part in one call."},{"name":"Diagrams","description":"Exploded views: the parts on a figure, its callout boxes and the drawing."},{"name":"Parts","description":"Everything keyed by part number: names, figures, replacements and the vehicles it fits."},{"name":"Reference","description":"Values the filters accept."},{"name":"Legacy","description":"Earlier response formats, kept for integrations built on them."}],"x-tagGroups":[{"name":"API reference","tags":["Identify","Equipment","Vehicle catalogue","Diagrams","Parts","Reference"]},{"name":"Legacy","tags":["Legacy"]}],"paths":{"/identify":{"get":{"tags":["Identify"],"operationId":"identifyVehicle","summary":"Decode a VIN","description":"Decodes a VIN — or a frame number such as `KDH2000012345`, also as printed on the plate: with its hyphen or a space (`KDH200-0012345`), in full-width characters, or with the 6-digit serial of an older plate (`AE86-233000`) — into the vehicle it belongs to. `items` usually holds one vehicle; it holds several when the VIN matches more than one (let the user choose by engine, transmission or production), and none when the VIN is unknown.\n\n`details` is an object with everything decoded when `decode` is `full`. When the VIN points to a model family, `decode` is `multi`: every candidate is listed, `details` is a list of key/value pairs and `year` is the model year read from the VIN, or absent. To continue with a candidate, use a `year` inside its `production` range.\n\nVINs are read case-insensitively; the letters I, O and Q, which VINs never use, are read as 1, 0 and 0.","parameters":[{"name":"vin","in":"query","required":true,"schema":{"type":"string"},"description":"17-character VIN, or a frame number as printed: `KDH2000012345`, `KDH200-0012345`.","example":"1NXBR32E68Z959363"},{"name":"lang","in":"query","required":false,"schema":{"type":"string","enum":["en","de","es","fr","ja"],"default":"en"},"description":"Language of the `…Description` fields: `en` for every vehicle; `de`, `es` and `fr` for `NA`, `EU` and `OTHER`; `ja` for `JP`."}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifyResponse"},"examples":{"full":{"summary":"One vehicle (decode: full)","value":{"vin":"1NXBR32E68Z959363","items":[{"region":"NA","year":"2007","model":"COROLLA-MATRIX-NAP","modelCode":"ZZE130L-DEPNKA","details":{"catalogCode":"155450","engine":"1ZZFE","transmission":"ATM  4F","transmissionDescription":"AUTOMATIC TRANSMISSION","body":"SED","bodyDescription":"SEDAN","grade":"LE","gradeDescription":"LE TYPE","destination":"USA","destinationDescription":"UNITED STATES OF AMERICA","colorCode":"3P1","trimCode":"FB11","modelShort":"ZZE130","frame":"ZZE130L-DEPNKA","production":"200201-200801","productionDate":"200707","decode":"full"}}]}},"multi":{"summary":"Several candidates (decode: multi)","value":{"vin":"JT2AL32W7D0065702","items":[{"region":"NA","year":"1983","model":"TERCEL","modelCode":"AL25LG-ZWFDCA","details":[{"key":"catalogCode","value":"131420"},{"key":"engine","value":"3AC"},{"key":"transmission","value":"MTM  6F"},{"key":"transmissionDescription","value":"MANUAL TRANSMISSION, MTM, 6-SPEED FLOOR SHIFT"},{"key":"body","value":"WG"},{"key":"bodyDescription","value":"WAGON"},{"key":"grade","value":"DLX"},{"key":"gradeDescription","value":"DLX TYPE"},{"key":"destination","value":"USA"},{"key":"destinationDescription","value":"UNITED STATES OF AMERICA"},{"key":"production","value":"198208-198801"},{"key":"decode","value":"multi"}]},{"region":"NA","year":"1983","model":"TERCEL","modelCode":"AL25LG-ZWFDCK","details":[{"key":"catalogCode","value":"131420"},{"key":"engine","value":"3AC"},{"key":"transmission","value":"MTM  6F"},{"key":"transmissionDescription","value":"MANUAL TRANSMISSION, MTM, 6-SPEED FLOOR SHIFT"},{"key":"body","value":"WG"},{"key":"bodyDescription","value":"WAGON"},{"key":"grade","value":"DLX"},{"key":"gradeDescription","value":"DLX TYPE"},{"key":"destination","value":"CND"},{"key":"destinationDescription","value":"CANADA"},{"key":"production","value":"198208-198801"},{"key":"decode","value":"multi"}]},{"region":"NA","year":"1983","model":"TERCEL","modelCode":"AL25LG-ZWHDCA","details":[{"key":"catalogCode","value":"131420"},{"key":"engine","value":"3AC"},{"key":"transmission","value":"ATM  3F"},{"key":"transmissionDescription","value":"AUTOMATIC TRANSMISSION"},{"key":"body","value":"WG"},{"key":"bodyDescription","value":"WAGON"},{"key":"grade","value":"DLX"},{"key":"gradeDescription","value":"DLX TYPE"},{"key":"destination","value":"USA"},{"key":"destinationDescription","value":"UNITED STATES OF AMERICA"},{"key":"production","value":"198402-198801"},{"key":"decode","value":"multi"}]}]}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -H \"x-api-key: $KEY\" --compressed \"https://api.toyotaepc.com/identify?vin=1NXBR32E68Z959363\""},{"lang":"JavaScript","label":"Node.js","source":"const res = await fetch(\"https://api.toyotaepc.com/identify?vin=1NXBR32E68Z959363\", {\n  headers: { \"x-api-key\": process.env.TOYOTAEPC_KEY },\n});\nconst data = await res.json();"},{"lang":"Python","label":"Python (requests)","source":"import os, requests\n\nres = requests.get(\n    \"https://api.toyotaepc.com/identify\",\n    params={\"vin\": \"1NXBR32E68Z959363\"},\n    headers={\"x-api-key\": os.environ[\"TOYOTAEPC_KEY\"]},\n    timeout=30,\n)\ndata = res.json()"}]}},"/equipment":{"get":{"tags":["Equipment"],"operationId":"vehicleEquipment","summary":"Factory equipment by VIN","description":"What a vehicle has from the factory: every option line of its build data in Toyota's words, grouped, with abbreviations spelled out; the options it does not have, and whether Toyota fitted them to this version, to this version later, or only to other versions; and the genuine dealer-fit accessories that fit it, matched to its colour and market. `vehicle` carries the fields `/identify` gives for the same VIN; to open the vehicle's catalogue, take `model` from `/identify`.\n\nAvailable on the Business and Enterprise plans; any other key gets `403` and uses up nothing. Counts as 100 requests; a VIN without Toyota build data (`status: no_build_data`, usually a car built before about 2005) or one that does not decode counts as 1 request.\n\nJapanese-market cars, which carry a frame number instead of a VIN, answer `no_build_data` for now; a special-version frame number (Welcab, G's and the like), which `/identify` reads as its base model, is `not_decoded` here; both count as 1 request. Pictures (`image`) are on toyotaepc.com: download each one once and keep it.","parameters":[{"name":"vin","in":"query","required":true,"schema":{"type":"string"},"description":"17-character VIN, or a frame number as printed: `KDH2000012345`, `KDH200-0012345`.","example":"JTMAC7BJXT4000126"}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentResponse"},"examples":{"ok":{"summary":"A car with Toyota build data","value":{"vin":"JTMAC7BJXT4000126","status":"ok","vehicle":{"region":"EU","catalogCode":"791270","modelCode":"VJH300L-GNVSZV","modelShort":"VJH300","productionDate":"202504","colorCode":"040","colorName":"SUPER WHITE 2","trimCode":"LA31"},"version":"GR SPORT","markets":["QATAR SPEC"],"options":45,"equipment":[{"group":"safety","category":"ACTIVE SAFETY PACKAGE","value":"WITH(TOYOTA SAFETY SENSE)","fitted":true,"abbreviations":{}},{"group":"safety","category":"ANTI-THEFT SYSTEM","value":"WITH(IMMOBILIZER & SECURITY HORN)","fitted":true,"abbreviations":{}},{"group":"safety","category":"CAMERA","value":"WITH","fitted":true,"abbreviations":{}}],"notFitted":[{"category":"SIDE PROTECTIVE MOULDING","has":"WITHOUT","option":"WITH (ACCESSORY)","case":"other_versions","availableFrom":null,"abbreviations":{}},{"category":"WINDSHIELD DEICER","has":"WITHOUT","option":"WITH(FOR WIPER) & WITH(*EHL)","case":"this_version","availableFrom":null,"abbreviations":{"EHL":"ELECTRICAL HEATED LAMINATED GLASS"}},{"category":"WINDSHIELD DEICER","has":"WITHOUT","option":"WITH(FOR WIPER)","case":"other_versions","availableFrom":null,"abbreviations":{}}],"accessories":[{"partNumber":"PZ325-60054","name":"GARNISH, BACK DOOR","qty":"1","note":"","modelYear":2025,"markets":["GCC","JORDAN","LEBANON"],"image":"https://toyotaepc.com/jpio/037J_24R06-035_01.w480.webp"},{"partNumber":"PZ316-60112","name":"EMBLEM, BODY SIDE","qty":"2","note":"MODEL NAME EMBLEM,BLACK PAINT","modelYear":2025,"markets":["BAHRAIN","QATAR","KUWAIT"],"image":"https://toyotaepc.com/jpio/037J_24R06-035_01.w480.webp"},{"partNumber":"PZ344-60178","name":"STRIPE, FR FENDER, RH","qty":"1","note":"(GR-S-TYPE A)RED  SILVER","modelYear":2025,"markets":["GCC","JORDAN","LEBANON"],"image":"https://toyotaepc.com/jpio/037J_24R06-035_02.w480.webp"}],"accessoriesHidden":{"otherColour":32,"otherMarket":4}}},"noData":{"summary":"A car without build data (status: no_build_data)","value":{"vin":"JT3HJ09J3Y0025857","status":"no_build_data","vehicle":{"region":"OTHER","catalogCode":"791350","modelCode":"FZJ100L-GNPNKV","modelShort":"FZJ100","productionDate":"200002","colorCode":"1B1","colorName":"Gray Me.","trimCode":"FJ41"},"version":null,"markets":[],"options":0,"equipment":[],"notFitted":[],"accessories":[{"partNumber":"PZ330-60000-A1","name":"COVER, SIDE DOOR STEP PLATE, FR RH","qty":"1","note":"UCA46","modelYear":null,"markets":["MIDDLE EAST"],"image":null},{"partNumber":"PZ330-60000-B3","name":"COVER, SIDE DOOR STEP PLATE, FR RH","qty":"1","note":"UCA31","modelYear":null,"markets":["MIDDLE EAST"],"image":null},{"partNumber":"PZ330-60002","name":"REINFORCE, SIDE PANEL  No.2","qty":"1","note":"","modelYear":null,"markets":["MIDDLE EAST"],"image":null}],"accessoriesHidden":{"otherColour":261,"otherMarket":108}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/PlanRequired"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -H \"x-api-key: $KEY\" --compressed \"https://api.toyotaepc.com/equipment?vin=JTMAC7BJXT4000126\""},{"lang":"JavaScript","label":"Node.js","source":"const res = await fetch(\"https://api.toyotaepc.com/equipment?vin=JTMAC7BJXT4000126\", {\n  headers: { \"x-api-key\": process.env.TOYOTAEPC_KEY },\n});\nconst data = await res.json();"},{"lang":"Python","label":"Python (requests)","source":"import os, requests\n\nres = requests.get(\n    \"https://api.toyotaepc.com/equipment\",\n    params={\"vin\": \"JTMAC7BJXT4000126\"},\n    headers={\"x-api-key\": os.environ[\"TOYOTAEPC_KEY\"]},\n    timeout=30,\n)\ndata = res.json()"}]}},"/selector":{"get":{"tags":["Identify"],"operationId":"browseCatalogue","summary":"Browse region → year → model → model code","description":"Walks the catalogue one level at a time for callers without a VIN. Without parameters it lists the regions; add each choice to go one level down: `?region=NA` lists years, `?region=NA&year=2007` lists models, adding `model` lists model codes. `next` names the level `options` belongs to and `selected` echoes the choices so far.\n\nAt the model-code level `items` carries each model code with its catalogue and details. Pass `region`, `year`, `model`, `modelCode` and `catalogCode` to `/vehicle`.","parameters":[{"name":"region","in":"query","required":false,"schema":{"type":"string","enum":["NA","EU","JP","OTHER"]},"description":"Region; omit it for the list of regions.","example":"NA"},{"name":"year","in":"query","required":false,"schema":{"type":"integer"},"description":"Year, from the previous level.","example":2007},{"name":"model","in":"query","required":false,"schema":{"type":"string"},"description":"Model, from the previous level.","example":"COROLLA-MATRIX-NAP"}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectorResponse"},"example":{"selected":{"region":"NA","year":2007,"model":"COROLLA-MATRIX-NAP"},"next":"modelCode","options":[{"value":"ZZE130L-DEMDKA","label":"ZZE130L-DEMDKA"},{"value":"ZZE130L-DEMDKK","label":"ZZE130L-DEMDKK"},{"value":"ZZE130L-DEMNKA","label":"ZZE130L-DEMNKA"}],"filters":[],"items":[{"region":"NA","year":"2007","model":"COROLLA-MATRIX-NAP","modelCode":"ZZE130L-DEMDKA","details":[{"key":"catalogCode","value":"155450"},{"key":"engine","value":"1ZZFE"},{"key":"transmission","value":"MTM  5F"},{"key":"driversPosition"}]},{"region":"NA","year":"2007","model":"COROLLA-MATRIX-NAP","modelCode":"ZZE130L-DEMDKK","details":[{"key":"catalogCode","value":"155450"},{"key":"engine","value":"1ZZFE"},{"key":"transmission","value":"MTM  5F"},{"key":"driversPosition"}]},{"region":"NA","year":"2007","model":"COROLLA-MATRIX-NAP","modelCode":"ZZE130L-DEMNKA","details":[{"key":"catalogCode","value":"155450"},{"key":"engine","value":"1ZZFE"},{"key":"transmission","value":"MTM  5F"},{"key":"driversPosition"}]}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}}}},"/vehicle":{"get":{"tags":["Vehicle catalogue"],"operationId":"getVehicle","summary":"Categories and diagram groups of a vehicle","description":"The catalogue of one vehicle: its categories (1 Engine / Fuel / Tool, 2 Chassis / Driveline, 3 Body, 4 Electrical) and, in each, the diagram groups. A group's `diagramId` opens it in `/diagram`; `image` is the path of its first drawing.\n\nWithout `vin` the tree covers the model code's modification; with `vin` it is narrowed to that car.","parameters":[{"name":"region","in":"query","required":true,"schema":{"type":"string","enum":["NA","EU","JP","OTHER"]},"description":"Region of the vehicle, from `/identify` or `/selector`.","example":"NA"},{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":1960,"maximum":2035},"description":"Year of production, from `/identify` or `/selector`. Without `vin` the answer describes the modification as built in January of that year (or in its first month, if production started later that year); with `vin`, the car's production month is used.","example":2007},{"name":"model","in":"query","required":true,"schema":{"type":"string"},"description":"Model name, from `/identify` or `/selector`.","example":"COROLLA-MATRIX-NAP"},{"name":"modelCode","in":"query","required":true,"schema":{"type":"string"},"description":"Model code, from `/identify` or `/selector`; it must belong to `model`.","example":"ZZE130L-DEPNKA"},{"name":"catalogCode","in":"query","required":false,"schema":{"type":"string"},"description":"Catalogue, from `/identify` (`details.catalogCode`) or `/selector` item details. Pins the catalogue when the model code appears in more than one.","example":"155450"},{"name":"categoryId","in":"query","required":false,"schema":{"type":"integer","enum":[1,2,3,4]},"description":"Limit the answer to one category: 1 Engine / Fuel / Tool, 2 Chassis / Driveline, 3 Body, 4 Electrical. Omit it for every category.","example":1},{"name":"vin","in":"query","required":false,"schema":{"type":"string"},"description":"VIN (or frame number) of the car. When it decodes to one vehicle (`decode: full`), narrows the answer to that car: its production month, colour and options.","example":"1NXBR32E68Z959363"},{"name":"lang","in":"query","required":false,"schema":{"type":"string","enum":["en","de","es","fr","ja"],"default":"en"},"description":"Language of part and group names: `en` in every catalogue; `de`, `es` and `fr` in `NA`, `EU` and `OTHER`; `ja` in `JP`."}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResponse"},"example":{"vehicle":{"region":"NA","year":2007,"model":"COROLLA-MATRIX-NAP","modelCode":"ZZE130L-DEPNKA","catalogCode":"155450","engine":"1ZZFE","transmission":"ATM  4F","transmissionDescription":"AUTOMATIC TRANSMISSION","body":"SED","bodyDescription":"SEDAN","grade":"LE","gradeDescription":"LE TYPE","destination":"USA","destinationDescription":"UNITED STATES OF AMERICA","production":"200201-200801","frame":"ZZE130L-DEPNKA","modelShort":"ZZE130","productionDate":"200707","colorCode":"3P1","trimCode":"FB11"},"categories":[{"categoryId":1,"label":"Engine / Fuel / Tool","groups":[{"diagramId":"0901","name":"STANDARD TOOL","image":"/img/diagram/US/090171B"},{"diagramId":"1101","name":"PARTIAL ENGINE ASSEMBLY","image":"/img/diagram/US/111532"},{"diagramId":"1102","name":"SHORT BLOCK ASSEMBLY","image":"/img/diagram/US/111585"}]}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -H \"x-api-key: $KEY\" --compressed \"https://api.toyotaepc.com/vehicle?region=NA&year=2007&model=COROLLA-MATRIX-NAP&modelCode=ZZE130L-DEPNKA&catalogCode=155450&vin=1NXBR32E68Z959363\""},{"lang":"JavaScript","label":"Node.js","source":"const res = await fetch(\"https://api.toyotaepc.com/vehicle?region=NA&year=2007&model=COROLLA-MATRIX-NAP&modelCode=ZZE130L-DEPNKA&catalogCode=155450&vin=1NXBR32E68Z959363\", {\n  headers: { \"x-api-key\": process.env.TOYOTAEPC_KEY },\n});\nconst data = await res.json();"},{"lang":"Python","label":"Python (requests)","source":"import os, requests\n\nres = requests.get(\n    \"https://api.toyotaepc.com/vehicle\",\n    params={\"region\": \"NA\", \"year\": 2007, \"model\": \"COROLLA-MATRIX-NAP\", \"modelCode\": \"ZZE130L-DEPNKA\", \"catalogCode\": \"155450\", \"vin\": \"1NXBR32E68Z959363\"},\n    headers={\"x-api-key\": os.environ[\"TOYOTAEPC_KEY\"]},\n    timeout=30,\n)\ndata = res.json()"}]}},"/diagram":{"get":{"tags":["Diagrams"],"operationId":"getDiagram","summary":"Parts, drawing and callouts of a diagram group","description":"The parts of one diagram group and the drawing they are shown on. A group can span several figures (pages): `diagrams` lists them, and the answer covers `currentDiagram` — the figure passed in `diag`, or the first one. Request each figure to show every page of the group.\n\n- `spareParts` — the parts on that figure, one row per callout and catalogue number.\n- `imageUrl` — path of the drawing; `coordinates` — the callout boxes on it, in pixels of the image at its natural size.\n- `stdParts` — standard parts printed on the drawing by their full number.\n\nWithout `vin` the rows cover the model code's modification in every colour, trim and option; with `vin` they are narrowed to that car. When a catalogue number has been replaced, `partNumber` shows the current number and `parentPn` the catalogue number.","parameters":[{"name":"region","in":"query","required":true,"schema":{"type":"string","enum":["NA","EU","JP","OTHER"]},"description":"Region of the vehicle, from `/identify` or `/selector`.","example":"NA"},{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":1960,"maximum":2035},"description":"Year of production, from `/identify` or `/selector`. Without `vin` the answer describes the modification as built in January of that year (or in its first month, if production started later that year); with `vin`, the car's production month is used.","example":2007},{"name":"model","in":"query","required":true,"schema":{"type":"string"},"description":"Model name, from `/identify` or `/selector`.","example":"COROLLA-MATRIX-NAP"},{"name":"modelCode","in":"query","required":true,"schema":{"type":"string"},"description":"Model code, from `/identify` or `/selector`; it must belong to `model`.","example":"ZZE130L-DEPNKA"},{"name":"catalogCode","in":"query","required":false,"schema":{"type":"string"},"description":"Catalogue, from `/identify` (`details.catalogCode`) or `/selector` item details. Pins the catalogue when the model code appears in more than one.","example":"155450"},{"name":"categoryId","in":"query","required":true,"schema":{"type":"integer","enum":[1,2,3,4]},"description":"Category of the group, from `/vehicle`.","example":1},{"name":"diagramId","in":"query","required":true,"schema":{"type":"string"},"description":"Group, from `/vehicle` `groups[].diagramId` — a string: keep leading zeros.","example":"1502"},{"name":"diag","in":"query","required":false,"schema":{"type":"string"},"description":"Figure to show, from `diagrams[].figure_code`; the first figure when omitted."},{"name":"destination","in":"query","required":false,"schema":{"type":"string"},"description":"Delivery market, a name from `/destinations` (case-insensitive). Rows built for a different market are left out; rows that name no market stay. `GENERAL` keeps only rows that name no market."},{"name":"vin","in":"query","required":false,"schema":{"type":"string"},"description":"VIN (or frame number) of the car. When it decodes to one vehicle (`decode: full`), narrows the answer to that car: its production month, colour and options.","example":"1NXBR32E68Z959363"},{"name":"lang","in":"query","required":false,"schema":{"type":"string","enum":["en","de","es","fr","ja"],"default":"en"},"description":"Language of part and group names: `en` in every catalogue; `de`, `es` and `fr` in `NA`, `EU` and `OTHER`; `ja` in `JP`."}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagramResponse"},"example":{"vehicle":{"region":"NA","year":2007,"model":"COROLLA-MATRIX-NAP","modelCode":"ZZE130L-DEPNKA","catalogCode":"155450","engine":"1ZZFE","transmission":"ATM  4F","transmissionDescription":"AUTOMATIC TRANSMISSION","body":"SED","bodyDescription":"SEDAN","grade":"LE","gradeDescription":"LE TYPE","destination":"USA","destinationDescription":"UNITED STATES OF AMERICA","production":"200201-200801","frame":"ZZE130L-DEPNKA","modelShort":"ZZE130","productionDate":"200707","colorCode":"3P1","trimCode":"FB11"},"categories":[{"categoryId":1,"label":"Engine / Fuel / Tool","groups":[{"diagramId":"0901","name":"STANDARD TOOL","image":"/img/diagram/US/090171B"},{"diagramId":"1101","name":"PARTIAL ENGINE ASSEMBLY","image":"/img/diagram/US/111532"},{"diagramId":"1102","name":"SHORT BLOCK ASSEMBLY","image":"/img/diagram/US/111585"}]}],"sectionName":"OIL FILTER","categoryId":1,"diagramId":"1502","diagrams":[{"figure_code":"150151G","fig_num":"0001","image_url":"/img/diagram/US/150151G"}],"currentDiagram":"150151G","imageUrl":"/img/diagram/US/150151G","spareParts":[{"partNumber":"90904-04002","callout":"15600A","description":"UNION(FOR OIL FILTER)","qty":"01","variant":"1ZZFE,2ZZGE..ZZE130,131..NAP","dateFrom":"200405","dateTo":"999999","type":"BASE"},{"partNumber":"90915-10009","callout":"15601","description":"FILTER SUB-ASSY, OIL","qty":"01","variant":"1ZZFE..ZZE130..NAP","spec":"(Japan made)","dateFrom":"200412","dateTo":"999999","type":"BASE","parentPn":"90915-10003"},{"partNumber":"90915-10009","callout":"15601","description":"FILTER SUB-ASSY, OIL","qty":"01","variant":"1ZZFE..ZZE130..NAP","spec":"(Local made)","dateFrom":"200412","dateTo":"999999","type":"BASE","parentPn":"90915-TA001"}],"coordinates":[{"callout":"15600A","codeType":"H","x":445,"y":101,"width":79,"height":16},{"callout":"15601","codeType":"H","x":485,"y":269,"width":67,"height":16}],"totalParts":3}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -H \"x-api-key: $KEY\" --compressed \"https://api.toyotaepc.com/diagram?region=NA&year=2007&model=COROLLA-MATRIX-NAP&modelCode=ZZE130L-DEPNKA&catalogCode=155450&vin=1NXBR32E68Z959363&categoryId=1&diagramId=1502\""},{"lang":"JavaScript","label":"Node.js","source":"const res = await fetch(\"https://api.toyotaepc.com/diagram?region=NA&year=2007&model=COROLLA-MATRIX-NAP&modelCode=ZZE130L-DEPNKA&catalogCode=155450&vin=1NXBR32E68Z959363&categoryId=1&diagramId=1502\", {\n  headers: { \"x-api-key\": process.env.TOYOTAEPC_KEY },\n});\nconst data = await res.json();"},{"lang":"Python","label":"Python (requests)","source":"import os, requests\n\nres = requests.get(\n    \"https://api.toyotaepc.com/diagram\",\n    params={\"region\": \"NA\", \"year\": 2007, \"model\": \"COROLLA-MATRIX-NAP\", \"modelCode\": \"ZZE130L-DEPNKA\", \"catalogCode\": \"155450\", \"vin\": \"1NXBR32E68Z959363\", \"categoryId\": 1, \"diagramId\": \"1502\"},\n    headers={\"x-api-key\": os.environ[\"TOYOTAEPC_KEY\"]},\n    timeout=30,\n)\ndata = res.json()"}]}},"/compatibility":{"get":{"tags":["Parts"],"operationId":"getCompatibility","summary":"Vehicles a part number fits","description":"Every model code whose catalogue lists the part number, checked against each modification's specification and production dates. Each item carries the region, the first production year of the model code, the model, the model code and its details. Vehicles that receive the number as a replacement are listed under the number it replaces. A standard part printed on a drawing by its full number fits the model codes that drawing is shown for. A number given without its colour or specification suffix (`45100-47130`) answers for all of its suffixed numbers.\n\nCommon parts fit thousands of vehicles — an oil filter: over 4,000 items, about 1 MB. Request it with gzip and cache it.","parameters":[{"name":"partNumber","in":"query","required":true,"schema":{"type":"string"},"description":"Part number, with or without hyphens.","example":"90915-10009"}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatibilityResponse"},"example":{"partNumber":"90915-10009","items":[{"region":"EU","year":"2022","model":"AYGO-X","modelCode":"KGB70L-AHMGKW","details":[{"key":"catalogCode","value":"101530"},{"key":"engine","value":"1KRFE"},{"key":"transmission","value":"MTM  5F"},{"key":"driversPosition","value":"LHD"},{"key":"destination"}]},{"region":"EU","year":"2022","model":"AYGO-X","modelCode":"KGB70L-AHMKKW","details":[{"key":"catalogCode","value":"101530"},{"key":"engine","value":"1KRFE"},{"key":"transmission","value":"MTM  5F"},{"key":"driversPosition","value":"LHD"},{"key":"destination"}]},{"region":"EU","year":"2022","model":"AYGO-X","modelCode":"KGB70L-AHMNKW","details":[{"key":"catalogCode","value":"101530"},{"key":"engine","value":"1KRFE"},{"key":"transmission","value":"MTM  5F"},{"key":"driversPosition","value":"LHD"},{"key":"destination"}]}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}}}},"/all-parts":{"get":{"tags":["Vehicle catalogue"],"operationId":"getAllParts","summary":"Every part of a vehicle in one call","description":"All part rows of a vehicle in `sections` — one per diagram group with part rows, holding the parts drawn on any of the group's figures, one row per callout and part number. Replaced numbers are shown as their current number. Standard parts printed on the drawings by their full number are not included; `/diagram` lists them in `stdParts`. Omit `categoryId` for the whole vehicle or pass 1–4 for one category; the example answer is for `categoryId=1`.\n\nCounts as 100 requests, or 25 with `categoryId`; an answer with an error or with no parts counts as one. The body is large: fetch it once per vehicle and cache it.","parameters":[{"name":"region","in":"query","required":true,"schema":{"type":"string","enum":["NA","EU","JP","OTHER"]},"description":"Region of the vehicle, from `/identify` or `/selector`.","example":"NA"},{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":1960,"maximum":2035},"description":"Year of production, from `/identify` or `/selector`. Without `vin` the answer describes the modification as built in January of that year (or in its first month, if production started later that year); with `vin`, the car's production month is used.","example":2007},{"name":"model","in":"query","required":true,"schema":{"type":"string"},"description":"Model name, from `/identify` or `/selector`.","example":"COROLLA-MATRIX-NAP"},{"name":"modelCode","in":"query","required":true,"schema":{"type":"string"},"description":"Model code, from `/identify` or `/selector`; it must belong to `model`.","example":"ZZE130L-DEPNKA"},{"name":"catalogCode","in":"query","required":false,"schema":{"type":"string"},"description":"Catalogue, from `/identify` (`details.catalogCode`) or `/selector` item details. Pins the catalogue when the model code appears in more than one.","example":"155450"},{"name":"categoryId","in":"query","required":false,"schema":{"type":"integer","enum":[1,2,3,4]},"description":"Limit the answer to one category: 1 Engine / Fuel / Tool, 2 Chassis / Driveline, 3 Body, 4 Electrical. Omit it for every category.","example":1},{"name":"vin","in":"query","required":false,"schema":{"type":"string"},"description":"VIN (or frame number) of the car. When it decodes to one vehicle (`decode: full`), narrows the answer to that car: its production month, colour and options.","example":"1NXBR32E68Z959363"},{"name":"lang","in":"query","required":false,"schema":{"type":"string","enum":["en","de","es","fr","ja"],"default":"en"},"description":"Language of part and group names: `en` in every catalogue; `de`, `es` and `fr` in `NA`, `EU` and `OTHER`; `ja` in `JP`."}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllPartsResponse"},"example":{"vin":"1NXBR32E68Z959363","vehicle":{"region":"NA","year":"2007","model":"COROLLA-MATRIX-NAP","modelCode":"ZZE130L-DEPNKA","catalogCode":"155450","engine":"1ZZFE","transmission":"ATM  4F","body":"SED","grade":"LE","destination":"USA","production":"200201-200801"},"totalSections":24,"totalParts":349,"sections":[{"diagramId":"0901","name":"STANDARD TOOL","image":"/img/diagram/US/090171B","parts":[{"partNumber":"09111-02091","callout":"09110","description":"JACK ASSY","qty":"01","dateFrom":"200405","dateTo":"999999"},{"partNumber":"09113-01010","callout":"09113","description":"HANDLE, JACK","qty":"01","dateFrom":"200405","dateTo":"999999"},{"partNumber":"09150-40010","callout":"09150","description":"WRENCH, HUB NUT BOX","qty":"01","dateFrom":"200405","dateTo":"999999"}]},{"diagramId":"1101","name":"PARTIAL ENGINE ASSEMBLY","image":"/img/diagram/US/111532","parts":[{"partNumber":"19000-22292","callout":"11000","description":"ENGINE ASSY, PARTIAL","qty":"01","dateFrom":"200405","dateTo":"200801"}]},{"diagramId":"1102","name":"SHORT BLOCK ASSEMBLY","image":"/img/diagram/US/111585","parts":[{"partNumber":"11400-22531","callout":"11400","description":"BLOCK ASSY, SHORT","qty":"01","dateFrom":"200505","dateTo":"200801"}]}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}}}},"/parts/{pn}":{"get":{"tags":["Parts"],"operationId":"getPart","summary":"Everything about one part number","description":"Names, figures, catalogues, price and replacements of one part number, without knowing the vehicle.\n\n`ref_code` and `names` are those of the callout the catalogue lists the number under. `diagrams` are the figures it is printed on — use `region` and `figure_code` with `/img/diagram`. `models` are the catalogues whose parts list or drawings print it; to check fitment per modification, use `/compatibility`. A vehicle that receives the number as a replacement shows it in `/diagram` under the number it replaces. `price` is Toyota Japan's list price in yen. A number given without its colour or specification suffix (`45100-47130`) answers for all of its suffixed numbers.\n\n`supersededBy` lists every number that replaces this one. A number can have more than one successor, each for the Toyota sales markets in `catalogs`; with a vehicle at hand, `/diagram` shows the one that applies to it. `isSuperseded` is `true` when any market has a successor.","parameters":[{"name":"pn","in":"path","required":true,"schema":{"type":"string"},"description":"Part number with or without hyphens, e.g. `04111-36043`, `0411136043`, `52151-60230-A2`.","example":"04111-36043"}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartDetailResponse"},"example":{"data":{"part_input":"04111-36043","ref_code":"04111","full_pn":"04111-36043","primary_name":"GASKET KIT, ENGINE OVERHAUL","names":[{"lang":"de","region":"EU","part_name":"DICHTUNGSSATZ, MOTOR-UEBERHOLUNGS-"},{"lang":"en","region":"EU","part_name":"GASKET KIT, ENGINE OVERHAUL"},{"lang":"es","region":"EU","part_name":"CONJUNTO DEL MOTOR, PARCIAL"}],"models":[{"region":"JP","modelCode":"AGL10W-AWTGK","catalogCode":"521130"},{"region":"JP","modelCode":"GGL10W-AWTGK","catalogCode":"521130"},{"region":"JP","modelCode":"GGL15W-AWTGK","catalogCode":"521130"}],"diagrams":[{"region":"GR","figure_code":"119321C"},{"region":"GR","figure_code":"119322A"},{"region":"JP","figure_code":"116606A"}],"price":47000,"price_currency":"JPY","supersededBy":[{"partNumber":"04111-0V031","current":"04111-0V031","chain":[],"sources":["chohin"],"regions":["EU","NA","OTHER"],"catalogs":["100","102","104"]},{"partNumber":"04111-0V052","current":"04111-0V053","chain":["04111-0V052","04111-0V053"],"sources":["chohin"],"regions":["EU","NA","OTHER"],"catalogs":["C03"]},{"partNumber":"04111-36044","current":"04111-36044","chain":[],"sources":["parts_master"],"regions":["EU","JP","NA"],"catalogs":[]}],"isSuperseded":true}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -H \"x-api-key: $KEY\" --compressed \"https://api.toyotaepc.com/parts/90915-10009\""},{"lang":"JavaScript","label":"Node.js","source":"const res = await fetch(\"https://api.toyotaepc.com/parts/90915-10009\", {\n  headers: { \"x-api-key\": process.env.TOYOTAEPC_KEY },\n});\nconst data = await res.json();"},{"lang":"Python","label":"Python (requests)","source":"import os, requests\n\nres = requests.get(\n    \"https://api.toyotaepc.com/parts/90915-10009\",\n    headers={\"x-api-key\": os.environ[\"TOYOTAEPC_KEY\"]},\n    timeout=30,\n)\ndata = res.json()"}]}},"/api/parts/{vin}":{"get":{"tags":["Legacy"],"operationId":"getPartsByVinLegacy","summary":"Parts list for a VIN (earlier format)","description":"The earlier format of a VIN parts list, kept for integrations built on it; new integrations use `/identify` → `/vehicle` → `/diagram`. `group` limits it to one diagram group and adds the group's figures, the callout boxes of its first figure and its standard parts. Without `group`, `section` or `ref_code` it lists every part of the vehicle and counts as 100 requests.","parameters":[{"name":"vin","in":"path","required":true,"schema":{"type":"string"},"description":"17-character VIN, or a frame number such as `KDH2000012345`.","example":"1NXBR32E68Z959363"},{"name":"group","in":"query","required":false,"schema":{"type":"string"},"description":"Diagram group, e.g. `1502`.","example":"1502"},{"name":"section","in":"query","required":false,"schema":{"type":"string"},"description":"Two-digit section, e.g. `15`."},{"name":"ref_code","in":"query","required":false,"schema":{"type":"string"},"description":"One callout."},{"name":"destination","in":"query","required":false,"schema":{"type":"string"},"description":"Delivery market, a name from `/destinations` (case-insensitive). Rows built for a different market are left out; rows that name no market stay. `GENERAL` keeps only rows that name no market."},{"name":"lang","in":"query","required":false,"schema":{"type":"string","enum":["en","de","es","fr","ja"],"default":"en"},"description":"Language of part and group names: `en` in every catalogue; `de`, `es` and `fr` in `NA`, `EU` and `OTHER`; `ja` in `JP`."}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyPartsResponse"},"example":{"vin":"1NXBR32E68Z959363","vehicle":{"region":"US","model_dir":"155450","frame":"ZZE130L-DEPNKA","prod_date":"200707"},"total_parts":3,"total_ref_codes":2,"parts":[{"ref_code":"15600A","ref_name":"UNION(FOR OIL FILTER)","part_number":"90904-04002","part_number_raw":"90904-04002","position":"000038","description":"1ZZFE,2ZZGE..ZZE130,131..NAP","date_from":"200405","date_to":"999999","is_x_record":false,"variant_ref":"300W","type":"BASE"},{"ref_code":"15601","ref_name":"FILTER SUB-ASSY, OIL","part_number":"90915-10009","part_number_raw":"9091510009","position":"000036","description":"1ZZFE..ZZE130..NAP","date_from":"200412","date_to":"999999","is_x_record":false,"variant_ref":"300W","type":"BASE","parent_pn":"90915-10003"},{"ref_code":"15601","ref_name":"FILTER SUB-ASSY, OIL","part_number":"90915-10009","part_number_raw":"9091510009","position":"000036","description":"1ZZFE..ZZE130..NAP","date_from":"200412","date_to":"999999","is_x_record":false,"variant_ref":"300W","type":"BASE","parent_pn":"90915-TA001"}],"group_name":"OIL FILTER","diagrams":[{"figure_code":"150151G","fig_num":"0001"}],"coordinates":[{"part_code":"15600A","code_type":"H","x":445,"y":101,"width":79,"height":16},{"part_code":"15601","code_type":"H","x":485,"y":269,"width":67,"height":16}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}},"deprecated":true}},"/api/v1/coordinates/{region}/{figure_code}":{"get":{"tags":["Legacy"],"operationId":"getCoordinatesLegacy","summary":"Callout boxes of a figure (earlier format)","description":"The callout boxes of one figure on their own — the same boxes `/diagram` returns in `coordinates`, with `partCode` for the callout. Kept for integrations built on it.","parameters":[{"name":"region","in":"path","required":true,"schema":{"type":"string","enum":["US","EU","JP","GR"]},"description":"Image set, from the drawing path.","example":"US"},{"name":"figure_code","in":"path","required":true,"schema":{"type":"string"},"description":"Figure code, from the drawing path.","example":"150151G"}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoordinatesResponse"},"example":{"figureCode":"150151G","region":"US","coordinates":[{"partCode":"15600A","codeType":"H","x":445,"y":101,"width":79,"height":16},{"partCode":"15601","codeType":"H","x":485,"y":269,"width":67,"height":16}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}},"deprecated":true}},"/img/diagram/{region}/{figure_code}":{"get":{"tags":["Diagrams"],"operationId":"getDiagramImage","summary":"Drawing of a figure (WebP)","description":"The drawing of one figure as image bytes (`image/webp`). Take the path from `imageUrl`, `image` or `diagrams[].image_url`, or build it from `region` and `figure_code` of `/parts/{pn}` diagrams. Request it from your server with your key; a figure never changes, so store it and serve your copy to your pages. `coordinates` boxes are in pixels of this image at its natural size.","parameters":[{"name":"region","in":"path","required":true,"schema":{"type":"string","enum":["US","EU","JP","GR"]},"description":"Image set, from the drawing path.","example":"US"},{"name":"figure_code","in":"path","required":true,"schema":{"type":"string"},"description":"Figure code, from the drawing path.","example":"150151G"}],"responses":{"200":{"description":"The drawing.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"image/webp":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}}}},"/destinations":{"get":{"tags":["Reference"],"operationId":"listDestinations","summary":"Market names for the destination filter","description":"The market names `destination=` accepts, in canonical form. Input is case-insensitive and common alternative spellings are accepted. The list changes only with the catalogue: fetch it once.","parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationsResponse"},"example":{"total":254,"destinations":["AFGHANISTAN","AFRICA","ALBANIA"],"general":"GENERAL — keep only parts that name no market at all"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"}}}}},"components":{"schemas":{"Vehicle":{"type":"object","properties":{"region":{"type":"string","enum":["NA","EU","JP","OTHER"],"description":"Catalogue market: `NA` North America, `EU` Europe, `JP` Japan, `OTHER` general export markets."},"year":{"type":"integer","description":"The `year` of the request."},"model":{"type":"string","description":"Name of the catalogue, e.g. `COROLLA-MATRIX-NAP`; a catalogue can cover related models."},"modelCode":{"type":"string","description":"The `modelCode` of the request."},"catalogCode":{"type":"string","description":"Catalogue the answer comes from, e.g. `155450`."},"engine":{"type":"string","description":"Engine code, e.g. `1ZZFE`."},"transmission":{"type":"string","description":"Transmission code, e.g. `ATM  4F`."},"transmissionDescription":{"type":"string","description":"Transmission in words, e.g. `AUTOMATIC TRANSMISSION`."},"body":{"type":"string","description":"Body code, e.g. `SED`."},"bodyDescription":{"type":"string","description":"Body in words, e.g. `SEDAN`."},"grade":{"type":"string","description":"Grade (trim level) code, e.g. `LE`."},"gradeDescription":{"type":"string","description":"Grade in words."},"steering":{"type":"string","description":"Steering position code, e.g. `LHD` — `driversPosition` in `/selector` and `/compatibility` details."},"steeringDescription":{"type":"string","description":"Steering position in words."},"destination":{"type":"string","description":"Destination code the catalogue records for the vehicle, e.g. `USA`. Market names for the `destination=` filter come from `/destinations`."},"destinationDescription":{"type":"string","description":"Destination in words."},"doors":{"type":"string","description":"Door count code, e.g. `5D`."},"doorsDescription":{"type":"string","description":"Door count in words."},"production":{"type":"string","description":"Production window of the model code, `YYYYMM-YYYYMM`; `999999` means still in production.","pattern":"^[0-9]{6}-[0-9]{6}$"},"frame":{"type":"string","description":"Model code the answer is for; with a VIN, the one decoded from it. In `/identify` it is the car's own model code: for a special version (Welcab, G's, special-body trucks) `modelCode` is the modification it is built on, and `frame` is the car's own code."},"modelShort":{"type":"string","description":"Short model code, e.g. `ZZE130`."},"productionDate":{"type":"string","description":"Production month of the car, `YYYYMM`.","pattern":"^[0-9]{6}$"},"colorCode":{"type":"string","description":"Body colour code of the car."},"trimCode":{"type":"string","description":"Interior trim code of the car."}},"additionalProperties":false,"required":["region","year","model","modelCode","catalogCode"],"description":"The vehicle the answer is for. VIN attributes (`productionDate`, `colorCode`, `trimCode`, `modelShort`) appear when `vin` was passed."},"VehicleDetails":{"type":"object","properties":{"catalogCode":{"type":"string","description":"Catalogue of the vehicle — pass it as `catalogCode`."},"engine":{"type":"string","description":"Engine code, e.g. `1ZZFE`."},"transmission":{"type":"string","description":"Transmission code, e.g. `ATM  4F`."},"transmissionDescription":{"type":"string","description":"Transmission in words, e.g. `AUTOMATIC TRANSMISSION`."},"body":{"type":"string","description":"Body code, e.g. `SED`."},"bodyDescription":{"type":"string","description":"Body in words, e.g. `SEDAN`."},"grade":{"type":"string","description":"Grade (trim level) code, e.g. `LE`."},"gradeDescription":{"type":"string","description":"Grade in words."},"steering":{"type":"string","description":"Steering position code, e.g. `LHD` — `driversPosition` in `/selector` and `/compatibility` details."},"steeringDescription":{"type":"string","description":"Steering position in words."},"destination":{"type":"string","description":"Destination code the catalogue records for the vehicle, e.g. `USA`. Market names for the `destination=` filter come from `/destinations`."},"destinationDescription":{"type":"string","description":"Destination in words."},"doors":{"type":"string","description":"Door count code, e.g. `5D`."},"doorsDescription":{"type":"string","description":"Door count in words."},"production":{"type":"string","description":"Production window of the model code, `YYYYMM-YYYYMM`; `999999` means still in production.","pattern":"^[0-9]{6}-[0-9]{6}$"},"frame":{"type":"string","description":"Model code the answer is for; with a VIN, the one decoded from it. In `/identify` it is the car's own model code: for a special version (Welcab, G's, special-body trucks) `modelCode` is the modification it is built on, and `frame` is the car's own code."},"modelShort":{"type":"string","description":"Short model code, e.g. `ZZE130`."},"productionDate":{"type":"string","description":"Production month of the car, `YYYYMM`.","pattern":"^[0-9]{6}$"},"colorCode":{"type":"string","description":"Body colour code of the car."},"trimCode":{"type":"string","description":"Interior trim code of the car."},"decode":{"type":"string","enum":["full"],"description":"`full`: the VIN decoded to this one vehicle."}},"additionalProperties":false,"required":["catalogCode","decode"],"description":"Everything decoded from the VIN."},"Detail":{"type":"object","properties":{"key":{"type":"string","description":"Attribute name, e.g. `catalogCode`, `engine`, `transmission`, `driversPosition` (steering position, `steering` in `/identify` details), `production`, `decode`."},"value":{"type":"string","description":"Attribute value; absent when the catalogue has none."}},"additionalProperties":false,"required":["key"],"description":"One vehicle attribute as a key/value pair."},"IdentifyItem":{"type":"object","properties":{"region":{"type":"string","enum":["NA","EU","JP","OTHER"],"description":"Catalogue market: `NA` North America, `EU` Europe, `JP` Japan, `OTHER` general export markets."},"year":{"type":"string","description":"Year of production, e.g. `\"2007\"`. When `decode` is `multi`, the model year read from the VIN; absent when the VIN does not carry one."},"model":{"type":"string","description":"Catalogue model name."},"modelCode":{"type":"string","description":"Model code of the vehicle."},"details":{"oneOf":[{"$ref":"#/components/schemas/VehicleDetails"},{"type":"array","items":{"$ref":"#/components/schemas/Detail"}}],"description":"An object when the VIN decodes fully (`decode: full`); a list of key/value pairs, including `catalogCode`, `production` and `decode`, when the VIN points to a model family (`decode: multi`)."}},"additionalProperties":false,"required":["region","model","modelCode","details"],"description":"One vehicle the VIN matches."},"IdentifyResponse":{"type":"object","properties":{"vin":{"type":"string","description":"The VIN as sent."},"items":{"type":"array","items":{"$ref":"#/components/schemas/IdentifyItem"},"description":"Matching vehicles: usually one, several when the VIN matches more than one, none when it is unknown."}},"additionalProperties":false,"required":["vin","items"]},"Option":{"type":"object","properties":{"value":{"type":["string","integer"],"description":"Value to pass on; an integer for years."},"label":{"type":"string","description":"Text to show."}},"additionalProperties":false,"required":["value","label"]},"SelectorItem":{"type":"object","properties":{"region":{"type":"string","enum":["NA","EU","JP","OTHER"],"description":"Catalogue market: `NA` North America, `EU` Europe, `JP` Japan, `OTHER` general export markets."},"year":{"type":"string","description":"The selected year, as a string."},"model":{"type":"string","description":"The selected model."},"modelCode":{"type":"string","description":"Model code — pass it to `/vehicle`."},"details":{"type":"array","items":{"$ref":"#/components/schemas/Detail"},"description":"`catalogCode`, `engine`, `transmission`, `driversPosition`."}},"additionalProperties":false,"required":["region","year","model","modelCode","details"]},"SelectorResponse":{"type":"object","properties":{"selected":{"type":"object","properties":{"region":{"type":"string","enum":["NA","EU","JP","OTHER"],"description":"Catalogue market: `NA` North America, `EU` Europe, `JP` Japan, `OTHER` general export markets."},"year":{"type":"integer","description":"Selected year."},"model":{"type":"string","description":"Selected model."}},"additionalProperties":false,"description":"Choices made so far."},"next":{"type":"string","enum":["region","year","model","modelCode"],"description":"The level `options` belongs to."},"options":{"type":"array","items":{"$ref":"#/components/schemas/Option"},"description":"Values for `next`."},"filters":{"type":"array","maxItems":0,"description":"Reserved; empty."},"items":{"type":"array","items":{"$ref":"#/components/schemas/SelectorItem"},"description":"At the `modelCode` level: every model code with its catalogue and details; empty before."}},"additionalProperties":false,"required":["selected","next","options"]},"Group":{"type":"object","properties":{"diagramId":{"type":"string","description":"Group id, a string — keep leading zeros; pass it to `/diagram` as `diagramId`, e.g. `1502`."},"name":{"type":"string","description":"Group name, e.g. `OIL FILTER`."},"image":{"type":"string","description":"Path of the group's first drawing, e.g. `/img/diagram/US/150151G`."}},"additionalProperties":false,"required":["diagramId","name","image"],"description":"One diagram group (assembly)."},"Category":{"type":"object","properties":{"categoryId":{"type":"integer","enum":[1,2,3,4],"description":"1 Engine / Fuel / Tool, 2 Chassis / Driveline, 3 Body, 4 Electrical."},"label":{"type":"string","description":"Category name."},"groups":{"type":"array","items":{"$ref":"#/components/schemas/Group"},"description":"Diagram groups of the category."}},"additionalProperties":false,"required":["categoryId","label","groups"]},"VehicleResponse":{"type":"object","properties":{"vehicle":{"$ref":"#/components/schemas/Vehicle"},"categories":{"type":"array","items":{"$ref":"#/components/schemas/Category"},"description":"Categories of the vehicle, each with its groups."}},"additionalProperties":false,"required":["vehicle","categories"]},"Figure":{"type":"object","properties":{"figure_code":{"type":"string","description":"Figure code, e.g. `150151G` — pass it as `diag`."},"fig_num":{"type":"string","description":"Page number within the group, e.g. `0001`."},"image_url":{"type":"string","description":"Path of the drawing."},"description":{"type":"string","description":"Caption of the page when the catalogue gives one."}},"additionalProperties":false,"required":["figure_code","fig_num","image_url"],"description":"One figure (page) of a group."},"PartRow":{"type":"object","properties":{"partNumber":{"type":"string","description":"Part number to order. When the catalogue number has been replaced, the number that replaces it."},"callout":{"type":"string","description":"Callout printed on the drawing; matches `coordinates[].callout`."},"description":{"type":"string","description":"Part name."},"qty":{"type":"string","description":"Quantity per vehicle, two digits (`01`, `04`); `X` means as required."},"variant":{"type":"string","description":"Vehicles the row applies to — engine, model codes, market."},"spec":{"type":"string","description":"Specification the row applies to, when the catalogue states one, e.g. `(Japan made)`."},"destination":{"type":"array","items":{"type":"string"},"description":"Delivery markets the row is built for; absent when it names none."},"dateFrom":{"type":"string","description":"First production month the row applies to, `YYYYMM`.","pattern":"^[0-9]{6}$"},"dateTo":{"type":"string","description":"Last production month, `YYYYMM`; `999999` means still current.","pattern":"^[0-9]{6}$"},"type":{"type":"string","enum":["BASE","MAIN","SUB"],"description":"`BASE` catalogue row; `MAIN` a candidate replacement of the row in `parentPn` (listed when there is more than one); `SUB` a part supplied with the row in `parentPn`, such as kit contents."},"parentPn":{"type":"string","description":"On `BASE`: the catalogue number `partNumber` replaces. On `MAIN` and `SUB`: the `partNumber` of the row they belong to."}},"additionalProperties":false,"required":["partNumber","callout","type"],"description":"One part row."},"Hotspot":{"type":"object","properties":{"callout":{"type":"string","description":"Callout this box labels: for `P`, the part number without hyphens; for a box with `targetFigure`, the `diagramId` of the group it refers to."},"codeType":{"type":"string","enum":["H","P"],"description":"`H` callout number; `P` standard part printed by its full number."},"x":{"type":"integer","description":"Left edge, pixels of the image at its natural size."},"y":{"type":"integer","description":"Top edge, pixels of the image at its natural size."},"width":{"type":"integer","description":"Width in pixels."},"height":{"type":"integer","description":"Height in pixels."},"targetFigure":{"type":"string","description":"For a box that refers to another group (its `callout` is that group's `diagramId`): the figure to open there."}},"additionalProperties":false,"required":["callout","codeType","x","y","width","height"],"description":"Clickable box of one callout on the drawing."},"DiagramResponse":{"type":"object","properties":{"vehicle":{"$ref":"#/components/schemas/Vehicle"},"categories":{"type":"array","items":{"$ref":"#/components/schemas/Category"},"description":"The vehicle's categories and groups (limited to `categoryId`)."},"sectionName":{"type":"string","description":"Name of the group."},"categoryId":{"type":"integer","description":"The `categoryId` of the request."},"diagramId":{"type":"string","description":"The `diagramId` of the request."},"diagrams":{"type":"array","items":{"$ref":"#/components/schemas/Figure"},"description":"Every figure (page) of the group."},"currentDiagram":{"type":"string","description":"Figure this answer covers — `diag`, or the first figure."},"imageUrl":{"type":"string","description":"Path of that figure's drawing."},"spareParts":{"type":"array","items":{"$ref":"#/components/schemas/PartRow"},"description":"Parts drawn on that figure."},"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/Hotspot"},"description":"Callout boxes on that drawing."},"stdParts":{"type":"array","items":{"type":"string"},"description":"Standard parts (bolts, nuts, clips) printed on the drawing by their full number, with hyphens; their boxes carry the number without hyphens."},"totalParts":{"type":"integer","description":"Number of rows in `spareParts`."}},"additionalProperties":false,"required":["vehicle","categories","sectionName","categoryId","diagramId","diagrams","spareParts","coordinates","totalParts"]},"SectionPart":{"type":"object","properties":{"partNumber":{"type":"string","description":"Current part number."},"callout":{"type":"string","description":"Callout on the group's drawings."},"description":{"type":"string","description":"Part name."},"qty":{"type":"string","description":"Quantity per vehicle; `X` means as required."},"dateFrom":{"type":"string","description":"First production month, `YYYYMM`.","pattern":"^[0-9]{6}$"},"dateTo":{"type":"string","description":"Last production month, `YYYYMM`; `999999` means still current.","pattern":"^[0-9]{6}$"}},"additionalProperties":false,"required":["partNumber","callout"]},"Section":{"type":"object","properties":{"diagramId":{"type":"string","description":"Group id."},"name":{"type":"string","description":"Group name."},"image":{"type":"string","description":"Path of the group's first drawing."},"parts":{"type":"array","items":{"$ref":"#/components/schemas/SectionPart"},"description":"Parts drawn on any figure of the group, one row per callout and part number."}},"additionalProperties":false,"required":["diagramId","name","parts"]},"AllPartsVehicle":{"type":"object","properties":{"region":{"type":"string","enum":["NA","EU","JP","OTHER"],"description":"Catalogue market: `NA` North America, `EU` Europe, `JP` Japan, `OTHER` general export markets."},"year":{"type":"string","description":"Year of production the answer is for, as a string."},"model":{"type":"string","description":"Catalogue model name."},"modelCode":{"type":"string","description":"Model code."},"catalogCode":{"type":"string","description":"Catalogue."},"engine":{"type":"string","description":"Engine code."},"transmission":{"type":"string","description":"Transmission code."},"body":{"type":"string","description":"Body code."},"grade":{"type":"string","description":"Grade code."},"steering":{"type":"string","description":"Steering position code."},"destination":{"type":"string","description":"Destination code the catalogue records."},"production":{"type":"string","description":"Production window, `YYYYMM-YYYYMM`.","pattern":"^[0-9]{6}-[0-9]{6}$"}},"additionalProperties":false,"required":["region","model","modelCode","catalogCode"]},"AllPartsResponse":{"type":"object","properties":{"vin":{"type":"string","description":"The VIN, when one was passed."},"vehicle":{"$ref":"#/components/schemas/AllPartsVehicle"},"totalSections":{"type":"integer","description":"Number of sections."},"totalParts":{"type":"integer","description":"Number of part rows over all sections."},"sections":{"type":"array","items":{"$ref":"#/components/schemas/Section"},"description":"One section per diagram group with part rows."}},"additionalProperties":false,"required":["vehicle","totalSections","totalParts","sections"]},"PartName":{"type":"object","properties":{"lang":{"type":"string","enum":["en","de","es","fr","ja"],"description":"Language."},"region":{"type":"string","enum":["EU","US","JP","GR"],"description":"Catalogue set that carries the name: `US`, `EU`, `JP`, `GR` for the markets `NA`, `EU`, `JP`, `OTHER`."},"part_name":{"type":"string","description":"The name."}},"additionalProperties":false,"required":["lang","region","part_name"]},"PartModel":{"type":"object","properties":{"region":{"type":"string","enum":["NA","EU","JP","OTHER"],"description":"Catalogue market: `NA` North America, `EU` Europe, `JP` Japan, `OTHER` general export markets."},"modelCode":{"type":"string","description":"Model code of the catalogue; absent when it lists none."},"catalogCode":{"type":"string","description":"Catalogue whose parts list or drawings print the number."}},"additionalProperties":false,"required":["region","catalogCode"]},"PartFigure":{"type":"object","properties":{"region":{"type":"string","enum":["US","EU","JP","GR"],"description":"Image set of the figure — `US`, `EU`, `JP`, `GR` for the markets `NA`, `EU`, `JP`, `OTHER` — as used in `/img/diagram/{region}/{figure_code}`."},"figure_code":{"type":"string","description":"Figure the number is printed on."}},"additionalProperties":false,"required":["region","figure_code"]},"Supersession":{"type":"object","properties":{"partNumber":{"type":"string","description":"The number that replaces the requested one."},"current":{"type":"string","description":"Last number of the chain that starts with `partNumber`."},"chain":{"type":"array","items":{"type":"string"},"description":"Every number of that chain in order, when it has more than one step."},"sources":{"type":"array","items":{"type":"string","enum":["chohin","parts_master"]},"description":"Kind of replacement: `chohin` — the number was superseded by a newer one; `parts_master` — an interchangeable substitute."},"regions":{"type":"array","items":{"type":"string","enum":["NA","EU","JP","OTHER"],"description":"Catalogue market: `NA` North America, `EU` Europe, `JP` Japan, `OTHER` general export markets."},"description":"Catalogue markets the replacement is recorded in."},"catalogs":{"type":"array","items":{"type":"string"},"description":"Toyota sales-market codes the replacement applies to, e.g. `100`, `60A`, `C03`; empty when it applies to every market."}},"additionalProperties":false,"required":["partNumber","current","chain","sources","regions","catalogs"]},"PartDetail":{"type":"object","properties":{"part_input":{"type":"string","description":"The number as sent, upper-cased; a number sent without hyphens gets one after its first five characters (`9091510009` → `90915-10009`)."},"ref_code":{"type":"string","description":"Callout the catalogue lists the number under; the first five characters for a number no catalogue row lists."},"full_pn":{"type":"string","description":"The number formatted `XXXXX-XXXXX` or `XXXXX-XXXXX-XX`."},"primary_name":{"type":"string","description":"English name; absent when there is none."},"names":{"type":"array","items":{"$ref":"#/components/schemas/PartName"},"description":"Names in every language and catalogue that has one."},"models":{"type":"array","items":{"$ref":"#/components/schemas/PartModel"},"description":"Catalogues whose parts list or drawings print the number."},"diagrams":{"type":"array","items":{"$ref":"#/components/schemas/PartFigure"},"description":"Figures the number is printed on."},"price":{"type":"integer","description":"Toyota Japan list price."},"price_currency":{"type":"string","enum":["JPY"],"description":"Currency of `price`."},"supersededBy":{"type":"array","items":{"$ref":"#/components/schemas/Supersession"},"description":"Numbers that replace this one."},"isSuperseded":{"type":"boolean","description":"`true` when `supersededBy` is not empty — a successor in at least one market."}},"additionalProperties":false,"required":["part_input","ref_code","full_pn","names","models","diagrams","supersededBy","isSuperseded"]},"PartDetailResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PartDetail"}},"additionalProperties":false,"required":["data"]},"FitmentItem":{"type":"object","properties":{"region":{"type":"string","enum":["NA","EU","JP","OTHER"],"description":"Catalogue market: `NA` North America, `EU` Europe, `JP` Japan, `OTHER` general export markets."},"year":{"type":"string","description":"First production year of the model code, as a string."},"model":{"type":"string","description":"Catalogue model name."},"modelCode":{"type":"string","description":"Model code the part fits."},"details":{"type":"array","items":{"$ref":"#/components/schemas/Detail"},"description":"`catalogCode`, `engine`, `transmission`, `driversPosition`, `destination`."}},"additionalProperties":false,"required":["region","model","modelCode","details"]},"CompatibilityResponse":{"type":"object","properties":{"partNumber":{"type":"string","description":"The number as sent."},"items":{"type":"array","items":{"$ref":"#/components/schemas/FitmentItem"},"description":"Every model code whose catalogue lists the number."}},"additionalProperties":false,"required":["partNumber","items"]},"DestinationsResponse":{"type":"object","properties":{"total":{"type":"integer","description":"Number of names."},"destinations":{"type":"array","items":{"type":"string"},"description":"Market names accepted by `destination=`."},"general":{"type":"string","description":"Meaning of the value `GENERAL`."}},"additionalProperties":false,"required":["total","destinations","general"]},"CoordinateBox":{"type":"object","properties":{"partCode":{"type":"string","description":"Callout (for `P`, the part number)."},"codeType":{"type":"string","enum":["H","P"],"description":"`H` callout; `P` standard part."},"x":{"type":"integer","description":"Left edge in pixels."},"y":{"type":"integer","description":"Top edge in pixels."},"width":{"type":"integer","description":"Width in pixels."},"height":{"type":"integer","description":"Height in pixels."}},"additionalProperties":false,"required":["partCode","codeType","x","y","width","height"]},"CoordinatesResponse":{"type":"object","properties":{"figureCode":{"type":"string","description":"The figure."},"region":{"type":"string","description":"The image set, as requested."},"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/CoordinateBox"},"description":"Callout boxes of the figure."}},"additionalProperties":false,"required":["figureCode","region","coordinates"]},"LegacyVehicle":{"type":"object","properties":{"region":{"type":"string","enum":["US","EU","JP","GR"],"description":"Image set of the figure — `US`, `EU`, `JP`, `GR` for the markets `NA`, `EU`, `JP`, `OTHER` — as used in `/img/diagram/{region}/{figure_code}`."},"model_dir":{"type":"string","description":"Catalogue (the same value as `catalogCode`)."},"frame":{"type":"string","description":"Model code decoded from the VIN."},"prod_date":{"type":"string","description":"Production month, `YYYYMM`.","pattern":"^[0-9]{6}$"}},"additionalProperties":false,"required":["region","model_dir","frame"]},"LegacyPart":{"type":"object","properties":{"ref_code":{"type":"string","description":"Callout."},"ref_name":{"type":"string","description":"Part name."},"part_number":{"type":"string","description":"Part number; the replacing number when it has been replaced."},"part_number_raw":{"type":"string","description":"The same number as `part_number`, as the catalogue stores it; use `part_number`."},"position":{"type":"string","description":"Catalogue position of the row."},"description":{"type":"string","description":"Vehicles the row applies to."},"date_from":{"type":"string","description":"First production month, `YYYYMM`.","pattern":"^[0-9]{6}$"},"date_to":{"type":"string","description":"Last production month; `999999` means still current.","pattern":"^[0-9]{6}$"},"is_x_record":{"type":"boolean","description":"`true` for a row that depends on factory options."},"variant_ref":{"type":"string","description":"Catalogue variant of the row."},"destination":{"type":"array","items":{"type":"string"},"description":"Delivery markets the row is built for."},"type":{"type":"string","enum":["BASE","MAIN","SUB"],"description":"As `PartRow.type`."},"parent_pn":{"type":"string","description":"As `PartRow.parentPn`."}},"additionalProperties":false,"required":["ref_code","part_number","type"]},"LegacyFigure":{"type":"object","properties":{"figure_code":{"type":"string","description":"Figure code."},"fig_num":{"type":"string","description":"Page number within the group."}},"additionalProperties":false,"required":["figure_code","fig_num"]},"LegacyBox":{"type":"object","properties":{"part_code":{"type":"string","description":"Callout."},"code_type":{"type":"string","enum":["H","P"],"description":"`H` or `P`."},"x":{"type":"integer","description":"Left edge in pixels."},"y":{"type":"integer","description":"Top edge in pixels."},"width":{"type":"integer","description":"Width in pixels."},"height":{"type":"integer","description":"Height in pixels."}},"additionalProperties":false,"required":["part_code","code_type","x","y","width","height"]},"LegacyPartsResponse":{"type":"object","properties":{"vin":{"type":"string","description":"The VIN."},"vehicle":{"$ref":"#/components/schemas/LegacyVehicle"},"total_parts":{"type":"integer","description":"Number of rows in `parts`."},"total_ref_codes":{"type":"integer","description":"Number of callouts."},"parts":{"type":"array","items":{"$ref":"#/components/schemas/LegacyPart"},"description":"Part rows."},"group_name":{"type":"string","description":"Group name (with `group`)."},"diagrams":{"type":"array","items":{"$ref":"#/components/schemas/LegacyFigure"},"description":"Figures of the group (with `group`)."},"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/LegacyBox"},"description":"Callout boxes of the group's first figure (with `group`)."},"std_parts":{"type":"array","items":{"type":"string"},"description":"Standard parts printed on the group's figures (with `group`)."}},"additionalProperties":false,"required":["vin","vehicle","total_parts","total_ref_codes","parts"]},"EquipmentResponse":{"type":"object","properties":{"vin":{"type":"string","description":"The VIN as sent, upper case."},"status":{"type":"string","description":"`ok`: the car's factory equipment. `no_build_data`: Toyota's data lists no options for this car (usually one built before about 2005); the vehicle and its accessories are still given. `not_decoded`: the text is no VIN the catalogue knows. `multi_frame`: the VIN matches more than one vehicle.","enum":["ok","no_build_data","not_decoded","multi_frame"]},"vehicle":{"anyOf":[{"$ref":"#/components/schemas/EquipmentVehicle"},{"type":"null"}],"description":"The vehicle in the words of `/identify`; `null` when the VIN does not decode to one vehicle."},"version":{"type":["string","null"],"description":"Special version the build data names, e.g. `GR SPORT`; `null` when none."},"markets":{"type":"array","items":{"type":"string","description":"Market specification, e.g. `QATAR SPEC`."},"description":"Market specifications the build data names."},"options":{"type":"integer","description":"Options fitted: the `equipment` lines with `fitted: true`."},"equipment":{"type":"array","items":{"$ref":"#/components/schemas/EquipmentLine"},"description":"Every option line of the car's build data, by group."},"notFitted":{"type":"array","items":{"$ref":"#/components/schemas/NotFittedOption"},"description":"Options the car does not have, and how Toyota offered them."},"accessories":{"type":"array","items":{"$ref":"#/components/schemas/EquipmentAccessory"},"description":"Genuine dealer-fit accessories for this vehicle, matched to its colour and market."},"accessoriesHidden":{"type":"object","properties":{"otherColour":{"type":"integer","description":"Accessories of this model for other colours, left out."},"otherMarket":{"type":"integer","description":"Accessories of this model for other markets, left out."}},"additionalProperties":false,"required":["otherColour","otherMarket"],"description":"How many accessories were left out, and why."}},"additionalProperties":false,"required":["vin","status","vehicle","version","markets","options","equipment","notFitted","accessories","accessoriesHidden"],"description":"Factory equipment of one vehicle."},"EquipmentVehicle":{"type":"object","properties":{"region":{"type":"string","enum":["NA","EU","JP","OTHER"],"description":"Catalogue market: `NA` North America, `EU` Europe, `JP` Japan, `OTHER` general export markets."},"catalogCode":{"type":"string","description":"Catalogue, as `details.catalogCode` of `/identify`, e.g. `791270`."},"modelCode":{"type":"string","description":"Model code, as `modelCode` of `/identify`, e.g. `VJH300L-GNVSZV`."},"modelShort":{"type":["string","null"],"description":"Short model code, as `details.modelShort`."},"productionDate":{"type":["string","null"],"description":"Production month `YYYYMM`, as `details.productionDate`."},"colorCode":{"type":["string","null"],"description":"Paint code, as `details.colorCode`."},"colorName":{"type":["string","null"],"description":"Paint name, when Toyota's accessory data names it, e.g. `SUPER WHITE 2`; otherwise `null`."},"trimCode":{"type":["string","null"],"description":"Trim code, as `details.trimCode`."}},"additionalProperties":false,"required":["region","catalogCode","modelCode","modelShort","productionDate","colorCode","colorName","trimCode"],"description":"The vehicle, as `/identify` names it."},"EquipmentLine":{"type":"object","properties":{"group":{"type":"string","description":"Group: `safety`, `comfort`, `multimedia`, `exterior`, `offroad`, `market` or `other`.","enum":["safety","comfort","multimedia","exterior","offroad","market","other"]},"category":{"type":"string","description":"Toyota's option category, e.g. `CRUISE CONTROL`."},"value":{"type":"string","description":"What the car has in that category, in Toyota's words, e.g. `WITH(ALL SPEED RANGE *ACC)`; a word after `*` is spelled out in `abbreviations`."},"fitted":{"type":"boolean","description":"`false` for a line saying the car is without it (`WITHOUT`, `W/O`)."},"abbreviations":{"type":"object","patternProperties":{"^\\S+$":{"type":"string","description":"What the abbreviation stands for."}},"additionalProperties":false,"description":"Abbreviations of `value`, spelled out, e.g. `{\"ACC\": \"ADAPTIVE CRUISE CONTROL\"}`."}},"additionalProperties":false,"required":["group","category","value","fitted","abbreviations"],"description":"One option line."},"NotFittedOption":{"type":"object","properties":{"category":{"type":"string","description":"Toyota's option category."},"has":{"type":"string","description":"What the car has in that category instead, e.g. `WITHOUT`."},"option":{"type":"string","description":"The option the car lacks, e.g. `WITH (ACCESSORY)`."},"case":{"type":"string","description":"`this_version`: Toyota fitted it to this version at the car's production date. `later`: to this version from `availableFrom`. `other_versions`: only to other versions of the model.","enum":["this_version","later","other_versions"]},"availableFrom":{"type":["string","null"],"description":"Production month `YYYYMM` from which this version had it (`case: later`); otherwise `null`."},"abbreviations":{"type":"object","patternProperties":{"^\\S+$":{"type":"string","description":"What the abbreviation stands for."}},"additionalProperties":false,"description":"Abbreviations of `has` and `option`, spelled out, e.g. `{\"EHL\": \"ELECTRICAL HEATED LAMINATED GLASS\"}`."}},"additionalProperties":false,"required":["category","has","option","case","availableFrom","abbreviations"],"description":"An option the car lacks."},"EquipmentAccessory":{"type":"object","properties":{"partNumber":{"type":"string","description":"Accessory part number, e.g. `PZ325-60054`."},"name":{"type":"string","description":"Accessory name in Toyota's words."},"qty":{"type":"string","description":"Quantity, as Toyota prints it."},"note":{"type":"string","description":"Toyota's note on the accessory: paint codes, versions."},"modelYear":{"type":["integer","null"],"description":"Model year of the accessory; `null` when not given."},"markets":{"type":"array","items":{"type":"string","description":"Market name."},"description":"Markets the accessory is sold for."},"image":{"type":["string","null"],"description":"Picture URL, when there is one."}},"additionalProperties":false,"required":["partNumber","name","qty","note","modelYear","markets","image"],"description":"One genuine dealer-fit accessory."},"GatewayError":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHORIZED","NOT_FOUND","RATE_LIMITED","BAD_GATEWAY","INTERNAL","PLAN_REQUIRED","UNAVAILABLE"],"description":"Error code."},"message":{"type":"string","description":"What happened."}},"additionalProperties":false,"required":["code","message"],"description":"The error."}},"additionalProperties":false,"required":["error"],"description":"Authentication, rate-limit and availability errors."},"CatalogueError":{"type":"object","properties":{"detail":{"type":"string","description":"What was wrong, e.g. `modelCode ZZE130L-DEPNKA does not belong to model CAMRY`."}},"additionalProperties":false,"required":["detail"],"description":"A request the catalogue cannot answer."},"ValidationError":{"type":"object","properties":{"detail":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Error type, e.g. `missing`."},"loc":{"type":"array","items":{"type":["string","integer"]},"description":"Where: e.g. `[\"query\", \"year\"]`."},"msg":{"type":"string","description":"Message, e.g. `Field required`."},"input":{"description":"The value received."},"ctx":{"description":"Limits that applied, e.g. `{\"min_length\": 4}`."},"url":{"type":"string","description":"Reference for the error type."}},"additionalProperties":false,"required":["type","loc","msg"]},"description":"One entry per invalid parameter."}},"additionalProperties":false,"required":["detail"],"description":"Missing or malformed parameters."}},"responses":{"Unauthorized":{"description":"Missing, unknown or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"UNAUTHORIZED","message":"Missing or invalid API key. Pass header 'x-api-key'."}}}}},"NotFound":{"description":"The model code, figure, VIN or drawing does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueError"},"examples":{"modelCode":{"summary":"From /vehicle and /all-parts: an unknown model code","value":{"detail":"modelCode not found"}},"figure":{"summary":"From /diagram: a figure the group does not have","value":{"detail":"diag 999999Z is not a figure of diagram 1502"}},"drawing":{"summary":"From /img/diagram: no such drawing","value":{"detail":"Diagram image not found"}}}}}},"ValidationFailed":{"description":"A parameter is missing or invalid.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CatalogueError"},{"$ref":"#/components/schemas/ValidationError"}]},"examples":{"invalid":{"summary":"From /vehicle: a model code of another model","value":{"detail":"modelCode ZZE130L-DEPNKA does not belong to model CAMRY"}},"missing":{"summary":"Missing parameter","value":{"detail":[{"type":"missing","loc":["query","year"],"msg":"Field required"}]}}}}}},"RateLimited":{"description":"A rate limit is reached; wait `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"RATE_LIMITED","message":"Rate limit exceeded (hour window)."}}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"PlanRequired":{"description":"The endpoint is not part of this key's plan; the call uses up nothing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"PLAN_REQUIRED","message":"/equipment is available on the Business and Enterprise plans: https://toyotaepc.com/pricing#api"}}}}},"Unavailable":{"description":"Factory equipment is temporarily unavailable; retry in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"UNAVAILABLE","message":"Factory equipment is temporarily unavailable. Retry in a minute."}}}}},"BadGateway":{"description":"The catalogue is temporarily unavailable; retry after a short pause.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"BAD_GATEWAY","message":"Upstream unavailable."}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed in the current allowance — monthly (trial keys: daily); on a 429, the limit that was reached.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in it.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time (seconds) when it renews.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your API key. Send it with every request, from your server."}}}}