Skip to content
HALOWERK

Text Tools

jsonfeed handoff language selection

Feed language selection applies item, feed and fallback language in order and selects matching items. Use it when an agent needs building a localized feed view.

POST https://text.halowerk.com/v1/jsonfeed-handoff-language-selection

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
itemsarrayYes
feed_languagestringYes
wantedstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 400,
            "minLength": 1
          }
        },
        "required": [
          "id"
        ]
      },
      "maxItems": 100,
      "minItems": 1
    },
    "feed_language": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1
    },
    "wanted": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1
    }
  },
  "required": [
    "items",
    "feed_language",
    "wanted"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "items": [
    {
      "id": "us6000udhb",
      "language": "en"
    },
    {
      "id": "us6000udfu"
    }
  ],
  "feed_language": "en-US",
  "wanted": "en"
}

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": {
        "selected": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "inherited": {
          "type": "integer"
        },
        "matches": {
          "type": "integer"
        }
      },
      "required": [
        "selected",
        "inherited",
        "matches"
      ]
    },
    "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 →