Skip to main content

Overview

To authenticate with Kaggle, you need:
  1. API Token - A Kaggle API token that starts with KGAT_.
This guide will show you how to generate one.

Prerequisites

  • A Kaggle account. If you don’t have one, create one.

Step 1: Generate an API token

  1. Sign in to Kaggle and open Settings, then select the API Tokens tab.
  2. In the API Tokens (Recommended) section, click Generate New Token.
Kaggle Settings API Tokens tab with the Generate New Token button
  1. Enter a name in the New Token Name field (for example nango) and click Generate.
Kaggle New Token Name field with the Generate button
  1. In the API Token is now available dialog, click the copy button next to the API Token field. The token starts with KGAT_ and is shown only once, so store it somewhere safe.
Kaggle dialog showing the new API token with its copy button
Use an API token, not the Legacy API Credentials (kaggle.json) further down the same page.

Step 2: Enter your API token in the Connect UI

  1. Open the form where you need to authenticate with Kaggle.
  2. Paste your token in the API Token field.
  3. Submit the form. Nango checks the token with Kaggle and rejects it if it is wrong or revoked.
Kaggle connection form in Nango's Connect UI with the API Token field You are now connected to Kaggle.