{
  "openapi": "3.0.1",
  "info": {
    "title": "Real-World vs Official Fuel Consumption Data",
    "description": "Compare real-world fuel consumption with manufacturer-declared NEDC/WLTP figures across 9,894 vehicle variants. Coverage is strongest for European and UK-market specifications and is not intended for US- or Canadian-market-specific lookup.",
    "version": "0.1",
    "x-build-id": "dp5OeFlSXpnR3NMPO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fetchfinch~real-world-fuel-consumption/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fetchfinch-real-world-fuel-consumption",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/fetchfinch~real-world-fuel-consumption/runs": {
      "post": {
        "operationId": "runs-sync-fetchfinch-real-world-fuel-consumption",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/fetchfinch~real-world-fuel-consumption/run-sync": {
      "post": {
        "operationId": "run-sync-fetchfinch-real-world-fuel-consumption",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search",
              "lookup",
              "brand",
              "export",
              "stats"
            ],
            "type": "string",
            "description": "Choose whether to search, filter/export records, return one brand, or produce summary statistics.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text query such as 'volkswagen golf 1.4 tsi 150 dsg', 'toyota corolla hybrid', or 'bmw 320d'. Used by the Search operation."
          },
          "brandName": {
            "title": "Brand",
            "type": "string",
            "description": "Select or type a vehicle brand. Required for Brand export and optional for Lookup or Filtered export."
          },
          "modelName": {
            "title": "Model",
            "type": "string",
            "description": "Optional model-name filter, e.g. Golf, Corolla, or Giulia. Type a model belonging to the selected brand."
          },
          "engine": {
            "title": "Engine",
            "type": "string",
            "description": "Optional engine filter, e.g. 1.6 TDI, 320d, 1.0 TSI."
          },
          "fuelTypes": {
            "title": "Fuel types",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional normalized fuel-type filters. Leave empty to include all fuel types.",
            "items": {
              "type": "string",
              "enum": [
                "petrol",
                "diesel",
                "hybrid",
                "mild-hybrid",
                "plugin-hybrid",
                "diesel-hybrid",
                "electric",
                "lpg",
                "hydrogen",
                "other"
              ],
              "enumTitles": [
                "Petrol / gasoline",
                "Diesel",
                "Hybrid",
                "Mild hybrid",
                "Plug-in hybrid",
                "Diesel hybrid",
                "Electric",
                "LPG",
                "Hydrogen",
                "Other"
              ]
            },
            "default": []
          },
          "yearFrom": {
            "title": "Model year from",
            "type": "integer",
            "description": "Optional lower bound for model-generation overlap. Example: 2015."
          },
          "yearTo": {
            "title": "Model year to",
            "type": "integer",
            "description": "Optional upper bound for model-generation overlap. Example: 2020."
          },
          "hasRealConsumptionOnly": {
            "title": "Only records with real consumption",
            "type": "boolean",
            "description": "If enabled, excludes variants where real-world MPG is missing.",
            "default": true
          },
          "officialStandard": {
            "title": "Official figure preference",
            "enum": [
              "prefer-wltp",
              "prefer-nedc",
              "wltp-only",
              "nedc-only",
              "any"
            ],
            "type": "string",
            "description": "Controls which official value is used for the derived officialConsumptionL100km and deviation fields.",
            "default": "prefer-wltp"
          },
          "minDeviationPct": {
            "title": "Minimum real-consumption deviation",
            "type": "integer",
            "description": "Optional lower bound for real vs official l/100km deviation. Example: 20 returns cars at least 20% worse than official."
          },
          "outputUnits": {
            "title": "Output units",
            "enum": [
              "both",
              "l100km",
              "uk_mpg"
            ],
            "type": "string",
            "description": "Choose consumption units in output. Raw source strings can also be included separately.",
            "default": "both"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "brand",
              "model",
              "realConsumption",
              "officialConsumption",
              "deviation",
              "yearStart"
            ],
            "type": "string",
            "description": "Sort result records. Relevance is meaningful for search operation.",
            "default": "relevance"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Ascending or descending sort order.",
            "default": "asc"
          },
          "includeRaw": {
            "title": "Include raw source strings",
            "type": "boolean",
            "description": "Include original MPG and percentage strings from the dataset for auditability.",
            "default": false
          },
          "includeQualityFlags": {
            "title": "Include quality flags",
            "type": "boolean",
            "description": "Include availability and sanity flags for each record.",
            "default": true
          },
          "offset": {
            "title": "Offset",
            "type": "integer",
            "description": "Number of matched records to skip. Useful for pagination.",
            "default": 0
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum number of result records to write to the dataset. Full dataset is under 10,000 records.",
            "default": 100
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}