Skip to content
HALOWERK

Netzwerk

cidr longest prefix match

Return the most specific supplied route and equal-prefix ties for each numeric IP. Supplied data only; bounded local calculation. No network lookup or external action.

POST https://netz.halowerk.com/v1/cidr-longest-prefix-match

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
routesarrayYes
addressesarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "routes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "prefix": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1
          },
          "next_hop": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1
          }
        },
        "required": [
          "prefix",
          "next_hop"
        ],
        "additionalProperties": false
      },
      "maxItems": 50,
      "minItems": 1
    },
    "addresses": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100,
        "minLength": 1
      },
      "maxItems": 50,
      "minItems": 1
    }
  },
  "required": [
    "routes",
    "addresses"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "routes": [
    {
      "prefix": "0.0.0.0/0",
      "next_hop": "default"
    },
    {
      "prefix": "8.8.8.0/24",
      "next_hop": "google-dns"
    }
  ],
  "addresses": [
    "8.8.8.8",
    "1.1.1.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 โ†’