{
  "openapi": "3.0.1",
  "info": {
    "title": "EU and Spain Fuel Prices Scraper (EU Weekly, ES Daily, History)",
    "description": "Official EU-27 weekly fuel prices plus daily prices for ~12,000 Spanish petrol stations by brand and province. Query historical daily snapshots by date range. Petrol, diesel, LPG and taxes. No login, no browser.",
    "version": "0.2",
    "x-build-id": "eOFAANotK6xlNE6Ud"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadfetch~eu-fuel-price-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadfetch-eu-fuel-price-extractor",
        "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/steadfetch~eu-fuel-price-extractor/runs": {
      "post": {
        "operationId": "runs-sync-steadfetch-eu-fuel-price-extractor",
        "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/steadfetch~eu-fuel-price-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-steadfetch-eu-fuel-price-extractor",
        "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": {
          "mode": {
            "title": "Source mode",
            "enum": [
              "bulletin",
              "spain",
              "historical"
            ],
            "type": "string",
            "description": "bulletin (default) reads the European Commission Weekly Oil Bulletin; spain reads daily gas station prices from the Spanish Ministry of Industry and Tourism (MICT) API; historical reads daily snapshots from the Steadfetch bucket so you can request a date range and get historical station prices back.",
            "default": "bulletin"
          },
          "dateFrom": {
            "title": "Date from (historical mode)",
            "type": "string",
            "description": "Start date of the historical range (YYYY-MM-DD). Required when mode is \"historical\". The available range starts at 2026-11-01 and grows each day as scheduled runs save daily snapshots.",
            "default": ""
          },
          "dateTo": {
            "title": "Date to (historical mode)",
            "type": "string",
            "description": "End date of the historical range (YYYY-MM-DD). Required when mode is \"historical\". Must be equal to or after dateFrom. The latest available date is always today; a future date returns 0 rows.",
            "default": ""
          },
          "province": {
            "title": "Province filter (historical mode)",
            "type": "string",
            "description": "Province name to filter by (e.g. \"ALBACETE\", \"MADRID\"). Only relevant for spain and historical modes.",
            "default": ""
          },
          "municipality": {
            "title": "Municipality filter (historical mode)",
            "type": "string",
            "description": "Municipality name to filter by (e.g. \"Abengibre\", \"Madrid\"). Only relevant for spain and historical modes.",
            "default": ""
          },
          "brand": {
            "title": "Brand filter (historical mode)",
            "type": "string",
            "description": "Brand name to filter by (e.g. \"REPSOL\", \"CEPSA\", \"GALP\"). Only relevant for spain and historical modes.",
            "default": ""
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "ISO 3166-1 alpha-2 codes to keep, for example ES, DE, FR. The EU-27 weighted average is country \"EU\". Empty returns all 27 countries plus the EU-27 average.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "fuels": {
            "title": "Fuels",
            "type": "array",
            "description": "Fuel slugs to keep: e95, diesel, heating_gas_oil, fuel_oil, fuel_oil_high_sulphur, lpg. Empty returns every fuel in the workbook.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "series": {
            "title": "Series",
            "enum": [
              "with_taxes",
              "without_taxes",
              "duties_taxes"
            ],
            "type": "string",
            "description": "with_taxes returns pump prices including duties and taxes; without_taxes excludes them; duties_taxes returns the tax amounts published by the Commission (VAT in percent, excise and other indirect taxes in national currency per 1000 l or tonne).",
            "default": "with_taxes"
          },
          "week": {
            "title": "Bulletin week",
            "type": "string",
            "description": "Use \"latest\" for the current bulletin, or a date (YYYY-MM-DD) inside the week you want. Only the bulletin currently published by the Commission can be downloaded; a different week returns 0 rows.",
            "default": "latest"
          },
          "monitorMode": {
            "title": "Monitor mode (delta only)",
            "type": "boolean",
            "description": "When enabled, rows already delivered for the same bulletin week are not pushed again, so a monitor run without a new bulletin delivers 0 rows and is not charged per result.",
            "default": false
          },
          "saveSnapshot": {
            "title": "Save snapshot to Steadfetch storage",
            "type": "boolean",
            "description": "Internal use: scheduled series only. When enabled on a run started by the Steadfetch account, the run also writes the full validated dataset to Steadfetch object storage for the daily price history. Customer runs never write, even with this flag on.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of validated rows to push to the dataset.",
            "default": 100
          },
          "strictSchema": {
            "title": "Strict output schema",
            "type": "boolean",
            "description": "Fail the run when an item does not match the OUTPUT schema. Keep enabled: Steadfetch never publishes Actors without output-schema validation.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}