Agent skill

Kaggle API Guide

by wentorai in wentorai/research-plugins

Download datasets, manage competitions and notebooks via Kaggle API

MITAuto-check passed

Install Kaggle API Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill kaggle-api-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins kaggle-api-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/tools/code-exec/kaggle-api-guide .claude/skills/kaggle-api-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kaggle-api-guide
GitHub stars
298
Used in
1 other repo
Token cost
~2k tokens
SKILL.md length
490 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT

At a glance

Download datasets, manage competitions and notebooks via Kaggle API

  • SKILL.md covers Overview, Authentication, Core Endpoints and Common Research Patterns, plus 2 more sections
  • Calls pip; needs KAGGLE_KEY

What it does

Kaggle API Guide is an agent skill from wentorai/research-plugins. Download datasets, manage competitions and notebooks via Kaggle API

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Kaggle and Python. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

Example prompts

  • “/kaggle-api-guide”

Requirements

  • Python 3
  • A credential in KAGGLE_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • kaggle.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • KAGGLE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kaggle API Guide loads about 2k tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 490 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 490 words, ~2,005 tokens.

Download SKILL.mdSave it as .claude/skills/kaggle-api-guide/SKILL.md (or your agent's skills folder).
name
kaggle-api-guide
description
Download datasets, manage competitions and notebooks via Kaggle API

Kaggle API Guide

Overview

Kaggle is the world's largest data science and machine learning community, hosting thousands of datasets, competitions, and computational notebooks. The Kaggle API provides programmatic access to these resources, enabling researchers to download datasets, submit competition entries, manage kernels (notebooks), and explore the Kaggle ecosystem from the command line or scripts.

For academic researchers, Kaggle is a valuable resource for accessing curated, well-documented datasets across diverse domains including healthcare, natural language processing, computer vision, economics, and social sciences. Many published research papers use Kaggle datasets as benchmarks, and the platform's competition infrastructure provides standardized evaluation frameworks for comparing methods.

The Kaggle API is available as a Python CLI tool and library. It requires a free Kaggle account and API token for authentication. The API supports dataset search and download, competition data retrieval, kernel management, and model access.

Authentication

A free Kaggle API token is required. Generate one from your Kaggle account settings at https://www.kaggle.com/settings.

Download the kaggle.json credentials file and place it in the standard location:

bash
# The kaggle.json file should be at ~/.kaggle/kaggle.json
# It contains your username and key from your Kaggle account settings
mkdir -p ~/.kaggle
# Move your downloaded kaggle.json to ~/.kaggle/kaggle.json
chmod 600 ~/.kaggle/kaggle.json

Alternatively, use environment variables:

bash
export KAGGLE_USERNAME=$KAGGLE_USERNAME
export KAGGLE_KEY=$KAGGLE_KEY

Install the CLI tool:

bash
pip install kaggle

Core Endpoints

Search Datasets

Find datasets by keyword, file type, or license.

bash
# Search for datasets
kaggle datasets list -s "climate change" --sort-by votes

# Search with specific criteria
kaggle datasets list -s "medical imaging" --file-type csv --max-size 1000000
Download a Dataset
bash
# Download and unzip a dataset
kaggle datasets download -d "heptapod/titanic" --unzip -p ./data/titanic/

# Download a specific file from a dataset
kaggle datasets download -d "yelp-dataset/yelp-dataset" -f "yelp_academic_dataset_review.json" -p ./data/
List and Join Competitions
bash
# List active competitions
kaggle competitions list

# Download competition data (must accept rules on kaggle.com first)
kaggle competitions download -c "house-prices-advanced-regression-techniques" -p ./data/house-prices/
Submit to a Competition
bash
# Submit predictions
kaggle competitions submit -c "house-prices-advanced-regression-techniques" \
  -f ./submission.csv -m "Random forest baseline v1"

# Check submission status
kaggle competitions submissions -c "house-prices-advanced-regression-techniques"
Manage Notebooks (Kernels)
bash
# Search for notebooks
kaggle kernels list -s "transformer nlp" --sort-by voteCount

# Pull a notebook to local
kaggle kernels pull "username/notebook-name" -p ./notebooks/

# Push a notebook to Kaggle
kaggle kernels push -p ./my-notebook/
Python Example: Automated Dataset Discovery and Download
python
import subprocess
import json
import os

def search_kaggle_datasets(query, sort_by="votes", max_results=10):
    """Search Kaggle datasets and return structured results."""
    cmd = [
        "kaggle", "datasets", "list",
        "-s", query,
        "--sort-by", sort_by,
        "--max-size", "50000000",
        "--csv"
    ]
    result = subprocess.run(cmd, capture_output=True, text=True)
    lines = result.stdout.strip().split("\n")
    if len(lines) < 2:
        return []

    headers = lines[0].split(",")
    datasets = []
    for line in lines[1:max_results + 1]:
        values = line.split(",")
        dataset = dict(zip(headers, values))
        datasets.append(dataset)
    return datasets

def download_dataset(dataset_ref, output_dir="./data"):
    """Download a Kaggle dataset by reference."""
    os.makedirs(output_dir, exist_ok=True)
    cmd = [
        "kaggle", "datasets", "download",
        "-d", dataset_ref,
        "--unzip",
        "-p", output_dir
    ]
    result = subprocess.run(cmd, capture_output=True, text=True)
    if result.returncode == 0:
        print(f"Downloaded {dataset_ref} to {output_dir}")
    else:
        print(f"Error: {result.stderr}")

# Search for NLP benchmark datasets
datasets = search_kaggle_datasets("nlp text classification benchmark")
for ds in datasets[:5]:
    print(f"  {ds.get('ref', 'N/A')}")
    print(f"    Size: {ds.get('totalBytes', 'N/A')} bytes")
    print(f"    Votes: {ds.get('voteCount', 'N/A')}")
    print()
Python Example: Using the Kaggle Python API Directly
python
from kaggle.api.kaggle_api_extended import KaggleApi

api = KaggleApi()
api.authenticate()

# Search datasets
datasets = api.dataset_list(search="genomics", sort_by="updated")
for ds in datasets[:5]:
    print(f"{ds.ref}: {ds.title} ({ds.size})")

# Get dataset metadata
metadata = api.dataset_view("nih-chest-xrays/data")
print(f"Title: {metadata.title}")
print(f"Size: {metadata.totalBytes}")
print(f"Description: {metadata.description[:200]}")

# Download dataset files
api.dataset_download_files(
    "nih-chest-xrays/sample",
    path="./data/chest-xrays/",
    unzip=True
)

Common Research Patterns

Benchmark Dataset Access: Download well-established datasets used in published research for reproducibility studies. Kaggle hosts canonical versions of many benchmark datasets referenced in ML papers.

Competition as Evaluation Framework: Use Kaggle competitions as standardized evaluation environments with leaderboards and held-out test sets. Submit predictions from novel methods to compare against state-of-the-art approaches.

Data Exploration Notebooks: Search for and pull community notebooks that explore datasets relevant to your research. These often contain valuable preprocessing code, exploratory analysis, and baseline models.

Collaborative Research Datasets: Upload processed research datasets to Kaggle for sharing with collaborators and the broader community, enabling others to reproduce and extend your work.

Cross-Domain Transfer: Search across Kaggle's diverse dataset collection to find datasets from adjacent domains that could be useful for transfer learning or cross-domain validation studies.

Show full SKILL.md (140 more words)Show less

Rate Limits and Best Practices

  • API rate limits: Kaggle imposes daily limits on API calls; typical free accounts allow several hundred requests per day
  • Download limits: Large datasets may take significant time and disk space; check sizes before downloading
  • Competition rules: Always accept competition rules on the Kaggle website before attempting to download competition data via API
  • Kernel push format: When pushing notebooks, include a kernel-metadata.json file specifying the kernel type, language, and datasets
  • Authentication security: Never commit kaggle.json to version control; use environment variables in CI/CD pipelines
  • Dataset versioning: Kaggle datasets support versions; specify version numbers for reproducibility in research
  • Large files: For datasets over 10GB, consider using the Kaggle CLI rather than the Python API for more reliable downloads

References

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/tools/code-exec/kaggle-api-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Kaggle API Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kaggle API Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kaggle API Guide this skillwentorai/research-plugins2981 repos~2kAutomated safety check: PassMIT
Dataset FinderLeoYeAI/openclaw-master-skills2.2k—~5.4kAutomated safety check: PassProprietary
Universal Data Loaderfranklee16/academic-research-skills223—~738Automated safety check: PassNone
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
PDF Processinganthropics/skills180k48 repos~2kAutomated safety check: PassProprietary
NotebookLM Research AssistantPleasePrompto/notebooklm-skill7.8k14 repos~2.4kAutomated safety check: NotesMIT

Similar skills

  • Dataset Finder

    LeoYeAI/openclaw-master-skills

    A skill your agent uses when users need to search for datasets, download data files, or explore data repositories.

    2.2k GitHub stars~5.4k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed
  • Universal Data Loader

    franklee16/academic-research-skills

    Downloads data from publicly accessible databases (FRED, World Bank, Yahoo Finance, Kaggle, etc.) or REST APIs by generating and executing custom Python scripts.

    223 GitHub stars~738 tokensUpdated 19 days ago
    Backend & APIsAuto-check passed
  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • PDF Processing

    anthropics/skills

    Official

    Handles everyday PDF jobs in Python and on the command line: extract text and tables, merge, split, rotate, watermark, fill forms, encrypt and OCR.

    180k GitHub starsUsed in 48 repos~2k tokens
    Documents & OfficeAuto-check passed
  • NotebookLM Research Assistant

    PleasePrompto/notebooklm-skill

    Lets Claude Code ask questions of your Google NotebookLM notebooks through browser automation and return answers grounded in your uploaded sources.

    7.8k GitHub starsUsed in 14 repos~2.4k tokens
    Knowledge ManagementAuto-check: notes
  • Manim Video Production

    browser-use/video-use

    Produces math and technical explainer videos with Manim Community Edition: concept animations, equation derivations, algorithm walkthroughs and data stories.

    28k GitHub starsUsed in 6 repos~3k tokens
    Media & CreativeAuto-check passed

More from wentorai/research-plugins

All 405 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Works with

Questions about Kaggle API Guide

What does Kaggle API Guide do?

Download datasets, manage competitions and notebooks via Kaggle API. Kaggle API Guide is an agent skill from wentorai/research-plugins.

How do I install Kaggle API Guide in Claude Code?

Run `npx skills add wentorai/research-plugins --skill kaggle-api-guide -a claude-code`. Or copy the skill folder (skills/tools/code-exec/kaggle-api-guide in wentorai/research-plugins) into .claude/skills/kaggle-api-guide in your project. Claude Code loads it when a task matches its description.

How do I install Kaggle API Guide in Codex?

Run `npx skills add wentorai/research-plugins --skill kaggle-api-guide -a codex`. Or copy the skill folder (skills/tools/code-exec/kaggle-api-guide in wentorai/research-plugins) into .agents/skills/kaggle-api-guide in your project. Codex loads it when a task matches its description.

Can I use Kaggle API Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill kaggle-api-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kaggle-api-guide, .gemini/skills/kaggle-api-guide, .github/skills/kaggle-api-guide and .opencode/skills/kaggle-api-guide in your project.

What does Kaggle API Guide need to run?

Going by SKILL.md and its folder, Kaggle API Guide needs the command-line tools its instructions call (pip) and credentials named KAGGLE_KEY. Our summary lists: Python 3; A credential in KAGGLE_KEY.

Does Kaggle API Guide access the network?

SKILL.md names 2 domains. As links in the text: kaggle.com and github.com. This is read from the text; nothing was executed.

Is Kaggle API Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Kaggle API Guide use?

Kaggle API Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kaggle API Guide use?

About 2k tokens (SKILL.md is roughly 8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Kaggle API Guide?

Skills that share tags, products or a category with Kaggle API Guide: Dataset Finder (LeoYeAI/openclaw-master-skills, 2.2k stars), Universal Data Loader (franklee16/academic-research-skills, 223 stars), MCP Server Builder (anthropics/skills, 180k stars) and PDF Processing (anthropics/skills, 180k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kaggle API Guide?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.