Skip to content
HALOWERK

Naturwerk

ecology foodweb trophic levels

Solve basal-plus-diet-weighted trophic levels for a supplied food-web fraction matrix.

POST https://natur.halowerk.com/v1/ecology-foodweb-trophic-levels

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
taxaarrayYes
dietarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "taxa": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 64,
        "minLength": 1
      },
      "maxItems": 40,
      "minItems": 1
    },
    "diet": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "predator": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "prey": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "fraction": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          }
        },
        "required": [
          "predator",
          "prey",
          "fraction"
        ],
        "additionalProperties": false
      },
      "maxItems": 400,
      "minItems": 0
    }
  },
  "required": [
    "taxa",
    "diet"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "taxa": [
    "algae",
    "grazer",
    "predator"
  ],
  "diet": [
    {
      "predator": "grazer",
      "prey": "algae",
      "fraction": 1
    },
    {
      "predator": "predator",
      "prey": "grazer",
      "fraction": 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 โ†’