{"id":387,"date":"2023-12-04T06:07:51","date_gmt":"2023-12-04T06:07:51","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=387"},"modified":"2023-12-11T12:34:39","modified_gmt":"2023-12-11T12:34:39","slug":"read-all-engine-capacities-from-model","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=387","title":{"rendered":"Read all engine capacities from model"},"content":{"rendered":"\n\n\tReturns list of all engine capacities from model.<br \/>\n<strong>GET<\/strong>: <a href=\"https:\/\/www.autovit.ro\/api\/open\/categories\/:category_id\/models\/:brand_code\/engine_capacities\/:model_code\">https:\/\/www.autovit.ro\/api\/open\/categories\/:category_id\/models\/:brand_code\/engine_capacities\/:model_code<\/a>\n<p><strong>Permission:\u00a0<em>read<\/em><\/strong><\/p>\n<h2>Header<\/h2>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>User-Agent<\/td>\n<td>string<\/td>\n<td>Account email.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Query Param<\/h2>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>category_id<\/td>\n<td>Number<\/td>\n<td>Category Id. Category unique ID.<\/td>\n<\/tr>\n<tr>\n<td>brand_code<\/td>\n<td>String<\/td>\n<td>Brand Slug.<\/td>\n<\/tr>\n<tr>\n<td>model_code<\/td>\n<td>String<\/td>\n<td>Model Slug.<\/td>\n<\/tr>\n<tr>\n<td>yearoptional<\/td>\n<td>Number<\/td>\n<td>Optional parameter to specify which year to look for<\/td>\n<\/tr>\n<tr>\n<td>fuel_typeoptional<\/td>\n<td>String<\/td>\n<td>Optional parameter to specify which fuel_type to look for<\/td>\n<\/tr>\n<tr>\n<td>engine_poweroptional<\/td>\n<td>Number<\/td>\n<td>Optional parameter to specify which engine_power to look for<\/td>\n<\/tr>\n<tr>\n<td>is_imported_caroptional<\/td>\n<td>Boolean<\/td>\n<td>Optional parameter to specify if the vehicle is imported (0 or 1)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<strong class='bg-tag-blue font-bold tag'>Example request:<\/strong><code>HTTP\/1.1 GET \/categories\/29\/models\/ford\/engine_capacities\/focus?year=2019&fuel_type=diesel&engine_power=95&is_imported_car=1\nUser-Agent: $USER_EMAIL\nContent-Type: application\/json\nAuthorization: Bearer $ACCESS_TOKEN<\/code><button onclick=\"copyJson('copy_47778')\">Copy<\/button>\nHTTP\/1.1 GET \/categories\/29\/models\/ford\/engine_capacities\/focus?year=2019&#038;fuel_type=diesel&#038;engine_power=95&#038;is_imported_car=1\nUser-Agent: $USER_EMAIL\nContent-Type: application\/json\nAuthorization: Bearer $ACCESS_TOKEN\nCopied to clipboard\n\t<h2><b>200<\/b><\/h2>\n<table>\n<tbody>\n<tr>\n<td><b>Field<\/b><\/td>\n<td><b>Type<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td>options<\/td>\n<td>Object<\/td>\n<td>document containing all version keys and associated labels in a per language basis<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<strong class='text-green font-bold'>Success response:<\/strong><code>HTTP\/1.1 200 OK\n{\n    \"options\": {\n        \"1498\": {\n            \"ro\": \"1498\",\n            \"en\": \"1498\"\n        },\n        \"1499\": {\n            \"ro\": \"1499\",\n            \"en\": \"1499\"\n        }\n    }\n}<\/code><button onclick=\"copyJson('copy_2819')\">Copy<\/button>\nHTTP\/1.1 200 OK\n{\n    &#8220;options&#8221;: {\n        &#8220;1498&#8221;: {\n            &#8220;ro&#8221;: &#8220;1498&#8221;,\n            &#8220;en&#8221;: &#8220;1498&#8221;\n        },\n        &#8220;1499&#8221;: {\n            &#8220;ro&#8221;: &#8220;1499&#8221;,\n            &#8220;en&#8221;: &#8220;1499&#8221;\n        }\n    }\n}\nCopied to clipboard\n \n","protected":false},"excerpt":{"rendered":"<p>Returns list of all engine capacities from model. GET: https:\/\/www.autovit.ro\/api\/open\/categories\/:category_id\/models\/:brand_code\/engine_capacities\/:model_code Permission:\u00a0read Header Field Type Description User-Agent string Account email. Query Param Field Type Description category_id Number Category Id. Category unique ID. brand_code String Brand Slug. model_code String Model Slug. yearoptional Number Optional parameter to specify which year to look for fuel_typeoptional String Optional parameter to&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=387\" title=\"Read Read all engine capacities from model\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/387"}],"collection":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=387"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}