Unit groups and parts
Once a modification is selected (you have ssd and link), request the unit group tree and then the parts of a specific unit.
PartGroupsGet
Parts groups of the selected modification. Cost — 1 unit per ssd session (repeated calls within a paid session are free).
GET https://api.levam.net/oem/v1/PartGroupsGet
Parameters
| Parameter | Required | Description |
api_key | yes | API key |
ssd | yes | Session identifier |
link | yes | Modification code (from VehicleModificationsGet / VinFind) |
group | no | Group code. Empty — root groups; a code — nested subgroups of that group |
lang | no | Response language |
Example
curl "https://api.levam.net/oem/v1/PartGroupsGet?api_key=KEY&ssd=770e1aee96bbf85678ab1426f66af8c6&link=dm5GNk8vOXNQN1pBWmZTUjU4WnhpMW4w..."
{
"groups": [
{ "full_name": "engine", "group_name": "1", "image": ["https://img.levam.net/images/oem/audi/groups/1.png"] },
{ "full_name": "body", "group_name": "8", "image": ["https://img.levam.net/images/oem/audi/groups/8.png"] }
],
"next": 1,
"link": "VElKZGppUnBJY3pHUVRTeFgwVkNpTFFNMVhMdW9v...",
"model_info": { "Make": "Audi", "The market": "BRAZIL", "Release date": "2001" },
"error": "",
"client": { "mark": "audi", "catalog_code": "3", "family": "Audi A3", "model": "AA3", "ssd": "cef178ee5e5cfb1b866bb3b3fda80537" }
}
Response fields
| Field | Description |
groups[].full_name | Group name |
groups[].group_name | Group code — pass it as group in the next call |
groups[].image | Group images |
next | 1 — the groups have nested subgroups (keep descending with PartGroupsGet); 0 — no nested groups, you can request PartsGet |
model_info | Parameters of the selected modification |
client | Session state |
error | Error information; an empty string means no error |
PartsGet
Unit parts: the parts list, the diagram, and part coordinates on it. Cost — 1 unit per ssd session (same as PartGroupsGet).
GET https://api.levam.net/oem/v1/PartsGet
Parameters
| Parameter | Required | Description |
api_key | yes | API key |
ssd | yes | Session identifier |
link | yes | Modification code |
group | yes | Unit code (a group with next=0 from PartGroupsGet) |
lang | no | Response language |
Example
curl "https://api.levam.net/oem/v1/PartsGet?api_key=KEY&ssd=770e1aee96bbf85678ab1426f66af8c6&link=dm5GNk8vOXNQN1pB...&group=010-10000"
{
"client": { "mark": "audi", "catalog_code": "3", "family": "Audi A3", "model": "AA3" },
"parts": {
"parts": [
{
"standart": {
"part_number": "3",
"part_code": "1H0 819 056",
"part_name": "double stud with hexagon drive",
"part_quantity": "1"
},
"add": { "info": "AUDI A3", "model": "" }
}
],
"image": ["https://api.levam.net/images/audi/Bilder/194/194820100.png"],
"coord": [
[
{ "name": "54", "margin-top": 63.68, "margin-left": 3.27, "width": 4.79, "height": 2.7 }
]
],
"part_name": "air distribution housing"
},
"model_info": { "Market": "Asia", "Engine": "HR12DE" },
"error": ""
}
Response fields
| Field | Description |
parts.parts[].standart | Core part data: part_number (number on the diagram), part_code (part number), part_name, part_quantity |
parts.parts[].add | Extra data: info, model (production period), type (part / replacment / link / annotation), node_link (link to a unit or no) |
parts.image | Unit diagrams |
parts.coord | Coordinates of part numbers on the diagram (percent): name, margin-top, margin-left, width, height |
parts.part_name | Unit name |
model_info | Modification parameters |
error | Error information; an empty string means no error |