Using the Kaggle API to create, update, download, and monitor your notebooks
The Kaggle API is a powerful tool that extends the functionality available in the Kaggle user interface. You can use it for various tasks: define, update, and download datasets, submit to competitions, define new notebooks, push or pull versions of notebooks, or verify a run status.
There are just two simple steps for you to start using the Kaggle API. Let’s get started:
- First, you will need to create an authentication token. Navigate to your account, and from the right-side icon, select the menu item Account. Then go to the API section. Here, click on the Create new API token button to download your authentication token (it is a file named
kaggle.json
). If you will be using the Kaggle API from a Windows machine, its location isC:\Users\<your_name>\.kaggle\kaggle.json
. On a Mac or Linux machine, the path to the file should be~/.kaggle/kaggle.json
. - Next, you will have to...