Kaggle Dataset
Parse a single Kaggle dataset page into structured JSON with its description, owner, license, file list, keywords, and engagement counts.
API usage
Add &scraper=kaggle-dataset to a Crawling API request. URL-encode the target URL in the url parameter.
curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
--data-urlencode 'url=https://www.kaggle.com/datasets/uciml/iris' \
--data-urlencode 'scraper=kaggle-dataset' -Gfrom crawlbase import CrawlingAPI
api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
'https://www.kaggle.com/datasets/uciml/iris',
{'scraper': 'kaggle-dataset'}
)
import json
data = json.loads(res['body'])const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });
const res = await api.get(
'https://www.kaggle.com/datasets/uciml/iris',
{ scraper: 'kaggle-dataset' }
);
const data = JSON.parse(res.body);require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')
res = api.get('https://www.kaggle.com/datasets/uciml/iris', scraper: 'kaggle-dataset')
data = JSON.parse(res.body)Example input URL
Any Kaggle dataset page works in the url parameter - the page at /datasets/<owner>/<dataset>. For example:
https://www.kaggle.com/datasets/uciml/iris
https://www.kaggle.com/datasets/johnsmith88/heart-disease-dataset
https://www.kaggle.com/datasets/zynicide/wine-reviewsResponse shape
JSON response body. Field types may be null when the source page omits the value.
URL of the dataset page that was scraped.
Numeric Kaggle dataset identifier, returned as a string.
Dataset display title.
One-line summary shown under the title.
Full dataset description in Markdown, as the owner wrote it - links, images, and lists are preserved rather than flattened.
Current dataset version number.
Topic tags applied to the dataset, as an array of strings.
Account that publishes the dataset.
Owner display name.
Absolute URL of the owner profile or organization page.
Owner avatar URL.
License the dataset is published under.
License display name (for example
CC0: Public Domain).Canonical URL of the license text.
Downloadable archives attached to the dataset.
Archive format (for example
zip).Archive size in bytes.
Absolute download URL, pinned to the current dataset version.
Whether Kaggle requires a signed-in account to start the download.
Total download count for the dataset.
Total page view count.
Upvote count.
Number of comments in the dataset discussion.
ISO 8601 timestamp of the most recent dataset update.
Absolute URL of the dataset discussion tab.
Dataset card image URL.
Whether Kaggle marks the dataset as freely accessible.
Sample response
{
"url": "https://www.kaggle.com/datasets/uciml/iris",
"id": "19",
"title": "Iris Species",
"subtitle": "Classify iris plants into three species in this classic dataset",
"description": "The Iris dataset was used in R.A. Fisher's classic 1936 paper, [The Use of Multiple Measurements in Taxonomic Problems](http://rcs.chemometrics.ru/Tutorials/classification/Fisher.pdf), and can also be found on the [UCI Machine Learning Repository][1].\n\nIt includes three iris species with 50 samples each as well as some properties about each flower.",
"version": 2,
"keywords": [
"subject",
"earth and nature",
"biology"
],
"owner": {
"name": "UCI Machine Learning",
"url": "https://www.kaggle.com/organizations/uciml",
"image": "https://storage.googleapis.com/kaggle-organizations/7/thumbnail.png"
},
"license": {
"name": "CC0: Public Domain",
"url": "https://creativecommons.org/publicdomain/zero/1.0/"
},
"files": [
{
"format": "zip",
"sizeBytes": 3687,
"downloadUrl": "https://www.kaggle.com/datasets/uciml/iris/download?datasetVersionNumber=2",
"requiresSubscription": true
}
],
"downloads": 907784,
"views": 3131083,
"votes": 4861,
"commentCount": 33,
"lastUpdated": "2016-09-27T07:38:05.44Z",
"discussionUrl": "https://www.kaggle.com/uciml/iris/discussion",
"thumbnail": "https://storage.googleapis.com/kaggle-datasets-images/19/19/default-backgrounds/dataset-card.jpg",
"isAccessibleForFree": true
}