{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Fuel Prices - France and Spain (official open data)",
    "description": "Current fuel prices of every station in France and Spain from the two governments' open data feeds: diesel, petrol 95/98, E10, LPG, CNG, HVO and more. Brand, address, coordinates, price and update time. Filter by country, fuel, postal code, map box.",
    "version": "0.1",
    "x-build-id": "On7IoZ9tCNTYw5G98"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/darikami~eu-fuel-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-darikami-eu-fuel-prices",
        "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/darikami~eu-fuel-prices/runs": {
      "post": {
        "operationId": "runs-sync-darikami-eu-fuel-prices",
        "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/darikami~eu-fuel-prices/run-sync": {
      "post": {
        "operationId": "run-sync-darikami-eu-fuel-prices",
        "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": "FR = France, ES = Spain. Empty: France and Spain (or the countries of your areas). Each country is one whole-country file. Italy is experimental: the ministry's site refuses cloud networks; it works only from an allowed network.",
            "items": {
              "type": "string",
              "enum": [
                "FR",
                "ES",
                "IT"
              ],
              "enumTitles": [
                "France (prix-carburants.gouv.fr)",
                "Spain (Geoportal Gasolineras)",
                "Italy - experimental: the ministry's site refuses cloud networks"
              ]
            }
          },
          "fuels": {
            "title": "Fuel types",
            "type": "array",
            "description": "Keep only these fuel types. Empty: every fuel. Each item also carries the source's own product name (fuelName).",
            "items": {
              "type": "string",
              "enum": [
                "diesel",
                "diesel-premium",
                "diesel-agricultural",
                "hvo",
                "biodiesel",
                "petrol-95",
                "petrol-95-e10",
                "petrol-98",
                "petrol-98-e10",
                "petrol-premium",
                "e85",
                "lpg",
                "cng",
                "lng",
                "bio-cng",
                "bio-lng",
                "hydrogen",
                "adblue",
                "renewable-petrol",
                "bioethanol",
                "other"
              ],
              "enumTitles": [
                "Diesel (B7)",
                "Premium or special diesel (brand diesels, winter diesel)",
                "Agricultural diesel (ES Gasóleo B)",
                "HVO renewable diesel",
                "Biodiesel",
                "Petrol 95 (E5)",
                "Petrol 95 E10",
                "Petrol 98 (E5)",
                "Petrol 98 E10",
                "Premium petrol (brand petrols, 100 octane)",
                "E85 bioethanol blend",
                "LPG (autogas)",
                "CNG (compressed natural gas, per kg)",
                "LNG (liquefied natural gas, per kg)",
                "Bio-CNG (per kg)",
                "Bio-LNG (per kg)",
                "Hydrogen (per kg)",
                "AdBlue",
                "Renewable petrol",
                "Bioethanol",
                "Any other product the source lists"
              ]
            }
          },
          "areas": {
            "title": "Areas (postal-code prefix or Italian province)",
            "type": "array",
            "description": "Keep stations in these areas: the country, then the start of the postal code - FR-75 = Paris, FR-13 = Bouches-du-Rhône, ES-28 = Madrid, ES-08 = Barcelona. With areas, every country you select needs an area. Italy (experimental): a province code, IT-RM = Rome.",
            "items": {
              "type": "string"
            }
          },
          "boundingBox": {
            "title": "Map box",
            "type": "object",
            "description": "Keep stations inside this box, in degrees: { \"south\": 48.80, \"west\": 2.22, \"north\": 48.91, \"east\": 2.47 }. Stations without coordinates are dropped."
          },
          "maxAgeDays": {
            "title": "Maximum price age (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Drop prices that were last updated more than this number of days ago. France and Italy give a time per price; for Spain it is the time of the national file."
          },
          "maxItems": {
            "title": "Maximum prices",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this number of station prices. Empty: no limit (France has ~30,000 prices, Spain ~43,000)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}