{
  "openapi": "3.0.1",
  "info": {
    "title": "France & Spain Fuel Prices: Every Station, Official Data",
    "description": "Get fuel prices for every gas station in France and Spain (gasolineras, stations carburant): diesel and petrol prices, LPG, E85, with price changes since the last run, address and coordinates. Straight from official open data. No login, no key. Filter by postal code, city or radius.",
    "version": "0.1",
    "x-build-id": "htFWtkbOmDxh2LujW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/northbell~france-fuel-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-northbell-france-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/northbell~france-fuel-prices/runs": {
      "post": {
        "operationId": "runs-sync-northbell-france-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/northbell~france-fuel-prices/run-sync": {
      "post": {
        "operationId": "run-sync-northbell-france-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": {
          "country": {
            "title": "Country",
            "enum": [
              "FR",
              "ES"
            ],
            "type": "string",
            "description": "Which national price file to read: France or Spain. Postal codes, cities, radius, Max rows and Only changed work the same in both.",
            "default": "FR"
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "France: 5-digit postal codes (75015); a 2-digit value means a whole département (75, 69, 2A, 2B for Corsica; 971 to 976 for overseas). Spain: 5-digit postal codes (28001); a 2-digit value means a whole province (28 Madrid, 08 Barcelona). Stations matching any postal code, city or radius below are returned.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "City names, matched exactly but ignoring case and accents (Paris, Saint-Étienne). In Spain a name matches the Localidad or the Municipio (Madrid, Alcalá de Henares). Optional.",
            "items": {
              "type": "string"
            }
          },
          "near": {
            "title": "Near a point",
            "type": "object",
            "description": "Stations within a radius of a point, for example {\"lat\": 48.8566, \"lon\": 2.3522, \"radiusKm\": 5}. radiusKm defaults to 5. Rows then carry distanceKm and are sorted by distance. Optional."
          },
          "allFrance": {
            "title": "Every station in the chosen country",
            "type": "boolean",
            "description": "Every station in the chosen country (France about 9,800 rows, Spain about 11,500). Raise Max rows to 12000 to get them all. Use this instead of postal codes, cities or a radius.",
            "default": false
          },
          "fuels": {
            "title": "Fuels (France)",
            "type": "array",
            "description": "France only. Keep only these fuels in prices. Stations that sell none of them are left out. Empty: all fuels. Ignored when the country is Spain (use Fuels (Spain)).",
            "items": {
              "type": "string",
              "enum": [
                "Gazole",
                "SP95",
                "E10",
                "SP98",
                "E85",
                "GPLc"
              ],
              "enumTitles": [
                "Gazole (diesel)",
                "SP95",
                "E10 (SP95-E10)",
                "SP98",
                "E85 (ethanol)",
                "GPLc (LPG)"
              ]
            },
            "default": [
              "Gazole",
              "SP95",
              "E10",
              "SP98",
              "E85",
              "GPLc"
            ]
          },
          "fuelsSpain": {
            "title": "Fuels (Spain)",
            "type": "array",
            "description": "Spain only. Keep only these fuels in prices (names as in the Spanish file: Gasoleo A is diesel, Gasolina 95 E5 and Gasolina 98 E5 are petrol). Stations that sell none of them are left out. Empty: all fuels. Ignored when the country is France.",
            "items": {
              "type": "string",
              "enum": [
                "Adblue",
                "Amoniaco",
                "Biodiesel",
                "Bioetanol",
                "Biogas Natural Comprimido",
                "Biogas Natural Licuado",
                "Diésel Renovable",
                "Gas Natural Comprimido",
                "Gas Natural Licuado",
                "Gases licuados del petróleo",
                "Gasoleo A",
                "Gasoleo B",
                "Gasoleo Premium",
                "Gasolina 95 E10",
                "Gasolina 95 E25",
                "Gasolina 95 E5",
                "Gasolina 95 E5 Premium",
                "Gasolina 95 E85",
                "Gasolina 98 E10",
                "Gasolina 98 E5",
                "Gasolina Renovable",
                "Hidrogeno",
                "Metanol"
              ]
            },
            "default": [
              "Adblue",
              "Amoniaco",
              "Biodiesel",
              "Bioetanol",
              "Biogas Natural Comprimido",
              "Biogas Natural Licuado",
              "Diésel Renovable",
              "Gas Natural Comprimido",
              "Gas Natural Licuado",
              "Gases licuados del petróleo",
              "Gasoleo A",
              "Gasoleo B",
              "Gasoleo Premium",
              "Gasolina 95 E10",
              "Gasolina 95 E25",
              "Gasolina 95 E5",
              "Gasolina 95 E5 Premium",
              "Gasolina 95 E85",
              "Gasolina 98 E10",
              "Gasolina 98 E5",
              "Gasolina Renovable",
              "Hidrogeno",
              "Metanol"
            ]
          },
          "motorwayOnly": {
            "title": "Motorway stations only",
            "type": "boolean",
            "description": "France only: keep only stations on a motorway (roadType motorway). With country Spain this must stay off.",
            "default": false
          },
          "onlyChanged": {
            "title": "Only stations whose price changed since the last run",
            "type": "boolean",
            "description": "Off (default): every matching station is returned. On: a station whose prices are the same as in your last run with the same filters is left out and not charged. The first run returns everything. Use it with a schedule.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many stations.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}