{
  "openapi": "3.0.1",
  "info": {
    "title": "Cheapest Fuel Prices Near Me: France & Spain Petrol, Diesel",
    "description": "Cheapest diesel, petrol, LPG and more near a point, along a route or in postcodes, straight from the French and Spanish government price feeds. One normalised schema with EU fuel codes, distances, price-change tracking and source + licence on every record.",
    "version": "1.0",
    "x-build-id": "EXk0KmAHTPrN4ZAyf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wooden_scanner_c1n~official-fuel-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wooden_scanner_c1n-official-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/wooden_scanner_c1n~official-fuel-prices/runs": {
      "post": {
        "operationId": "runs-sync-wooden_scanner_c1n-official-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/wooden_scanner_c1n~official-fuel-prices/run-sync": {
      "post": {
        "operationId": "run-sync-wooden_scanner_c1n-official-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": {
          "searchMode": {
            "title": "Search mode",
            "enum": [
              "near",
              "route",
              "postalCode"
            ],
            "type": "string",
            "description": "Where to look: around a point (near), along a route corridor (route), or inside postal codes (postalCode).",
            "default": "near"
          },
          "fuelType": {
            "title": "Fuel type",
            "enum": [
              "diesel",
              "petrol95",
              "petrol98",
              "diesel_premium",
              "petrol_premium",
              "lpg",
              "cng",
              "lng",
              "e85",
              "hvo",
              "hydrogen",
              "adblue",
              "any"
            ],
            "type": "string",
            "description": "Fuel to rank by. petrol95 = cheapest of 95-octane E5/E10 at each station; petrol98 = 98-octane; hvo = renewable diesel (XTL); any = all fuels, sorted by distance. Every record still lists all fuels the station sells.",
            "default": "diesel"
          },
          "latitude": {
            "title": "Latitude (near mode)",
            "type": "number",
            "description": "Centre point latitude in decimal degrees (WGS84). Default: central Paris.",
            "default": 48.8566
          },
          "longitude": {
            "title": "Longitude (near mode)",
            "type": "number",
            "description": "Centre point longitude in decimal degrees (WGS84).",
            "default": 2.3522
          },
          "radiusKm": {
            "title": "Radius (km, near mode)",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "Straight-line search radius around the point, 0.1 to 50 km.",
            "default": 5
          },
          "routePoints": {
            "title": "Route waypoints (route mode)",
            "type": "array",
            "description": "Two or more 'latitude,longitude' points in driving order, e.g. ['41.3874,2.1686', '43.6108,3.8767']. Straight lines join them, so for a real road route pass an encoded polyline instead (or more waypoints).",
            "items": {
              "type": "string"
            }
          },
          "routePolyline": {
            "title": "Encoded route polyline (route mode)",
            "type": "string",
            "description": "An encoded polyline from Google Directions, OSRM, GraphHopper, Mapbox or Valhalla. Overrides routePoints."
          },
          "polylinePrecision": {
            "title": "Polyline precision",
            "minimum": 5,
            "maximum": 6,
            "type": "integer",
            "description": "5 for Google, OSRM, Mapbox polyline; 6 for Valhalla and OSRM polyline6.",
            "default": 5
          },
          "corridorKm": {
            "title": "Corridor width (km each side, route mode)",
            "minimum": 0.1,
            "maximum": 20,
            "type": "number",
            "description": "Maximum straight-line distance from the route, 0.1 to 20 km.",
            "default": 2
          },
          "postalCodes": {
            "title": "Postal codes (postalCode mode)",
            "type": "array",
            "description": "Full postal codes or prefixes: '75' = all of Paris, '28001' = central Madrid, '08' = Barcelona province. Matched in every selected country.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Feeds to use. Only feeds whose country touches the search area are downloaded. (Italy is planned: its ministry server does not currently accept connections from cloud servers.)",
            "items": {
              "type": "string",
              "enum": [
                "FR",
                "ES"
              ],
              "enumTitles": [
                "France",
                "Spain"
              ]
            },
            "default": [
              "FR",
              "ES"
            ]
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "price",
              "distance",
              "routePosition"
            ],
            "type": "string",
            "description": "price = cheapest first; distance = nearest first (distance from the route in route mode); routePosition = in driving order along the route.",
            "default": "price"
          },
          "maxResults": {
            "title": "Max stations",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of stations returned (and charged). 1 to 1000.",
            "default": 20
          },
          "brands": {
            "title": "Brands (optional)",
            "type": "array",
            "description": "Only stations whose brand contains one of these words, e.g. 'repsol', 'cepsa'. France's feed has no brands, so a brand filter excludes French stations.",
            "items": {
              "type": "string"
            }
          },
          "maxPriceAgeDays": {
            "title": "Ignore prices older than (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "number",
            "description": "Drops prices whose last update is older than this. 0 = keep all.",
            "default": 30
          },
          "includeAllPrices": {
            "title": "Include all fuels per station",
            "type": "boolean",
            "description": "On: each record lists every fuel the station sells. Off: only the selected fuel.",
            "default": true
          },
          "monitorName": {
            "title": "Monitor name (price changes since last run)",
            "type": "string",
            "description": "Give a name and schedule the Actor: each record then shows previousPrice and priceChange versus the last run with the same name."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}