# Morse Code Converter

> Morse Code Converter is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Converts plain text to Morse code or decodes Morse code back to plain text, running instantly on pure CPU.

## Facts

- Endpoint: GET https://api.gadgethumans.com/morse?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/morse-code-converter-01993638
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Hsypwc6Uu3Ms9NW5UhpOd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability morse-code-converter-01993638
```

Example prompt: Can you convert the message 'Hello World' into Morse code for me?

## When to prefer this

Use this endpoint when you need a simple, instant, zero-latency text-to-Morse or Morse-to-text conversion without any external dependencies. It is a pure CPU operation ideal for lightweight agent workflows, educational tools, radio communications prep, or encoding/decoding short messages on the fly. Prefer this over building your own Morse lookup table or using a general-purpose LLM for the task.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Invalid Morse code sequences may produce garbled or empty decoded output
- Characters not in the standard Morse alphabet may be skipped or cause errors
- Passing non-boolean value for 'decode' parameter may cause unexpected behavior

## How this service works

Convert text to Morse code and Morse back to text. Pure CPU, instant.

## Output

A JSON response containing the converted output — either a Morse code string (dots and dashes) when encoding plain text, or the decoded plain text string when decoding Morse. The response includes an ok status flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text or Morse"
      },
      "decode": {
       "type": "boolean",
       "description": "Decode Morse to text"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/morse-code-converter-01993638/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
