Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

Kaggle Api Guide

skill · brycewang-stanford/Auto-Empirical-Research-SkillsNOASSERTION licenceAudited 8 Oct 2026 · source e1ba289846fd

★ 4,537pushed 3 days ago
✓SAFEGrade B · 89/100 · 8 Oct 2026 · e1ba289
4,537repo stars · whole brycewang-stanford/Auto-Empirical-Research-Skills

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit e1ba289846fd and found no filesystem, network or shell access and no hard-coded secrets. What it does: Download datasets, manage competitions and notebooks via Kaggle API

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Kaggle Api Guide (brycewang-stanford/Auto-Empirical-Research-Skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/brycewang-stanford/kaggle-api-guide

Trust audit

Audit 0.4.1 · source read 8 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium0 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codeNA0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (0)

No findings at any severity. We re-audit when the source changes.

Audit 0.4.1 · source sha e1ba289846fd · 8 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

What it tells the agent

Full source on GitHub ↗

Its description: Download datasets, manage competitions and notebooks via Kaggle API

---
name: kaggle-api-guide
description: "Download datasets, manage competitions and notebooks via Kaggle API"
metadata:
  openclaw:
    emoji: "📈"
    category: "tools"
    subcategory: "code-exec"
    keywords: ["kaggle", "datasets", "competitions", "notebooks", "data-science", "machine-learning"]
    source: "https://www.kaggle.com/docs/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 Framewo

Excerpt, first 6,001 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit e1ba289

Download folder ↗
pip install kaggle

Commands as the repository documents them: shown, never run by us. Our verdict covers commit e1ba289846fd only.

Works in which agents?

What its own text says, not a test

AgentStatusMore
OpenClawMentioned in its text, not testedSkills for OpenClaw · About OpenClaw
“Mentioned” means the skill’s text names the agent. We have not run it there.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source e1ba289846fd

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/brycewang-stanford/kaggle-api-guide/badge.svg)](https://modelsatlas.com/skills/brycewang-stanford/kaggle-api-guide/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Similar skills

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/brycewang-stanford/kaggle-api-guide/badge.svg)](https://modelsatlas.com/skills/brycewang-stanford/kaggle-api-guide/)

Questions about Kaggle Api Guide

What does the Kaggle Api Guide skill do?
🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.
Is Kaggle Api Guide safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Kaggle Api Guide access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Kaggle Api Guide work with?
Its documentation mentions openclaw. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (e1ba289846fd), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.