{
  "openapi": "3.0.1",
  "info": {
    "title": "Italy Fuel Prices for Fleets & Logistics (Official MIMIT Data)",
    "description": "Official diesel, petrol, LPG, CNG and LNG prices for ~23,000 Italian fuel stations (MIMIT open data), cheapest first by radius, city or province. Replaces looking prices up by hand or joining the ministry's CSVs. For fleets, hauliers and fuel-cost budgets.",
    "version": "1.0",
    "x-build-id": "GI3DNA91xvBgqyOuA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shelly_fen~eu-fuel-prices-official/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shelly_fen-eu-fuel-prices-official",
        "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/shelly_fen~eu-fuel-prices-official/runs": {
      "post": {
        "operationId": "runs-sync-shelly_fen-eu-fuel-prices-official",
        "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/shelly_fen~eu-fuel-prices-official/run-sync": {
      "post": {
        "operationId": "run-sync-shelly_fen-eu-fuel-prices-official",
        "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",
        "properties": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Official national feed to query. IT = Italy (daily snapshot of prices in force at 08:00 the previous day). ES = Spain is in the code but its government server currently does not answer requests from Apify's cloud, so runs with ES fail for Spain.",
            "items": {
              "type": "string",
              "enum": [
                "ES",
                "IT"
              ],
              "enumTitles": [
                "Spain (currently unavailable from Apify cloud)",
                "Italy"
              ]
            },
            "default": [
              "IT"
            ]
          },
          "latitude": {
            "title": "Latitude (search center)",
            "type": "number",
            "description": "Decimal degrees, e.g. 40.4168 (Madrid). Use together with Longitude and Radius. Tip: right-click any point in OpenStreetMap or Google Maps to copy coordinates."
          },
          "longitude": {
            "title": "Longitude (search center)",
            "type": "number",
            "description": "Decimal degrees, e.g. -3.7038."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0.1,
            "maximum": 1500,
            "type": "number",
            "description": "Only used when coordinates are set. If omitted, 10 km."
          },
          "postalCodes": {
            "title": "Postal codes (prefix match)",
            "type": "array",
            "description": "Prefix match, e.g. \"28\" (whole province of Madrid) or \"08001\". Spain only (the Italian registry has no postcode).",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities / municipalities",
            "type": "array",
            "description": "Exact municipality name, case- and accent-insensitive, e.g. \"Málaga\", \"Milano\".",
            "items": {
              "type": "string"
            }
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "Italy: 2-letter province code (\"RM\", \"MI\"). (Spain: province name, currently unavailable.)",
            "items": {
              "type": "string"
            }
          },
          "stationIds": {
            "title": "Specific station IDs (monitoring)",
            "type": "array",
            "description": "Track exact stations using the stationKey from a previous run, e.g. \"ES:4375\", \"IT:59183\".",
            "items": {
              "type": "string"
            }
          },
          "fuelTypes": {
            "title": "Fuel types",
            "type": "array",
            "description": "Keep only stations selling at least one of these fuels. The FIRST fuel is used for cheapest-first sorting and for the selectedFuelPrice column.",
            "items": {
              "type": "string",
              "enum": [
                "diesel",
                "diesel_premium",
                "hvo",
                "biodiesel",
                "diesel_agricultural",
                "gasoline_95",
                "gasoline_95_e10",
                "gasoline_98",
                "gasoline_98_e10",
                "gasoline_premium",
                "gasoline_renewable",
                "e85",
                "lpg",
                "cng",
                "lng",
                "hydrogen",
                "adblue"
              ],
              "enumTitles": [
                "Diesel (B7) [diesel]",
                "Premium / additive diesel [diesel_premium]",
                "HVO / renewable diesel (XTL) [hvo]",
                "Biodiesel [biodiesel]",
                "Agricultural diesel (Spain Gasoleo B) [diesel_agricultural]",
                "Unleaded 95 (E5) [gasoline_95]",
                "Unleaded 95 E10 [gasoline_95_e10]",
                "Unleaded 98 (E5) [gasoline_98]",
                "Unleaded 98 E10 [gasoline_98_e10]",
                "Premium gasoline (branded 95+/100) [gasoline_premium]",
                "Renewable gasoline [gasoline_renewable]",
                "Bioethanol E85 [e85]",
                "LPG / Autogas [lpg]",
                "CNG / compressed natural gas [cng]",
                "LNG / liquefied natural gas [lng]",
                "Hydrogen [hydrogen]",
                "AdBlue [adblue]"
              ]
            }
          },
          "onlySelectedFuels": {
            "title": "Only output the selected fuels",
            "type": "boolean",
            "description": "If on, the prices object contains only the fuels chosen above (smaller output).",
            "default": false
          },
          "brands": {
            "title": "Brands (contains, case-insensitive)",
            "type": "array",
            "description": "e.g. \"Repsol\", \"Ballenoil\", \"Q8\", \"Esso\". Stations with a one-off name are labelled \"Independent\".",
            "items": {
              "type": "string"
            }
          },
          "motorwayOnly": {
            "title": "Motorway stations only",
            "type": "boolean",
            "description": "Only Italy flags motorway (autostrada) stations; Spanish stations are excluded when this is on.",
            "default": false
          },
          "excludeMotorway": {
            "title": "Exclude motorway stations",
            "type": "boolean",
            "description": "Italian motorway stations are usually more expensive.",
            "default": false
          },
          "maxPriceAgeDays": {
            "title": "Ignore prices older than (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "0 = no limit. Note: a price stays valid until the station reports a new one, so an old timestamp is not necessarily wrong (especially in Italy).",
            "default": 0
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "auto",
              "cheapest",
              "nearest",
              "none"
            ],
            "type": "string",
            "description": "auto = cheapest (if a fuel is selected), else nearest (if coordinates are set), else source order.",
            "default": "auto"
          },
          "maxResults": {
            "title": "Max stations",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of stations to output (each is one billable result). 0 = no limit (Spain ~11,500, Italy ~24,000 stations).",
            "default": 100
          },
          "includeSummary": {
            "title": "Also build a price summary",
            "type": "boolean",
            "description": "Min / p10 / median / mean / p90 / max per country and fuel over ALL matching stations (not just the first Max stations). Saved to the key-value store record SUMMARY. Charged once per run.",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}