Skip to content
HALOWERK

Data Conversion and Public Data

wdi global closest observed peers

World Bank peer matching locates other economies closest in indicator value to a selected country in the same year. Use it when an agent needs comparable observed country values.

POST https://daten.halowerk.com/v1/wdi-global-closest-observed-peers

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
indicatorstringYes
countrystringYes
yearintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "indicator": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1
    },
    "country": {
      "type": "string",
      "maxLength": 8,
      "minLength": 1
    },
    "year": {
      "type": "integer",
      "minimum": 2022,
      "maximum": 2026
    }
  },
  "required": [
    "indicator",
    "country",
    "year"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "indicator": "pib_per_capita_usd",
  "country": "DE",
  "year": 2023
}

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": {
        "series": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "peers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "value": {
                "type": "number"
              },
              "difference": {
                "type": "number"
              }
            },
            "required": [
              "code",
              "value",
              "difference"
            ]
          }
        }
      },
      "required": [
        "series",
        "country",
        "peers"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub โ†’