Catalog/encoding-baudot

Encoding

Baudot / ITA2 codec API

Encodes text to 5-bit ITA2 (Baudot) teleprinter codes, automatically inserting LTRS/FIGS shift codes, or decodes a code array back to text. Answers 'What are the Baudot codes for HELLO?', 'Decode these ITA2 5-bit codes.'

Price$0.02per request
MethodPOST
Route/v1/encoding/baudot
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
baudotita2teleprinter5-bitencodedecodetelegraphencoding
API URLhttps://x402.hexl.dev/v1/encoding/baudot
Integration docs
Example request
{
  "value": "HI 1"
}
Example response
{
  "operation": "encode",
  "codes": [
    20,
    6,
    4,
    27,
    23
  ],
  "bits": [
    "10100",
    "00110",
    "00100",
    "11011",
    "10111"
  ],
  "interpretation": "Baudot/ITA2 encoded 'HI 1' to 5 5-bit codes (with shift codes)."
}
Input schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "type": "string",
      "examples": [
        "HI 1"
      ]
    },
    "operation": {
      "type": "string",
      "enum": [
        "encode",
        "decode"
      ]
    },
    "codes": {
      "type": "array",
      "items": {
        "type": "number"
      }
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}