{
  "openapi": "3.0.1",
  "info": {
    "title": "Fuel Prices Spain & France - Station Diesel & Petrol Prices",
    "description": "Station-level diesel, petrol 95/98, E10, E85 and LPG prices from the official open government feeds of Spain and France (~21,000 stations). Filter by province, department, postcode, radius or fuel; cheapest-N ranking and price-change monitoring. From $0.30 per 1,000 stations.",
    "version": "0.1",
    "x-build-id": "UnkAuxXf7DEPCjYyR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~fuel-prices-europe/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-fuel-prices-europe",
        "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/gazidev~fuel-prices-europe/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-fuel-prices-europe",
        "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/gazidev~fuel-prices-europe/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-fuel-prices-europe",
        "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": [
          "countries"
        ],
        "properties": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Which official feeds to read. ES = Spain (~11,400 stations, updated every 30 min), FR = France (~9,800 stations, near real time).",
            "items": {
              "type": "string",
              "enum": [
                "ES",
                "FR"
              ],
              "enumTitles": [
                "Spain",
                "France"
              ]
            },
            "default": [
              "ES",
              "FR"
            ]
          },
          "spainProvinces": {
            "title": "Spain: provinces",
            "type": "array",
            "description": "Spanish province names or 2-digit INE codes, e.g. `Madrid`, `Barcelona`, `Valencia`, `28`. Leave all area filters empty for the whole country.",
            "items": {
              "type": "string"
            }
          },
          "franceDepartments": {
            "title": "France: departments",
            "type": "array",
            "description": "French department numbers, e.g. `75` (Paris), `13`, `69`, `2A`, `974`.",
            "items": {
              "type": "string"
            }
          },
          "postcodes": {
            "title": "Postcodes / postcode prefixes",
            "type": "array",
            "description": "Postcodes or prefixes for either country, e.g. `28013`, `0800`, `75015`, `69`. A station is kept if it matches any province, department or postcode above.",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Radius search: latitude",
            "type": "string",
            "description": "Centre point latitude (WGS84), e.g. `40.4168`. Used together with longitude and radius. Can be combined with the area filters."
          },
          "longitude": {
            "title": "Radius search: longitude",
            "type": "string",
            "description": "Centre point longitude, e.g. `-3.7038`."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Keep stations within this many km of the centre point; results are sorted by distance. 0 = off."
          },
          "fuelTypes": {
            "title": "Fuel types",
            "type": "array",
            "description": "Only return these fuels (stations without any of them are dropped). Empty = all fuels the station sells. France publishes diesel, petrol95, e10, petrol98, e85 and lpg.",
            "items": {
              "type": "string",
              "enum": [
                "diesel",
                "dieselPremium",
                "dieselB",
                "dieselRenewable",
                "biodiesel",
                "petrol95",
                "petrol95Premium",
                "e10",
                "e25",
                "e85",
                "petrol98",
                "petrol98E10",
                "petrolRenewable",
                "bioethanol",
                "lpg",
                "cng",
                "lng",
                "bioCng",
                "bioLng",
                "hydrogen",
                "adblue",
                "methanol",
                "ammonia"
              ],
              "enumTitles": [
                "Diesel (Gasoleo A / Gazole)",
                "Premium diesel (ES)",
                "Agricultural diesel B (ES)",
                "Renewable diesel HVO (ES)",
                "Biodiesel (ES)",
                "Petrol 95 E5 (Gasolina 95 / SP95)",
                "Premium petrol 95 (ES)",
                "E10 (Gasolina 95 E10 / SP95-E10)",
                "E25 (ES)",
                "E85 superethanol",
                "Petrol 98 (Gasolina 98 / SP98)",
                "Petrol 98 E10 (ES)",
                "Renewable petrol (ES)",
                "Bioethanol (ES)",
                "LPG / autogas (GLP / GPLc)",
                "CNG (ES, per kg)",
                "LNG (ES, per kg)",
                "Bio-CNG (ES, per kg)",
                "Bio-LNG (ES, per kg)",
                "Hydrogen (ES, per kg)",
                "AdBlue (ES)",
                "Methanol (ES)",
                "Ammonia (ES)"
              ]
            }
          },
          "cheapestN": {
            "title": "Cheapest N stations",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "If > 0, return only the N cheapest stations per country for the ranking fuel (with rank 1..N). 0 = all matching stations.",
            "default": 0
          },
          "cheapestFuel": {
            "title": "Ranking fuel",
            "enum": [
              "diesel",
              "dieselPremium",
              "dieselB",
              "dieselRenewable",
              "biodiesel",
              "petrol95",
              "petrol95Premium",
              "e10",
              "e25",
              "e85",
              "petrol98",
              "petrol98E10",
              "petrolRenewable",
              "bioethanol",
              "lpg",
              "cng",
              "lng",
              "bioCng",
              "bioLng",
              "hydrogen",
              "adblue",
              "methanol",
              "ammonia"
            ],
            "type": "string",
            "description": "Fuel used for the cheapest-N ranking. Default: the first selected fuel type, or diesel."
          },
          "monitorPriceChanges": {
            "title": "Monitor price changes (only changed stations)",
            "type": "boolean",
            "description": "Keeps a snapshot of prices between runs (named key-value store). First run = baseline (all matching stations). Later runs return only stations whose prices changed, with old price, new price and delta. Schedule the Actor (e.g. hourly) for alerts.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use a different name for each monitor (each keeps its own snapshot).",
            "default": "default"
          },
          "includeRestrictedStations": {
            "title": "Spain: include restricted-sale stations",
            "type": "boolean",
            "description": "Spanish cooperatives / fleet stations that do not sell to the general public (Tipo Venta R).",
            "default": false
          },
          "maxStations": {
            "title": "Max stations",
            "minimum": 0,
            "type": "integer",
            "description": "Upper limit of stations saved per run (each saved station is one charged event). 0 = no limit.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}