> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Kaggle - How do I link my account?

## 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](https://www.kaggle.com/account/login).

### Step 1: Generate an API token

1. Sign in to Kaggle and open [Settings](https://www.kaggle.com/settings/api), 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](https://mintcdn.com/nango/Zbfkk-cp-CjfFofH/api-integrations/kaggle/api_tokens_page.png?fit=max\&auto=format\&n=Zbfkk-cp-CjfFofH\&q=85\&s=b80fc66fb868e9afe8c747b41b3d5f5a)

3. Enter a name in the **New Token Name** field (for example `nango`) and click **Generate**.

![Kaggle New Token Name field with the Generate button](https://mintcdn.com/nango/Zbfkk-cp-CjfFofH/api-integrations/kaggle/name_token.png?fit=max\&auto=format\&n=Zbfkk-cp-CjfFofH\&q=85\&s=1553127df66e2c990226d8d3b759def5)

4. 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](https://mintcdn.com/nango/Zbfkk-cp-CjfFofH/api-integrations/kaggle/token_created.png?fit=max\&auto=format\&n=Zbfkk-cp-CjfFofH\&q=85\&s=a4edd7e2af3e4ffbffdcc5013b78a892)

> [!NOTE]
>
> 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](https://mintcdn.com/nango/Zbfkk-cp-CjfFofH/api-integrations/kaggle/form.png?fit=max\&auto=format\&n=Zbfkk-cp-CjfFofH\&q=85\&s=d8f986e656f08131310a899141238fec)

You are now connected to Kaggle.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.