Auto Bot: Your Vehicle Fuel Efficiency Info Hub

Auto Bot: Your Vehicle Fuel Efficiency Info Hub · GPT アクション

All Vehicles Model Data API

API to access detailed data on all vehicle models including various attributes such as make, model, fuel efficiency, emissions, and more.

  • GET /all-vehicles-model/recordsRetrieve vehicle model data

    Fetches detailed vehicle data including make, model, fuel efficiency, emissions and more.

元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "All Vehicles Model Data API",
    "description": "API to access detailed data on all vehicle models including various attributes such as make, model, fuel efficiency, emissions, and more.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://public.opendatasoft.com/api/explore/v2.1/catalog/datasets",
      "description": "API endpoint for accessing vehicle data from a public dataset"
    }
  ],
  "paths": {
    "/all-vehicles-model/records": {
      "get": {
        "summary": "Retrieve vehicle model data",
        "description": "Fetches detailed vehicle data including make, model, fuel efficiency, emissions and more.",
        "operationId": "getVehicleModels",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Number of records to return per request",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A JSON array of vehicle models",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VehicleModelsData"
                }
              }
            }
          },
          "400": {
            "description": "Bad request when the query parameters are invalid"
          },
          "404": {
            "description": "Data not found"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "VehicleModelsData": {
        "type": "object",
        "properties": {
          "nhits": {
            "type": "integer",
            "description": "Total number of hits found"
          },
          "parameters": {
            "type": "object",
            "properties": {
              "dataset": {
                "type": "string"
              },
              "timezone": {
                "type": "string"
              },
              "limit": {
                "type": "integer"
              }
            }
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VehicleModel"
            }
          }
        }
      },
      "VehicleModel": {
        "type": "object",
        "properties": {
          "datasetid": {
            "type": "string"
          },
          "recordid": {
            "type": "string"
          },
          "fields": {
            "$ref": "#/components/schemas/VehicleModelFields"
          },
          "record_timestamp": {
            "type": "string"
          }
        }
      },
      "VehicleModelFields": {
        "type": "object",
        "properties": {
          "make": {
            "type": "string",
            "description": "Manufacturer (division)"
          },
          "model": {
            "type": "string",
            "description": "Model name (carline)"
          },
          "barrels08": {
            "type": "number",
            "description": "Annual petroleum consumption in barrels for fuelType1"
          },
          "barrelsa08": {
            "type": "number",
            "description": "Annual petroleum consumption in barrels for fuelType2"
          },
          "charge120": {
            "type": "number",
            "description": "Time to charge an electric vehicle at 120V (hours)"
          },
          "charge240": {
            "type": "number",
            "description": "Time to charge an electric vehicle at 240V (hours)"
          },
          "city08": {
            "type": "integer",
            "description": "City MPG for fuelType1"
          },
          "city08u": {
            "type": "number",
            "description": "Unrounded city MPG for fuelType1"
          },
          "citya08": {
            "type": "integer",
            "description": "City MPG for fuelType2"
          },
          "citya08u": {
            "type": "number",
            "description": "Unrounded city MPG for fuelType2"
          },
          "citycd": {
            "type": "number",
            "description": "City gasoline consumption in charge depleting mode (gallons/100 miles)"
          },
          "citye": {
            "type": "number",
            "description": "City electricity consumption (kW-hrs/100 miles)"
          },
          "cityuf": {
            "type": "number",
            "description": "EPA city utility factor (share of electricity) for PHEV"
          },
          "co2": {
            "type": "integer",
            "description": "Tailpipe CO2 in grams/mile for fuelType1"
          },
          "co2a": {
            "type": "integer",
            "description": "Tailpipe CO2 in grams/mile for fuelType2"
          },
          "co2tailpipeagpm": {
            "type": "number",
            "description": "Tailpipe CO2 in grams/mile for fuelType2"
          },
          "co2tailpipegpm": {
            "type": "number",
            "description": "Tailpipe CO2 in grams/mile for fuelType1"
          },
          "comb08": {
            "type": "integer",
            "description": "Combined MPG for fuelType1"
          },
          "comb08u": {
            "type": "number",
            "description": "Unrounded combined MPG for fuelType1"
          },
          "comba08": {
            "type": "integer",
            "description": "Combined MPG for fuelType2"
          },
          "comba08u": {
            "type": "number",
            "description": "Unrounded combined MPG for fuelType2"
          },
          "combe": {
            "type": "number",
            "description": "Combined electricity consumption (kW-hrs/100 miles)"
          },
          "combinedcd": {
            "type": "number",
            "description": "Combined gasoline consumption in charge depleting mode (gallons/100 miles)"
          },
          "combineduf": {
            "type": "number",
            "description": "EPA combined utility factor (share of electricity) for PHEV"
          },
          "cylinders": {
            "type": "integer",
            "description": "Engine cylinders"
          },
          "displ": {
            "type": "number",
            "description": "Engine displacement (liters)"
          },
          "drive": {
            "type": "string",
            "description": "Drive axle type"
          },
          "engid": {
            "type": "string",
            "description": "EPA model type index"
          },
          "eng_dscr": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Engine descriptor (e.g., MFI FFS)"
          }
        }
      }
    }
  }
}