{
  "openapi": "3.1.0",
  "info": {
    "title": "powerstations.reviews public API",
    "version": "1.0.0",
    "summary": "Every current portable power station compared on the numbers that decide fit: capacity, output, surge, weight, solar input and price, with the best pick for home backup, CPAP, camping, RV, van life and devices.",
    "termsOfService": "https://powerstations.reviews/data",
    "contact": {
      "name": "powerstations.reviews",
      "email": "hello@powerstations.reviews"
    }
  },
  "servers": [
    {
      "url": "https://powerstations.reviews/"
    }
  ],
  "paths": {
    "/api/v1/latest.json": {
      "get": {
        "summary": "All tracked power stations with their published specs, prices, source URLs and dates checked.",
        "parameters": [
          {
            "name": "client",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional polite client identifier. Static hosting may record it in edge access logs."
          }
        ],
        "responses": {
          "200": {
            "description": "All tracked power stations with their published specs, prices, source URLs and dates checked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/latest.json": {
      "get": {
        "summary": "All tracked power stations with their published specs, prices, source URLs and dates checked.",
        "parameters": [
          {
            "name": "client",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional polite client identifier. Static hosting may record it in edge access logs."
          }
        ],
        "responses": {
          "200": {
            "description": "All tracked power stations with their published specs, prices, source URLs and dates checked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "x-permanent-alias-for": "/api/v1/latest.json"
    },
    "/api/v1/health.json": {
      "get": {
        "summary": "Dataset freshness and availability",
        "parameters": [
          {
            "name": "client",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional polite client identifier. Static hosting may record it in edge access logs."
          }
        ],
        "responses": {
          "200": {
            "description": "Dataset freshness and availability",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "generated_at",
                    "datasets"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok",
                        "stale",
                        "unavailable"
                      ]
                    },
                    "generated_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "datasets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/health.json": {
      "get": {
        "summary": "Dataset freshness and availability",
        "parameters": [
          {
            "name": "client",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional polite client identifier. Static hosting may record it in edge access logs."
          }
        ],
        "responses": {
          "200": {
            "description": "Dataset freshness and availability",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "generated_at",
                    "datasets"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok",
                        "stale",
                        "unavailable"
                      ]
                    },
                    "generated_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "datasets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "x-permanent-alias-for": "/api/v1/health.json"
    },
    "/power-stations.csv": {
      "get": {
        "summary": "One row per power station: capacity, output, chemistry, cycles, weight, charging limits, price, source and date checked.",
        "parameters": [
          {
            "name": "client",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional polite client identifier. Static hosting may record it in edge access logs."
          }
        ],
        "responses": {
          "200": {
            "description": "One row per power station: capacity, output, chemistry, cycles, weight, charging limits, price, source and date checked.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}