# Vowel Counter API

> Vowel Counter analyzes text to count vowels and consonants, providing detailed breakdowns and percentages for linguistic analysis.

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

## Overview

A vowel counter and consonant counter API for letter frequency analysis. Send any text and get back the number of vowels, the number of consonants and the total number of letters, with accented Latin letters such as é and ï counted as the vowel or consonant they are built on. Perfect for linguistic research, readability analysis, and educational applications requiring detailed phonetic character analysis.

Typical uses include phonics and spelling apps that show children how many vowels a word has, word-game scoring and puzzle generation, writing tools that report on letter balance, and research scripts that compare letter frequency across texts or languages without writing their own Unicode handling.

The Free plan returns the vowel, consonant and total letter counts. Paid plans add the vowel percentage and consonant percentage, a per-vowel breakdown showing how many times each of a, e, i, o and u appears, and the full character length of the text including spaces and punctuation.

## 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/vowelcounter" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"The quick brown fox jumps over the lazy dog. This pangram contains every letter of the alphabet at least once."}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | Text to analyze (max 50,000 characters) |

## Response fields

- `vowels` — number · Total count of vowels (a, e, i, o, u) in text
- `consonants` — number · Total count of consonant letters in text
- `totalLetters` — number · Combined count of vowels and consonants
- `vowelPercentage` — number · Percentage of text consisting of vowel letters · (premium)
- `consonantPercentage` — number · Percentage of text consisting of consonant letters · (premium)
- `vowelBreakdown` — object · Per-vowel counts for a, e, i, o and u
  - `vowelBreakdown.a` — number · Individual count of letter 'a' in text · (premium)
  - `vowelBreakdown.e` — number · Individual count of letter 'e' in text · (premium)
  - `vowelBreakdown.i` — number · Individual count of letter 'i' in text · (premium)
  - `vowelBreakdown.o` — number · Individual count of letter 'o' in text · (premium)
  - `vowelBreakdown.u` — number · Individual count of letter 'u' in text · (premium)
- `textLength` — number · Total character length including spaces and punctuation · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "vowels": 31,
    "consonants": 58,
    "totalLetters": 89,
    "vowelPercentage": 34.83,
    "consonantPercentage": 65.17,
    "vowelBreakdown": {
      "a": 8,
      "e": 11,
      "i": 3,
      "o": 7,
      "u": 2
    },
    "textLength": 110
  }
}
```

## Use cases

- **Linguistic Analysis** — Analyze vowel patterns and distributions in text for linguistic research
- **Readability Testing** — Assess text complexity based on vowel-consonant ratios
- **Educational Tools** — Create exercises for teaching phonetics and letter recognition
- **Text Statistics** — Generate detailed character frequency reports for writing analysis

## SDKs

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

## More

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