{
  "openapi": "3.0.1",
  "info": {
    "title": "Fuel Prices API - Europe Stations & Weekly Averages, No Key",
    "description": "No API key. Cheapest diesel, petrol and LPG at stations near any point in France, Spain and Italy (official feeds, about 33,000 stations) plus official weekly pump prices for all 27 EU countries with history since 2005. Price monitor mode returns only changes.",
    "version": "0.1",
    "x-build-id": "3C0QoeTiC6cAku8LY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/martin10291~europe-fuel-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-martin10291-europe-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/martin10291~europe-fuel-prices/runs": {
      "post": {
        "operationId": "runs-sync-martin10291-europe-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/martin10291~europe-fuel-prices/run-sync": {
      "post": {
        "operationId": "run-sync-martin10291-europe-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": {
          "mode": {
            "title": "What to return",
            "enum": [
              "both",
              "stations",
              "averages"
            ],
            "type": "string",
            "description": "both = station prices near the point plus the weekly national averages; stations = only stations near the point (France, Spain, Italy); averages = only the official weekly averages per EU country.",
            "default": "both"
          },
          "latitude": {
            "title": "Latitude",
            "type": "number",
            "description": "Latitude of the point to search around (WGS84), e.g. 48.8566 for Paris, 40.4168 for Madrid, 41.9028 for Rome. Station prices cover France, Spain and Italy."
          },
          "longitude": {
            "title": "Longitude",
            "type": "number",
            "description": "Longitude of the point to search around (WGS84), e.g. 2.3522 for Paris."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "type": "number",
            "description": "Search radius around the point in kilometres, 0.5 to 50.",
            "default": 5
          },
          "fuel": {
            "title": "Fuel",
            "enum": [
              "diesel",
              "petrol95",
              "petrol95_e10",
              "petrol98",
              "lpg",
              "e85",
              "cng",
              "lng",
              "diesel_premium",
              "petrol_premium",
              "adblue",
              "hydrogen",
              "all"
            ],
            "type": "string",
            "description": "Fuel to price and sort by: diesel, petrol95 (E5), petrol95_e10, petrol98, lpg, e85, cng, lng, diesel_premium, petrol_premium, adblue, hydrogen, or all (every fuel the station sells, sorted by distance). Every row also lists all fuels of the station.",
            "default": "diesel"
          },
          "sortBy": {
            "title": "Sort stations by",
            "enum": [
              "price",
              "distance"
            ],
            "type": "string",
            "description": "price = cheapest first (ties by distance); distance = nearest first.",
            "default": "price"
          },
          "maxStations": {
            "title": "Max stations",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of stations to return, 1 to 200.",
            "default": 20
          },
          "averageCountries": {
            "title": "Countries for weekly averages",
            "type": "array",
            "description": "ISO country codes for the official EU Weekly Oil Bulletin averages (any of the 27 EU countries, plus EU for the EU-27 average and EA for the euro area). Use [\"ALL\"] for all. Leave empty in both mode to skip averages.",
            "items": {
              "type": "string"
            }
          },
          "historyWeeks": {
            "title": "History weeks",
            "minimum": 0,
            "maximum": 1200,
            "type": "integer",
            "description": "Add the last N weekly prices to every average row (0 = none, up to 1,100 weeks back to 2005).",
            "default": 0
          },
          "onlyNew": {
            "title": "Only changes (price monitor)",
            "type": "boolean",
            "description": "Return only stations whose price changed (price_down / price_up / new_station) and only new weekly averages since the last run with the same Monitor ID. The first run returns everything. Use it on a schedule.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name of the watch list for Only changes mode, e.g. paris-diesel. Each Monitor ID keeps its own memory.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}