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."
}
https://wordoftheday.freeapi.me/
All API requests should be made to this endpoint. HTTPS is required for all API calls.
The Word of the Day API accepts GET requests only.
This API does not accept any query parameters. A simple GET request to the base URL will return the current Word of the Day.
# 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);
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.
The API may return the following error responses: