# Kaggle Scraper (`crawlerbros/kaggle-scraper`) Actor

Scrape Kaggle datasets, competitions, notebooks, and user profiles. Datasets are open via the public API; competitions and notebooks need Kaggle API credentials.

- **URL**: https://apify.com/crawlerbros/kaggle-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Developer tools, AI, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 17 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Kaggle Scraper

Scrape [Kaggle](https://www.kaggle.com) — the world's largest data-science community. Search public datasets, fetch by ref or URL, browse trending datasets, list a user's datasets, and (with API credentials) pull competitions and notebooks (kernels). Pure HTTP via the official Kaggle public API at `kaggle.com/api/v1/*`.

### What this actor does

- **8 modes:** `search`, `byDataset`, `byCompetition`, `byNotebook`, `byUser`, `trendingDatasets`, `trendingNotebooks`, `byUrl`
- **Two auth tiers:**
  - **Public (no auth):** datasets search/list/view, byUser, trendingDatasets, byUrl for datasets/users
  - **Auth required:** competitions, notebooks (kernels), trendingNotebooks
- **Filters:** owner, sort order, file type, license family, min votes, min downloads, min usability, max size
- **URL auto-detection:** paste any `kaggle.com/datasets/<owner>/<slug>`, `/competitions/<slug>`, `/code/<owner>/<slug>`, or user URL
- **Empty fields are omitted** — every record only contains populated fields

### Output

Each record is a flat dict. Field names you might see (omit-empty applies):

#### Common
- `recordType` — `dataset` / `competition` / `kernel` / `user`
- `ref` — Kaggle reference (e.g. `heptapod/titanic`)
- `scrapedAt`

#### Dataset
- `datasetId`, `title`, `subtitle`, `description`
- `ownerName`, `ownerRef`, `creatorName`, `creatorUrl`
- `licenseName`, `lastUpdated`
- `totalBytes`, `downloadCount`, `voteCount`, `viewCount`, `kernelCount`
- `currentVersionNumber`, `usabilityRating`
- `isPrivate`, `isFeatured`, `thumbnailImageUrl`
- `tags[]`, `files[]`, `fileCount`
- `datasetUrl`

#### Competition
- `competitionId`, `title`, `description`, `category`
- `organizationName`, `organizationRef`, `tags`
- `deadline`, `enabledDate`, `evaluationMetric`
- `rewardType`, `rewardQuantity`, `teamCount`
- `submissionsDisabled`, `isKernelsSubmissionsOnly`
- `competitionUrl`

#### Kernel (notebook)
- `kernelId`, `title`, `author`, `language`, `kernelType`
- `lastRunTime`, `totalVotes`, `totalViews`, `totalComments`
- `kernelUrl`

#### User
- `username`, `displayName`, `profileUrl`
- `totalDatasetsListed`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | enum | `search` | One of the 8 modes |
| `searchQuery` | string | `titanic` | Free-text query |
| `datasetRefs` | array | – | `owner/slug` refs (mode=byDataset) |
| `competitionRefs` | array | – | Competition slugs (mode=byCompetition, auth) |
| `kernelRefs` | array | – | `owner/slug` refs (mode=byNotebook, auth) |
| `userSlugs` | array | – | Usernames (mode=byUser) |
| `startUrls` | array | – | Kaggle URLs (mode=byUrl) |
| `ownerSlug` | string | – | Filter to user/org |
| `sortBy` | enum | `hottest` | `hottest` / `votes` / `updated` / `active` / `published` |
| `fileType` | enum | `all` | `all` / `csv` / `sqlite` / `json` / `bigQuery` |
| `licenseGroup` | enum | `all` | `all` / `cc` / `gpl` / `odb` / `other` |
| `minVotes` | integer | – | Drop below this vote count |
| `minDownloads` | integer | – | Drop below this download count |
| `minUsability` | integer | – | Drop below this usability rating |
| `maxSizeBytes` | integer | – | Drop datasets larger than this |
| `kernelSortBy` | enum | `hotness` | Notebook sort key (auth modes) |
| `kernelLanguage` | enum | `all` | Notebook language (auth modes) |
| `kernelType` | enum | `all` | `script` / `notebook` (auth modes) |
| `kaggleUsername` | string | – | Required for competition / notebook modes |
| `kaggleApiKey` | string (secret) | – | Required for competition / notebook modes |
| `maxItems` | integer | `50` | Hard cap (1–10000) |

### Examples

#### Search top Titanic datasets
```json
{
  "mode": "search",
  "searchQuery": "titanic",
  "sortBy": "votes",
  "maxItems": 25
}
````

#### Trending CSV datasets with high usability

```json
{
  "mode": "trendingDatasets",
  "fileType": "csv",
  "minUsability": 0.8,
  "maxItems": 50
}
```

#### Lookup a specific dataset

```json
{
  "mode": "byDataset",
  "datasetRefs": ["heptapod/titanic"]
}
```

#### Browse a user's datasets

```json
{
  "mode": "byUser",
  "userSlugs": ["heptapod"]
}
```

#### Lookup by URL (auto-detect)

```json
{
  "mode": "byUrl",
  "startUrls": [
    "https://www.kaggle.com/datasets/heptapod/titanic",
    "https://www.kaggle.com/heptapod"
  ]
}
```

#### Competition lookup (auth required)

```json
{
  "mode": "byCompetition",
  "competitionRefs": ["titanic"],
  "kaggleUsername": "your-username",
  "kaggleApiKey": "your-api-key"
}
```

### How to get Kaggle API credentials

1. Sign in to [kaggle.com](https://www.kaggle.com).
2. Go to [Account settings](https://www.kaggle.com/settings) → "API" → "Create New Token".
3. A `kaggle.json` file downloads. Use the `username` and `key` fields here as `kaggleUsername` and `kaggleApiKey`.

You only need credentials for `byCompetition`, `byNotebook`, and `trendingNotebooks` modes. All dataset modes work without auth.

### Reliability

- Direct calls to the official `kaggle.com/api/v1/*` endpoints
- Exponential backoff retries on `429`, `500`–`504`
- HTML 404 fallback handling (Kaggle redirects unknown refs to a 404 HTML page)
- No proxy needed — works from datacenter IPs

### Limitations

- The Kaggle public API exposes user info indirectly; `byUser` records are derived from the user's first listed datasets and contain only `username`, `displayName`, and a count of listed datasets.
- Competitions, notebooks (kernels), and trending notebooks all require Kaggle API credentials — these are private endpoints (return `401 Unauthenticated` without auth).
- The license filter passes one of 5 broad families (`cc`/`gpl`/`odb`/`other`/`all`); finer-grained licenses like `cc-by-sa-4.0` are returned in the output's `licenseName` field but cannot be filtered server-side.
- Single-version datasets only — version history is not enumerated.

### FAQ

**Do I need a Kaggle account?** Only for competitions / notebooks. Dataset search and lookup work anonymously.

**How fresh is the data?** Real-time — every run hits the live Kaggle API.

**Can I download dataset files?** No. This actor exposes Kaggle *metadata* — refs, file lists, vote / download counts, license, etc. To download files, use the [Kaggle CLI](https://github.com/Kaggle/kaggle-api) with the `ref` from this actor's output.

**Why are some fields missing?** Empty / null fields are omitted — only populated fields appear in the output.

**Why does the daily test run only return datasets?** The default prefill targets dataset search, which is the only mode that works without credentials. Once you provide `kaggleUsername` + `kaggleApiKey`, all 8 modes are available.

# Actor input Schema

## `mode` (type: `string`):

What to fetch from Kaggle. Choose `search` for the most common case (free-text dataset search). Modes prefixed with `by` lookup specific records by ref/URL. Modes marked `(auth required)` need a Kaggle API token.

## `searchQuery` (type: `string`):

Free-text query (matches titles, descriptions, tags). Example: `titanic`, `covid`, `weather forecast`.

## `datasetRefs` (type: `array`):

Kaggle dataset refs like `heptapod/titanic`, or full kaggle.com URLs.

## `competitionRefs` (type: `array`):

Competition slugs like `titanic`. Requires Kaggle API credentials.

## `kernelRefs` (type: `array`):

Notebook refs like `alexisbcook/titanic-tutorial`. Requires Kaggle API credentials.

## `userSlugs` (type: `array`):

Kaggle usernames or profile URLs.

## `startUrls` (type: `array`):

Full kaggle.com URLs (datasets / competitions / notebooks / users) — kind auto-detected.

## `ownerSlug` (type: `string`):

Constrain results to a specific user/org slug. Example: `heptapod`, `googleai`, `kaggle`.

## `sortBy` (type: `string`):

Server-side sort key for dataset search and listing.

## `fileType` (type: `string`):

Constrain dataset results to a specific primary file type.

## `licenseGroup` (type: `string`):

Constrain dataset results to a license family. Fine-grained licenses still appear in `licenseName`.

## `minVotes` (type: `integer`):

Drop datasets with fewer votes than this.

## `minDownloads` (type: `integer`):

Drop datasets with fewer downloads than this.

## `minUsability` (type: `integer`):

Drop datasets below this usability rating (Kaggle 0-1 scale; values >1 clamped).

## `maxSizeBytes` (type: `integer`):

Drop datasets larger than this. Also forwarded to API as `maxSize`.

## `kernelSortBy` (type: `string`):

Sort key for notebook (kernel) listing.

## `kernelLanguage` (type: `string`):

Filter notebooks by programming language.

## `kernelType` (type: `string`):

Filter notebooks by kernel type (script vs full notebook).

## `kaggleUsername` (type: `string`):

Your Kaggle username (the `username` field in `kaggle.json`). Get a token at https://www.kaggle.com/settings -> API -> Create New Token. Only required for `byCompetition`, `byNotebook`, and `trendingNotebooks` modes.

## `kaggleApiKey` (type: `string`):

Your Kaggle API key (the `key` field in `kaggle.json`). Only required for competition/notebook modes; stored as a secret.

## `maxItems` (type: `integer`):

Hard cap on emitted records across all pages. The actor stops as soon as this many records have been pushed.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "titanic",
  "datasetRefs": [],
  "competitionRefs": [],
  "kernelRefs": [],
  "userSlugs": [],
  "startUrls": [],
  "ownerSlug": "heptapod",
  "sortBy": "hottest",
  "fileType": "all",
  "licenseGroup": "all",
  "kernelSortBy": "hotness",
  "kernelLanguage": "all",
  "kernelType": "all",
  "maxItems": 50
}
```

# Actor output Schema

## `records` (type: `string`):

Dataset containing all scraped Kaggle records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "searchQuery": "titanic",
    "datasetRefs": [],
    "competitionRefs": [],
    "kernelRefs": [],
    "userSlugs": [],
    "startUrls": [],
    "sortBy": "hottest",
    "fileType": "all",
    "licenseGroup": "all",
    "kernelSortBy": "hotness",
    "kernelLanguage": "all",
    "kernelType": "all",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/kaggle-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "searchQuery": "titanic",
    "datasetRefs": [],
    "competitionRefs": [],
    "kernelRefs": [],
    "userSlugs": [],
    "startUrls": [],
    "sortBy": "hottest",
    "fileType": "all",
    "licenseGroup": "all",
    "kernelSortBy": "hotness",
    "kernelLanguage": "all",
    "kernelType": "all",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/kaggle-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "searchQuery": "titanic",
  "datasetRefs": [],
  "competitionRefs": [],
  "kernelRefs": [],
  "userSlugs": [],
  "startUrls": [],
  "sortBy": "hottest",
  "fileType": "all",
  "licenseGroup": "all",
  "kernelSortBy": "hotness",
  "kernelLanguage": "all",
  "kernelType": "all",
  "maxItems": 50
}' |
apify call crawlerbros/kaggle-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/kaggle-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Kaggle Scraper",
        "description": "Scrape Kaggle datasets, competitions, notebooks, and user profiles. Datasets are open via the public API; competitions and notebooks need Kaggle API credentials.",
        "version": "1.0",
        "x-build-id": "2RI92AWXNHHP3k7Qc"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~kaggle-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-kaggle-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawlerbros~kaggle-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-kaggle-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawlerbros~kaggle-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-kaggle-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "byDataset",
                            "byCompetition",
                            "byNotebook",
                            "byUser",
                            "trendingDatasets",
                            "trendingNotebooks",
                            "byUrl"
                        ],
                        "type": "string",
                        "description": "What to fetch from Kaggle. Choose `search` for the most common case (free-text dataset search). Modes prefixed with `by` lookup specific records by ref/URL. Modes marked `(auth required)` need a Kaggle API token.",
                        "default": "search"
                    },
                    "searchQuery": {
                        "title": "Search query (mode=search / trendingNotebooks)",
                        "type": "string",
                        "description": "Free-text query (matches titles, descriptions, tags). Example: `titanic`, `covid`, `weather forecast`.",
                        "default": "titanic"
                    },
                    "datasetRefs": {
                        "title": "Dataset refs (mode=byDataset)",
                        "type": "array",
                        "description": "Kaggle dataset refs like `heptapod/titanic`, or full kaggle.com URLs.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "competitionRefs": {
                        "title": "Competition refs (mode=byCompetition)",
                        "type": "array",
                        "description": "Competition slugs like `titanic`. Requires Kaggle API credentials.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "kernelRefs": {
                        "title": "Notebook refs (mode=byNotebook)",
                        "type": "array",
                        "description": "Notebook refs like `alexisbcook/titanic-tutorial`. Requires Kaggle API credentials.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "userSlugs": {
                        "title": "User slugs (mode=byUser)",
                        "type": "array",
                        "description": "Kaggle usernames or profile URLs.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "startUrls": {
                        "title": "Start URLs (mode=byUrl)",
                        "type": "array",
                        "description": "Full kaggle.com URLs (datasets / competitions / notebooks / users) — kind auto-detected.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "ownerSlug": {
                        "title": "Owner slug filter",
                        "type": "string",
                        "description": "Constrain results to a specific user/org slug. Example: `heptapod`, `googleai`, `kaggle`."
                    },
                    "sortBy": {
                        "title": "Sort by (datasets)",
                        "enum": [
                            "hottest",
                            "votes",
                            "updated",
                            "active",
                            "published"
                        ],
                        "type": "string",
                        "description": "Server-side sort key for dataset search and listing.",
                        "default": "hottest"
                    },
                    "fileType": {
                        "title": "File type filter (datasets)",
                        "enum": [
                            "all",
                            "csv",
                            "sqlite",
                            "json",
                            "bigQuery"
                        ],
                        "type": "string",
                        "description": "Constrain dataset results to a specific primary file type.",
                        "default": "all"
                    },
                    "licenseGroup": {
                        "title": "License family filter (datasets)",
                        "enum": [
                            "all",
                            "cc",
                            "gpl",
                            "odb",
                            "other"
                        ],
                        "type": "string",
                        "description": "Constrain dataset results to a license family. Fine-grained licenses still appear in `licenseName`.",
                        "default": "all"
                    },
                    "minVotes": {
                        "title": "Min vote count (post-filter)",
                        "minimum": 0,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Drop datasets with fewer votes than this."
                    },
                    "minDownloads": {
                        "title": "Min download count (post-filter)",
                        "minimum": 0,
                        "maximum": 1000000000,
                        "type": "integer",
                        "description": "Drop datasets with fewer downloads than this."
                    },
                    "minUsability": {
                        "title": "Min usability rating (0-1)",
                        "minimum": 0,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Drop datasets below this usability rating (Kaggle 0-1 scale; values >1 clamped)."
                    },
                    "maxSizeBytes": {
                        "title": "Max dataset size in bytes",
                        "minimum": 0,
                        "maximum": 10000000000000,
                        "type": "integer",
                        "description": "Drop datasets larger than this. Also forwarded to API as `maxSize`."
                    },
                    "kernelSortBy": {
                        "title": "Sort by (notebooks)",
                        "enum": [
                            "hotness",
                            "commentCount",
                            "dateCreated",
                            "dateRun",
                            "scoreAscending",
                            "scoreDescending",
                            "viewCount",
                            "voteCount"
                        ],
                        "type": "string",
                        "description": "Sort key for notebook (kernel) listing.",
                        "default": "hotness"
                    },
                    "kernelLanguage": {
                        "title": "Notebook language",
                        "enum": [
                            "all",
                            "python",
                            "r",
                            "sqlite",
                            "julia"
                        ],
                        "type": "string",
                        "description": "Filter notebooks by programming language.",
                        "default": "all"
                    },
                    "kernelType": {
                        "title": "Notebook kernel type",
                        "enum": [
                            "all",
                            "script",
                            "notebook"
                        ],
                        "type": "string",
                        "description": "Filter notebooks by kernel type (script vs full notebook).",
                        "default": "all"
                    },
                    "kaggleUsername": {
                        "title": "Kaggle username (for competitions / notebooks)",
                        "type": "string",
                        "description": "Your Kaggle username (the `username` field in `kaggle.json`). Get a token at https://www.kaggle.com/settings -> API -> Create New Token. Only required for `byCompetition`, `byNotebook`, and `trendingNotebooks` modes."
                    },
                    "kaggleApiKey": {
                        "title": "Kaggle API key (for competitions / notebooks)",
                        "type": "string",
                        "description": "Your Kaggle API key (the `key` field in `kaggle.json`). Only required for competition/notebook modes; stored as a secret."
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Hard cap on emitted records across all pages. The actor stops as soon as this many records have been pushed.",
                        "default": 50
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
