# Text to Emoji API

> Text to Emoji converts plain text strings into matching emoji representations. Send any word or phrase and receive the corresponding emoji characters.

**Endpoint:** `POST https://api.apiverve.com/v1/texttoemoji`  
**Category:** Text Processing  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/texttoemoji

## Overview

Submit a text string in the POST request body. The service processes the input to identify words and phrases, mapping them directly to their corresponding emoji characters. The response delivers the resulting emoji string in the emojis field.

## 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/texttoemoji" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"I am so excited to go to the lake and swim"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | The text you want converted into emojis |

## Response fields

- `emojis` — array · Emoji renderings of the input text, one string per suggested variation
  - `matchedEmojis.0.emoji` — string · The emoji character · (premium)
  - `matchedEmojis.0.name` — string · The emoji's Unicode name, such as "birthday cake" · (premium)
  - `matchedEmojis.0.match` — string · The word or phrase from the text that the emoji was matched to, or null when it was matched to the text as a whole · (premium)
  - `matchedEmojis.0.relevance` — number · How closely the emoji matches, from 0 to 1, scored by a sentence-embedding model · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "emojis": [
      "👈🏾",
      "✨👏",
      "🔥👏🏽",
      "👊🏾💪🏾",
      "🔥🤙🏼",
      "🤌🏽🔥",
      "🤩👏🏻",
      "😁📚🙌",
      "😞",
      "👉🏽👈🏽"
    ],
    "matchedEmojis": [
      {
        "emoji": "👙",
        "name": "bikini",
        "match": "swim",
        "relevance": 0.584
      },
      {
        "emoji": "🛁",
        "name": "bathtub",
        "match": "lake",
        "relevance": 0.51
      },
      {
        "emoji": "🩱",
        "name": "one-piece swimsuit",
        "match": null,
        "relevance": 0.387
      },
      {
        "emoji": "🏊️",
        "name": "person swimming",
        "match": null,
        "relevance": 0.37
      }
    ]
  }
}
```

## Use cases

- **Chat Message Reactions** — Chat applications can suggest relevant reaction icons by converting user message drafts into matching emoji before sending.
- **Social Feed Captioning** — When publishing automated marketing posts, schedule services convert keyword phrases into emoji to draw visual attention in feeds.
- **Vocabulary Learning Drills** — Educational software transforms vocabulary terms into pictograms for early-stage language drills and symbol association quizzes.
- **Push Notification Badges** — Decorate push notifications by turning event status updates into quick visual icon summaries for mobile lock screens.

## SDKs

- **npm** — `npm install @apiverve/texttoemoji` (https://www.npmjs.com/package/@apiverve/texttoemoji)
- **NuGet** — `dotnet add package APIVerve.API.TexttoEmoji` (https://www.nuget.org/packages/APIVerve.API.TexttoEmoji)
- **Source** — https://github.com/apiverve/texttoemoji-api

## More

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