/Word-of-The-Hour-API

This is the official Python API for Word of The Hour.

Primary LanguagePythonMIT LicenseMIT

Word of The Hour API

About

Word of The Hour is a platform for learning words in multiple languages.

This is the official Python API for Word of The Hour.

How does it work?

First, you need to import the Python module using the following code: from woth_api import WothAPI.

Then, you can simply call woth_data = WothAPI.fetch() to retrieve the data for the current word from the Word of The Hour servers.

Finally, you can access the retrieved data using the woth_data variable.

For example:

  • You can access the current word using woth_data["word"].

  • You can access the array of current definitions using woth_data["definitions"]["english"].

  • You can access the dictionary of current translations using woth_data["translations"].

Translations and Corrections

New translations and data corrections come from the r/Word_of_The_Hour language crowdsourcing project.

Usage

The MIT License applies to the Python Code provided within this repository.

We offer no guarantees regarding performance or the data retrieved by this API.

If you choose to incorporate this code into your applications, then we ask that you consider limiting how many WothAPI.fetch() calls that you make. For example, an application should not need to call WothAPI.fetch() more than once per hour.