NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Phonetic Encoder API

GET

Match similar-sounding names even when they are misspelled.

Phonetic Encoder generates phonetic codes for words using Soundex and Metaphone algorithms. These codes represent how words sound, enabling fuzzy matching of similar-sounding names.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/phonetic?word=smith
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "word": "smith",
    "soundex": "S530",
    "metaphone": "SM0"
  }
}

About the Phonetic Encoder API

A phonetic encoder API with Soundex and Metaphone for matching words by how they sound rather than how they are spelled. Compare two words to check if they sound alike, or encode individual words for database indexing and search applications. Essential for name matching, spell checking, and genealogical research.

Encoding a word returns its Soundex code, its Metaphone code, or both. Comparing two words returns each word's codes and a match flag per algorithm, so "Smith" and "Smythe" can be recognized as the same name in a customer list. Store the codes next to your records and you get fuzzy name matching with a plain equality lookup, which is how sounds-alike search works in CRMs, record linkage, census and family-history data.

Soundex is coarse and forgiving, while Metaphone follows more English pronunciation rules; returning both lets you choose the trade-off per use. Every field is available on every plan, including the Free plan.

How it works

Phonetic Encoder implements both algorithms directly. Each word is trimmed, uppercased and stripped of everything except A to Z before encoding, so digits, spaces, apostrophes and accented letters are dropped. A word with no letters left encodes to an empty string.

Soundex keeps the first letter and maps the remaining consonants to digits: B F P V to 1, C G J K Q S X Z to 2, D T to 3, L to 4, M N to 5 and R to 6. Adjacent letters with the same digit collapse into one. Vowels and Y separate repeats, so the second P in "Pepper" is still coded, while H and W do not, so "Ashcraft" encodes as A261. The code is padded with zeros or cut to exactly four characters.

Metaphone applies English spelling rules and has no fixed length. It drops the silent first letter of KN, GN, PN, AE and WR, turns WH into W and an initial X into S, keeps a vowel only when it is the first letter, and maps letter groups to sounds: PH to F, a C before I, E or Y to S, CH and SH to X, TH to 0 (theta), DGE to J. Repeated letters other than C are skipped. "Smith" and "Smythe" both encode as SM0.

algorithm is soundex, metaphone or both (the default) and controls which codes are returned. Passing compare switches to comparison mode: word1 and word2 echo the trimmed inputs, and soundex and metaphone become objects holding word1Code, word2Code and a boolean match that is true when the two codes are identical. The response is identical on every plan.

What people use it for

Name Matching
Find similar names despite spelling variations
Search Enhancement
Improve search results with phonetic matching
Data Deduplication
Identify duplicate records with name variations
Genealogy Research
Match historical records with spelling variations

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Phonetic Encoder

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Phonetic Encoder API.

Read the docs →
How many word comparisons does the Free plan cover?
The Free plan covers 100 requests each month at 2 credits per call. If you need higher volume, the Starter plan provides 100,000 calls each month, which works out to about $0.30 per 1,000 calls.
Which phonetic algorithms does the API support?
Phonetic Encoder supports both Soundex and Metaphone algorithms. You can retrieve both phonetic codes in a single request or specify an algorithm parameter when encoding or comparing words.
Can I check if two words sound alike in one call?
Yes. The Compare Words endpoint takes two words and determines if they sound phonetically identical, returning boolean match values alongside the generated codes for each algorithm.
Can I use this to index names in my own database for fuzzy search?
Yes. The Encode Word endpoint takes individual words and returns their Soundex and Metaphone codes. You can store these codes as search index keys in your database to deduplicate records or find alternative spellings.
What happens if two words match under Soundex but not Metaphone?
The compare endpoint evaluates each algorithm independently. The response includes separate match properties and individual codes for both Soundex and Metaphone, letting you handle cases where one algorithm finds a match and the other does not.

Ready to build with Phonetic Encoder? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs