Kaggle API

Free

by Kaggle

Provided by Kaggle

Not yet rated
Platform
API
Pricing
Free
Account required
Yes
Ads
Light
Last verified
16 hours ago
Developer
Kaggle
Official URL

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.

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 Pick
    Data APIs · REST Countries

    A country data API with populations, currencies, languages, borders, flags and more. Requests now need an API key; a small free tier is offered.

    Not yet rated
    Freemium API
  • Data APIs · IPinfo

    IP address geolocation, ASN and network data through a web lookup and a developer API.

    Not yet rated
    Freemium Web API
  • Provides free global economic and development data via API.

    Not yet rated
    Free Web API
  • Provides financial and economic datasets via API.

    Not yet rated
    Freemium Web API