Get cars https://api.rrr.lt/v2/get/cars

POST parameters

Name Type Required Data
username Text varchar(50) YES Username
password Text varchar(100) YES Password
user_token Text YES Token provided

URI values

Name Type Required Data
date_from date (Y-m-d) NO Date from parts added (exp. 2019-02-14)
date_to date (Y-m-d) NO Date to parts added (exp. 2019-03-14)
user_ids string NO Comma separated ID values (exp. 1,23,789)
model_ids string NO Comma separated ID values (exp. 1,23,789)
car_ids string NO Comma separated ID values (exp. 1,23,789)
external_ids string NO Comma separated ID values (exp. foo1,bar2)
page integer NO Range from [1...PAGE_NUMBERS]
limit integer NO Range from [1...100]
search string NO Space separated values, e.g. ?search=term1 term2 term3
sort array NO Sort list by fields. e.g. ?sort[id]=desc&sort[date]=asc. Supported fields are: [id, date]

PHP Curl example code

$post = [
'username' => '',
'password' => '',
'user_token' => '',
];

$ch = curl_init('https://api.rrr.lt/v2/get/cars?date_from=2022-01-01&date_to=2022-03-01&limit=5&page=3');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = json_decode(curl_exec($ch));
curl_close($ch);

Output

{
    "data": [
        {
            "id": "12",
            "car_color": "0",
            "car_color_code": "",
            "car_model": "2783",
            "car_model_category": "0",
            "car_model_years": "0",
            "car_body_number": "",
            "car_engine_number": "",
            "car_years": "2013",
            "car_engine_cubic_capacity": "2005",
            "car_engine_power": "222",
            "car_engine_type": "",
            "car_engine_code": "",
            "car_gearbox_type": "0",
            "car_gearbox_code": "",
            "car_interior": "",
            "car_fuel": "1",
            "car_mileage": "0",
            "defectation_notes": "",
            "car_wheel_type": "",
            "car_wheel_drive": "0",
            "car_body_type": "0",
            "photo": "https://carimages.cdnrrr.com/dem/0/0/0/0/0/0/0/0/2/o-f0a57b52c2ec0b73ccd9a42389c21d22-94-2008-6.jpg",
            "car_photo_gallery": [
                "https://carimages.cdnrrr.com/dem/0/0/0/0/0/0/0/0/2/o-3832f3f0918d387b79c9d62c2aec082a-94-2008-6.jpg",
                "https://carimages.cdnrrr.com/dem/0/0/0/0/0/0/0/0/2/o-f0a57b52c2ec0b73ccd9a42389c21d22-94-2008-6.jpg"
            ],
            "external_id": null
        },
        {
            "id": "13",
            "car_color": "0",
            "car_color_code": "LB9A",
            "car_model": "94",
            "car_model_category": "0",
            "car_model_years": "0",
            "car_body_number": "",
            "car_engine_number": "",
            "car_years": "2008",
            "car_engine_cubic_capacity": "1968",
            "car_engine_power": "103",
            "car_engine_type": "",
            "car_engine_code": "",
            "car_gearbox_type": "0",
            "car_gearbox_code": "",
            "car_interior": "",
            "car_fuel": "1",
            "car_mileage": "125869",
            "defectation_notes": "",
            "car_wheel_type": "0",
            "car_wheel_drive": "3",
            "car_body_type": "5",
            "photo": "",
            "car_photo_gallery": [],
            "external_id": "foo1"
        },
        {
            "id": "14",
            "car_color": "0",
            "car_color_code": "LB9A",
            "car_model": "94",
            "car_model_category": "0",
            "car_model_years": "0",
            "car_body_number": "",
            "car_engine_number": "",
            "car_years": "2008",
            "car_engine_cubic_capacity": "1968",
            "car_engine_power": "103",
            "car_engine_type": "",
            "car_engine_code": "",
            "car_gearbox_type": "0",
            "car_gearbox_code": "",
            "car_interior": "",
            "car_fuel": "1",
            "car_mileage": "125869",
            "defectation_notes": "",
            "car_wheel_type": "0",
            "car_wheel_drive": "3",
            "car_body_type": "5",
            "photo": "",
            "car_photo_gallery": [],
            "external_id": "bar2"
        },
        {
            "id": "15",
            "car_color": "0",
            "car_color_code": "LB9A",
            "car_model": "94",
            "car_model_category": "0",
            "car_model_years": "0",
            "car_body_number": "",
            "car_engine_number": "",
            "car_years": "2008",
            "car_engine_cubic_capacity": "1968",
            "car_engine_power": "103",
            "car_engine_type": "",
            "car_engine_code": "",
            "car_gearbox_type": "0",
            "car_gearbox_code": "",
            "car_interior": "",
            "car_fuel": "1",
            "car_mileage": "125869",
            "defectation_notes": "",
            "car_wheel_type": "0",
            "car_wheel_drive": "3",
            "car_body_type": "5",
            "photo": "",
            "car_photo_gallery": [],
            "external_id": null
        },
        {
            "id": "16",
            "car_color": "0",
            "car_color_code": "",
            "car_model": "2419",
            "car_model_category": "0",
            "car_model_years": "0",
            "car_body_number": "",
            "car_engine_number": "",
            "car_years": "1997",
            "car_engine_cubic_capacity": "0",
            "car_engine_power": "0",
            "car_engine_type": "",
            "car_engine_code": "",
            "car_gearbox_type": "0",
            "car_gearbox_code": "",
            "car_interior": "",
            "car_fuel": "0",
            "car_mileage": "0",
            "defectation_notes": "",
            "car_wheel_type": "",
            "car_wheel_drive": "0",
            "car_body_type": "0",
            "photo": "",
            "car_photo_gallery": [],
            "external_id": null
        }
    ],
    "pagination": {
        "page": 3,
        "total_count": 52,
        "limit": 5
    },
    "msg": "OK",
    "status_code": "R200"
}