Cars

Fuels

Request Information
URL GEThttps://api.inventario.pro/public/v2/coche?apiKey={{apiKey}}&combustibles=1
Category Cars
Description

This endpoint retrieves the list of fuels based on the specified API key.

Request

  • apiKey (string, required): The API key for authentication

  • combustibles = 1 (integer, required): Requests the list of fuels

Response

  • Status: 200

  • Content-Type: application/json

  • [ { "id": "", "nombre": "" }]

Query Parameters

In addition to the required parameters, the request allows filtering results using specific query parameters. These parameters use prefixes to define different database operations:

Filter Prefixes

  • FILTR_ ( = ) - Exact match for a value.
  • INC_ ( IN ) - Includes any value from an array.
  • EXC_ ( NOT IN ) - Excludes any value from an array.
  • BTW_ ( BETWEEN ) - Defines a range with two values.
  • BT_ ( > ) - Greater than a specific value.
  • ST_ ( < ) - Less than a specific value.

Available Fields

  • marca_id - Car brand identifier.
  • modelo_id - Car model identifier.
  • ad_subtype_id - Body type identifier.
  • precio - Price of the car.
  • combustible_id - Fuel type identifier.
  • cambio_id - Transmission type identifier.
  • estado_id - Status of the car.
  • tipo_id - Offer type.
  • location_id - Location identifier.
  • distintivo_ambiental - Environmental Label identifier.

estado_id Values

  • 1 - En venta (For sale).
  • 2 - Reservado (Reserved).
  • 3 - Vendido (Sold).
  • 4 - En preparación (In preparation).

tipo_id Values

  • 1 - Ocasión (Used).
  • 2 - Nuevo (New).
  • 3 - Km0 (Zero km).
  • 6 - De pruebas (Test vehicle).
  • 7 - Sustitución (Replacement vehicle).
  • 8 - Gerencia (Company car).
  • 9 - Demostración (Demonstration vehicle).

Example Usage

To add filter by brand (marca_id = 5), price range (between 10,000 and 20,000), and available for sale (estado_id = 1):

https://api.inventario.pro/public/v2/coche?{{request_parameters}}&FILTR_marca_id=5&BTW_precio[]=10000&BTW_precio[]=20000&FILTR_estado_id=1
Header
APP-KEY {{appkey}}

Example responses

Fuels
Response Code:
200OK
Response Body:
[
    {
        "id": "7",
        "nombre": "Diésel"
    },
    {
        "id": "8",
        "nombre": "Eléctrico"
    },
    {
        "id": "12",
        "nombre": "Gasolina"
    },
    {
        "id": "14",
        "nombre": "Híbrido (Diesel)"
    },
    {
        "id": "13",
        "nombre": "Híbrido (Gasolina)"
    }
]