Skip to content

MichaelWehar/Word-of-The-Hour-API

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages