{
  "openapi": "3.0.1",
  "info": {
    "title": "Hebesätze Gemeinden – German Municipal Tax Rates 2024",
    "description": "Official 2024 Gewerbesteuer and Grundsteuer A/B Hebesätze for all 10,754 German municipalities from Destatis. Filter by name, AGS, state or postal code.",
    "version": "0.2",
    "x-build-id": "eXbWuV2WXXFUzxMs3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tabellenkontor~hebesaetze-gemeinden/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tabellenkontor-hebesaetze-gemeinden",
        "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/tabellenkontor~hebesaetze-gemeinden/runs": {
      "post": {
        "operationId": "runs-sync-tabellenkontor-hebesaetze-gemeinden",
        "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/tabellenkontor~hebesaetze-gemeinden/run-sync": {
      "post": {
        "operationId": "run-sync-tabellenkontor-hebesaetze-gemeinden",
        "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": {
          "query": {
            "title": "Municipality name",
            "type": "string",
            "description": "Search in the official municipality name. Default token mode matches 'Berlin' to 'Berlin, Stadt', but not 'Berlingen' or 'Bernau bei Berlin'."
          },
          "queryMode": {
            "title": "Name search mode",
            "enum": [
              "token",
              "contains"
            ],
            "type": "string",
            "description": "token: official short name (before the comma) starts with the query tokens (default). contains: substring anywhere in the name.",
            "default": "token"
          },
          "ags": {
            "title": "AGS code or prefix",
            "type": "string",
            "description": "Official 8-digit municipality code, or a prefix (e.g. '09' for Bayern, '11000' for Berlin)."
          },
          "states": {
            "title": "Bundesländer / States",
            "type": "array",
            "description": "Limit results to these states. Leave empty for all of Germany.",
            "items": {
              "type": "string",
              "enum": [
                "Baden-Württemberg",
                "Bayern",
                "Berlin",
                "Brandenburg",
                "Bremen",
                "Hamburg",
                "Hessen",
                "Mecklenburg-Vorpommern",
                "Niedersachsen",
                "Nordrhein-Westfalen",
                "Rheinland-Pfalz",
                "Saarland",
                "Sachsen",
                "Sachsen-Anhalt",
                "Schleswig-Holstein",
                "Thüringen"
              ]
            }
          },
          "postalCodes": {
            "title": "Postal codes (PLZ)",
            "type": "array",
            "description": "Filter by the official Destatis postal code of the municipality's administrative seat (Postleitzahl des Verwaltungssitzes, vintage 31.12.2024). A municipality can have many other street-level PLZs that will not match. This is not a complete Deutsche Post PLZ map.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]{5}$",
              "minLength": 5,
              "maxLength": 5
            }
          },
          "minTradeTax": {
            "title": "Min. Gewerbesteuer-Hebesatz",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Minimum trade-tax multiplier (Hebesatz), e.g. 400."
          },
          "maxTradeTax": {
            "title": "Max. Gewerbesteuer-Hebesatz",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum trade-tax multiplier."
          },
          "minPropertyTaxB": {
            "title": "Min. Grundsteuer-B-Hebesatz",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Minimum property-tax B multiplier (buildings / developed land)."
          },
          "maxPropertyTaxB": {
            "title": "Max. Grundsteuer-B-Hebesatz",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum property-tax B multiplier."
          },
          "minPropertyTaxA": {
            "title": "Min. Grundsteuer-A-Hebesatz",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Minimum property-tax A multiplier (agriculture and forestry)."
          },
          "maxPropertyTaxA": {
            "title": "Max. Grundsteuer-A-Hebesatz",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum property-tax A multiplier."
          },
          "minPopulation": {
            "title": "Min. population",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum official population (Destatis, 30 June 2024)."
          },
          "maxPopulation": {
            "title": "Max. population",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum official population."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "ags",
              "name",
              "tradeTaxRate",
              "propertyTaxARate",
              "propertyTaxBRate",
              "population",
              "state"
            ],
            "type": "string",
            "description": "Default is the official AGS code.",
            "default": "ags"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Sort direction: asc (ascending) or desc (descending).",
            "default": "asc"
          },
          "maxResults": {
            "title": "Max. results",
            "minimum": 1,
            "maximum": 12000,
            "type": "integer",
            "description": "Cap the number of municipality rows returned. The run still reports how many rows matched.",
            "default": 100
          },
          "includeSummary": {
            "title": "Include state summary",
            "type": "boolean",
            "description": "Also push one summary row per selected state (count, min/median/max trade-tax and property-tax B, total population). Summaries are computed on all matches, not only maxResults.",
            "default": false
          },
          "sourceUrl": {
            "title": "Source CSV URL or local path (optional)",
            "type": "string",
            "description": "Override the official Destatis CSV location. Leave empty in production. Useful for local fixtures."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}