I created this npm package to communicate to the Open Source Cocktail DB API to help others and automate this task. This was submitted to the Open Source Cocktail API DB Forum and is currently being used by over 2000 people.
https://www.npmjs.com/package/cocktail-api-search
#TheCockTailDB
Requires
- npm axios
API refer to https://www.thecocktaildb.com/api.php
Email: [email protected]
#API Keys
- You can use the test API key "1" during development of your app or for educational use However you must apply for a key a production API key via email if releasing publicly on an appstore. The test key may be revoked at any time if abused.
#API Methods
- NPM package gets installed, the param is set to "term" that is equal to the value of s. Which will search by name, this can be changed to how ever you like.
example https://MrHenriA.github.io/React-Cocktail/
Search bar has a value of term. Term sets the param ?s="term" which results in searching by cocktail name.