nokey is a Python package designed to provide easy access to various APIs that do not require an API key for authentication. This project aims to simplify the process of interacting with different APIs by offering a unified interface for accessing them, all within a single Python package.
- Access a growing collection of keyless APIs conveniently from one place.
- Organized into submodules based on categories such as country information, finance, geolocation, spaceflight, education, food, random data, jokes, animals, science, and weather, developer tools, language, and games.
- Easily installable via pip, making it accessible to all Python developers.
You can install the module using pip:
pip install nokey
Here is a simple example of how to use one of the APIs to access a random dog image:
from nokey.animals import dog_api
# Initialize the DogAPI object
dog = dog_api.DogAPI()
# Get a random dog image URL
dog_image_url = dog.get_random_dog_image()
# Print the URL
print(dog_image_url)
Also, to print out a list of the APIs supported by nokey, simply run the following script:
from nokey.helperFuncs.get_api_list import get_api_list
api_list = get_api_list()
print(api_list)
Each API class has optional caching with requests_cache. To enable caching, set the use_caching argument when calling the class to True.
Each API class has an "about" attribute that returns a short description of the API. To get the URL for the API documentation of any API, simply call the get_docs_url() method for the API class.
We welcome contributions to expand the range of APIs available in nokey. Whether you want to add a new submodule or enhance an existing one, your contributions are valuable. To contribute, please fork the repository, make your changes, and submit a pull request.
RestCountries
Wallstreet Bets
Exchange API
Coinmap
IP API
Zippopotomus
Spaceflight News
University Domains and Names
Fruityvice
RandomUserGenerator
JokeAPI
DogAPI
Nobel Prize API
Integrated Taxonomic Information System
National Weather Service API
URL Shortener
URLHaus
APIsGuru
Microlink
FilterLists
Dictum
Free Dictionary
Free To Game
Open Trivia Database
Shadify
Bored API
Nager.Date
Federal Register
USA Spending
Star Trek API
Gutendex
Lorum Picsum
Art Institute of Chicago
Open Disease
As the project grows, we envision expanding the collection of keyless APIs to cover a wide range of categories. Your feedback and contributions will play a crucial role in shaping the future of nokey.
If you find this project helpful and would like to support it, consider donating.
This project is licensed under the MIT License - see the LICENSE file for details.
Check out the docs.
Be sure to read the API documentation if you plan to use any of the APIs for development. This package is for accessing keyless, free, open source APIs and I am not responsible for the content of the APIs themselves.