Overview
The Kaggle API is the official way to work with Kaggle, the data science competition and dataset site, from a terminal or script instead of the website. It is delivered as a command-line tool called kaggle, written in Python, with its source published by Kaggle on GitHub under the Apache 2.0 licence.
With it you can list competitions, download their data and submit predictions; search, download, create and update datasets; pull, push and run notebooks (which the tool calls kernels); and manage models and their variations. Newer command groups cover forums and benchmarks. That makes it handy for pulling a dataset onto a server or notebook machine, or for scripting submissions.
A Kaggle account is required. You create an API token in your account settings and supply it through the KAGGLE_API_TOKEN environment variable or a token file, or sign in with the kaggle auth login command; the older kaggle.json credentials file still works. The documentation asks for Python 3.11 or later and recommends installing with pipx or uv, with plain pip as an alternative.
Categories
Features
- Lists competitions, downloads their data and submits entries
- Searches, downloads, creates and updates datasets
- Pulls, pushes and runs notebooks (kernels) and fetches their output
- Creates, updates and downloads models and model variations
- Command groups for forums and benchmarks
- Sign-in by browser-based login, environment variable or token file
- Installed from PyPI with pipx, uv or pip
Privacy
See the official privacy policy. The tool sends requests to Kaggle using a token tied to your Kaggle account, stored in an environment variable or a file in your home folder.
Pros & Cons
Pros
- Official tool, maintained by Kaggle
- Source code is open under the Apache 2.0 licence
- Saves clicking through the website to fetch large datasets
- Works in scripts and on remote machines
Cons
- Needs a Kaggle account and an API token
- Requires Python 3.11 or later
- The official docs page on kaggle.com needs JavaScript; the full reference is in the GitHub repository
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
REST Countries API Editor's PickData APIs · REST CountriesA country data API with populations, currencies, languages, borders, flags and more. Requests now need an API key; a small free tier is offered.
Freemium API -
IP address geolocation, ASN and network data through a web lookup and a developer API.
Freemium No Signup Web API -
Data APIs · World Bank API
Provides free global economic and development data via API.
Free No Signup Web API -
Data APIs · Nasdaq Data Link
Provides financial and economic datasets via API.
Freemium Web API