{"id":394,"date":"2023-12-04T06:13:59","date_gmt":"2023-12-04T06:13:59","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=394"},"modified":"2023-12-11T14:26:32","modified_gmt":"2023-12-11T14:26:32","slug":"read-all-fuel-types-from-model","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=394","title":{"rendered":"Read all fuel types from model"},"content":{"rendered":"\n\n\t<p>Returns list of all engine powers from model.<\/p>\n<p><strong>GET<\/strong>: <a href=\"https:\/\/www.autovit.ro\/api\/open\/categories\/:category_id\/models\/:brand_code\/fuel_types\/:model_code\">https:\/\/www.autovit.ro\/api\/open\/categories\/:category_id\/models\/:brand_code\/fuel_types\/:model_code<\/a><\/p>\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>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\/fuel_types\/focus?year=2018&is_imported_car=1\nUser-Agent: $USER_EMAIL\nContent-Type: application\/json\nAuthorization: Bearer $ACCESS_TOKEN<\/code><button onclick=\"copyJson('copy_32755')\">Copy<\/button>\nHTTP\/1.1 GET \/categories\/29\/models\/ford\/fuel_types\/focus?year=2018&#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 fuel type codes and associated labels in a per language basis<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<strong class='text-green font-bold'>Success response:<\/strong><code>HTTP\/1.1 200 OK\n {\n     \"options\": {\n         \"petrol\": {\n             \"ro\": \"Benzina\",\n\"            \"en\": \"Benzina\"\n         },\n         \"diesel\": {\n             \"ro\": \"Diesel\",\n             \"en\": \"Diesel\"\n         }\n     }\n }<\/code><button onclick=\"copyJson('copy_5023')\">Copy<\/button>\nHTTP\/1.1 200 OK\n {\n     &#8220;options&#8221;: {\n         &#8220;petrol&#8221;: {\n             &#8220;ro&#8221;: &#8220;Benzina&#8221;,\n&#8221;            &#8220;en&#8221;: &#8220;Benzina&#8221;\n         },\n         &#8220;diesel&#8221;: {\n             &#8220;ro&#8221;: &#8220;Diesel&#8221;,\n             &#8220;en&#8221;: &#8220;Diesel&#8221;\n         }\n     }\n }\nCopied to clipboard\n \n","protected":false},"excerpt":{"rendered":"<p>Returns list of all engine powers from model. GET: https:\/\/www.autovit.ro\/api\/open\/categories\/:category_id\/models\/:brand_code\/fuel_types\/: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 is_imported_caroptional Boolean Optional parameter to&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=394\" title=\"Read Read all fuel types 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\/394"}],"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=394"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/394\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}