Skip to content
HALOWERK

Live World Data

wash access peer distance

Water and sanitation peer matching finds the closest observed country in the edition by Euclidean distance across two basic-service percentages. Use it when an agent needs finding a comparable service profile.

POST https://welt.halowerk.com/v1/wash-access-peer-distance

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
countrystringYes
yearintegerNo
Show full input schema
{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "maxLength": 72,
      "minLength": 1
    },
    "year": {
      "type": "integer",
      "minimum": 2015,
      "maximum": 2024
    }
  },
  "required": [
    "country"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "country": "Ghana",
  "year": 2024
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "iso": {
          "type": "string"
        },
        "year": {
          "type": "integer"
        },
        "peer": {
          "type": "string"
        },
        "distance_points": {
          "type": "number"
        },
        "eligible_peers": {
          "type": "integer"
        }
      },
      "required": [
        "iso",
        "year",
        "peer",
        "distance_points",
        "eligible_peers"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’