Skip to content
HALOWERK

Govwerk

ballot weighted median policy

Return the full weighted-median interval minimizing absolute policy-position distance.

POST https://gov.halowerk.com/v1/ballot-weighted-median-policy

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
positionsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "positions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "minimum": -1000000000,
            "maximum": 1000000000
          },
          "weight": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          }
        },
        "required": [
          "value",
          "weight"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "positions"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "positions": [
    {
      "value": 0,
      "weight": 1
    },
    {
      "value": 10,
      "weight": 1
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’