# Leet Speak API

> Leet Speak translates plain text into leet speak or reverses obfuscated strings back to standard words. Submit any string with an encode or decode mode to receive the converted text and a count of changed characters.

**Endpoint:** `POST https://api.apiverve.com/v1/leetspeak`  
**Category:** Text Processing  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/leetspeak

## Overview

Pass any text string along with an encode or decode mode parameter. The engine replaces letters with numeric or symbolic equivalents when encoding, or restores standard Latin letters when decoding. Every response returns the converted text string, the applied mode, and the exact count of modified characters.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/leetspeak" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"This is a simple piece of text","mode":"encode"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | The text to encode or decode in Leet Speak |
| `mode` | string | Yes | The mode to use. One of: encode, decode |

## Response fields

- `text` — string · Text encoded in Leet Speak format
- `mode` — string · The conversion that was applied - encode or decode
- `changedCharacters` — number · How many characters differ between the input and the result

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "text": "7h!5 !5 4 5!mp13 p!3c3 0f 73x7",
    "mode": "encode",
    "changedCharacters": 17
  }
}
```

## Use cases

- **Content Moderation** — Detect banned keywords hidden in community forum posts by decoding obfuscated characters into standard text before running profanity checks.
- **Username Duplicate Prevention** — To catch duplicate registrations trying to bypass unique name rules using number substitutions, identity services normalize gamer handles before saving.
- **Gaming Chat Filters** — In-game chat systems convert incoming player messages back into standard vocabulary to flag abusive behavior across multiplayer lobbies.
- **Retro Profile Styling** — When generating novelty badges or cyberpunk titles, social applications convert usernames and status messages into stylized character strings.

## SDKs

- **npm** — `npm install @apiverve/leetspeak` (https://www.npmjs.com/package/@apiverve/leetspeak)
- **PyPI** — `pip install apiverve-leetspeak` (https://pypi.org/project/apiverve-leetspeak/)
- **NuGet** — `dotnet add package APIVerve.API.LeetSpeak` (https://www.nuget.org/packages/APIVerve.API.LeetSpeak)
- **Source** — https://github.com/apiverve/leetspeak-api

## More

- Full reference: https://docs.apiverve.com/ref/leetspeak
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
