cities

Energie-Anlagen je Stadt (MaStR, Tier A)

Changed on

Liefert die Energie-Anlagen (PV/Wind/Speicher/Biogas) einer Stadt aus dem offline aufbereiteten MaStR-SQLite-Store im kanonischen Envelope. Kein Upstream im Request-Pfad, der Abruf liest nur den vorbereiteten Bestand. Deaktiviert -> 200 source_status="disabled". Batch noch nicht gelaufen -> 200 source_status="not_ingested" (nie 5xx).

get/api/v1/cities/{slug}/energy

Request

Path parameters

slugstring required

Response

Energie-Envelope. data ist ein CanonicalRecord (EnergyAssetPayload) oder null, je nach source_status.

Example response

{
  "data": {
    "attribution": {
      "text": "Wikidata"
    }
  }
}

Changes

    • breaking

      added to the response property oneOf list for the response status

    • info

      removed subschema #1 from the response property oneOf list for the response status

    • info

      removed from the /// response property oneOf list for the response status