Skip to content

Wordnik API

by wordnik.com

API keyHTTPSDictionaries
Open documentation ↗

Overview

The Wordnik API: All the words

Wordnik is a dictionaries API from wordnik.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 16 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Category
Dictionaries
Base URL
https://api.wordnik.com/v4
Version
4.0
Endpoints
16
Spec updated
2023-03-06

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.wordnik.com/v4/words.json/randomWord" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.wordnik.com/v4/words.json/randomWord", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.wordnik.com/v4/words.json/randomWord",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/word.json/{word}/audioFetches audio metadata for a word.
GET/word.json/{word}/definitionsReturn definitions for a word
GET/word.json/{word}/etymologiesFetches etymology data
GET/word.json/{word}/examplesReturns examples for a word
GET/word.json/{word}/frequencyReturns word usage over time
GET/word.json/{word}/hyphenationReturns syllable information for a word
GET/word.json/{word}/phrasesFetches bi-gram phrases for a word
GET/word.json/{word}/pronunciationsReturns text pronunciations for a given word
GET/word.json/{word}/relatedWordsGiven a word as a string, returns relationships from the Word Graph
GET/word.json/{word}/scrabbleScoreReturns the Scrabble score for a word
GET/word.json/{word}/topExampleReturns a top example for a word
GET/words.json/randomWordReturns a single random WordObject
GET/words.json/randomWordsReturns an array of random WordObjects
GET/words.json/reverseDictionaryReverse dictionary search
GET/words.json/search/{query}Searches words
GET/words.json/wordOfTheDayReturns a specific WordOfTheDay

Questions

Does the Wordnik API need an API key?

Yes. The Wordnik API uses API key authentication; the documentation explains how to get credentials.

Does the Wordnik API support HTTPS?

Yes, the Wordnik API is served over HTTPS.

How many endpoints does the Wordnik API have?

Its OpenAPI description lists 16 endpoints in version 4.0. All of them are shown on this page.

What are alternatives to the Wordnik API?

Other Dictionaries APIs include Oxford, Collins, Synonyms, Free Dictionary, WordSoHard.

Compare alternatives →

Listed from public-apis (MIT), public-apis database (MIT), APIs.guru (CC0).