LIVE API

Word of the Day API

Fetches the current Word of the Day from Wordnik, providing the word, its definition, part of speech, publish date, and an example sentence.

GET https://wordoftheday.freeapi.me/

{
  "word": "ephemeral",
  "meaning": "Lasting for a very short time.",
  "partOfSpeech": "adjective",
  "date": "2024-07-28",
  "example": "The beauty of the cherry blossoms is ephemeral, lasting only a week or two each spring."
}

Documentation

Base URL

https://wordoftheday.freeapi.me/

All API requests should be made to this endpoint. HTTPS is required for all API calls.

Request Methods

The Word of the Day API accepts GET requests only.

Parameters

This API does not accept any query parameters. A simple GET request to the base URL will return the current Word of the Day.

Example Requests

# Get the Word of the Day
curl https://wordoftheday.freeapi.me/
// Get the Word of the Day
fetch('https://wordoftheday.freeapi.me/')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));
import requests

# Get the Word of the Day
response = requests.get('https://wordoftheday.freeapi.me/')
data = response.json()
print(data)
// Get the Word of the Day
$response = file_get_contents('https://wordoftheday.freeapi.me/');
$data = json_decode($response, true);
print_r($data);

Response Format

The API returns a JSON object containing the Word of the Day and related details.

{
  "word": "ephemeral",                 // string | The word of the day
  "meaning": "Lasting for a very short time.", // string | The definition of the word
  "partOfSpeech": "adjective",         // string | The grammatical part of speech
  "date": "2024-07-28",                // string | The date (YYYY-MM-DD) this word was featured
  "example": "The beauty of the..."    // string | An example sentence using the word (can be null)
}

Note: Some fields like `example` might be `null` if the source (Wordnik) doesn't provide them for that specific day's word.

Key Response Properties

  • word - The featured word for the day.
  • meaning - The primary definition of the word.
  • partOfSpeech - The grammatical part of speech (e.g., noun, verb, adjective).
  • date - The date (YYYY-MM-DD) for which this word is featured.
  • example - An example sentence using the word. May be `null`.

Error Responses

The API may return the following error responses:

  • 403 Forbidden - Returned if the request is made over HTTP instead of HTTPS.
  • 500 Internal Server Error - Returned if the service encounters an unexpected error or cannot fetch data from the upstream Wordnik API. The response body may contain more details in a JSON format: `{"error": "...", "details": "..."}`.
  • Other 5xx errors - Possible if the upstream Wordnik API returns an error.