Kaggle Dataset Search API Documentation

GET   /api/v1/search?engine=kaggle_dataset_search

The Kaggle Dataset Search API returns the public datasets Kaggle lists for a keyword, an owner or a tag, 20 per page. Each dataset comes with its dataset_id, title, owner, licence, votes, downloads, views, notebook count, usability rating out of 10, listed size, last update and tags.

Sort by votes, downloads, usability or recency, and narrow the list by file type, licence group or size range. Kaggle sends no total count and lists at most 500 pages for a search, so pagination.next appears after each full page below page 500.

API Parameters

Search Query

  • Name
    q
    Required
    Required
    Description

    Parameter defines the text you want to search for, up to 512 characters. It is required unless owner or tag is set.

  • Name
    owner
    Required
    Optional
    Description

    Parameter lists the datasets of one Kaggle user, such as imdevskp, the first part of a dataset_id. Kaggle matches users only, so an organization returns no datasets.

  • Name
    tag
    Required
    Optional
    Description

    Parameter keeps the datasets that carry one Kaggle tag, such as diseases, as named in a dataset's tags. Kaggle also matches datasets tagged with one of its subtags, such as covid19 for diseases. A tag Kaggle doesn't have returns an error naming it.

Sorting

  • Name
    sort_by
    Required
    Optional
    Description

    Parameter defines the order of the datasets. Supported values are hottest, votes, updated, published, active, usability, downloads, and notebooks. published puts the newest first. downloads and notebooks follow Kaggle's own ranking, which can differ slightly from the counts returned.

Filters

  • Name
    file_type
    Required
    Optional
    Description

    Parameter keeps the datasets with files of one type. Supported values are csv, json, sqlite, parquet, and bigquery.

  • Name
    license
    Required
    Optional
    Description

    Parameter keeps the datasets under a licence of one group: cc for Creative Commons, gpl for the GNU licences, odb for the Open Data Commons licences, or other for any other licence.

  • Name
    min_size
    Required
    Optional
    Description

    Parameter defines the smallest dataset size in bytes, such as 1000000 for 1 MB. Kaggle applies the bounds to its own record of a dataset's size, which can differ from size_bytes, most often for datasets with many versions.

  • Name
    max_size
    Required
    Optional
    Description

    Parameter defines the largest dataset size in bytes, at least min_size.

Pagination

  • Name
    page
    Required
    Optional
    Description

    Parameter defines the page of results, 20 datasets per page. Kaggle lists at most 500 pages for a search.

Engine

  • Name
    engine
    Required
    Required
    Description

    Parameter defines an engine that will be used to retrieve real-time data. It must be set to kaggle_dataset_search.

API key

  • Name
    api_key
    Required
    Required
    Description

    The api_key authenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).

Zero Data Retention

  • Name
    zero_retention
    Enterprise Only
    Enterprise Only
    Required
    Optional
    Description

    Set this parameter to true to disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.

API Examples

Full Response

Full Response
GET
https://www.searchapi.io/api/v1/search?engine=kaggle_dataset_search&q=covid
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "kaggle_dataset_search",
  "q": "covid"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_0r09DZWEVvCykT1DEoPqa0Gc",
    "status": "Success",
    "created_at": "2026-11-26T12:20:53Z",
    "request_time_taken": 1.01,
    "parsing_time_taken": 0.0,
    "total_time_taken": 1.01,
    "request_url": "https://www.kaggle.com/datasets?search=covid&sort=hotness",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_0r09DZWEVvCykT1DEoPqa0Gc.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_0r09DZWEVvCykT1DEoPqa0Gc"
  },
  "search_parameters": {
    "engine": "kaggle_dataset_search",
    "q": "covid",
    "sort_by": "hottest",
    "page": 1
  },
  "dataset_results": [
    {
      "position": 1,
      "dataset_id": "imdevskp/corona-virus-report",
      "id": 494766,
      "title": "COVID-19 Dataset",
      "subtitle": "Number of Confirmed, Death and Recovered cases every day across the globe",
      "link": "https://www.kaggle.com/datasets/imdevskp/corona-virus-report",
      "owner": {
        "username": "imdevskp",
        "name": "Devakumar K. P.",
        "link": "https://www.kaggle.com/imdevskp"
      },
      "creator": {
        "username": "imdevskp",
        "name": "Devakumar K. P.",
        "link": "https://www.kaggle.com/imdevskp"
      },
      "license": "Other (specified in description)",
      "votes": 2897,
      "downloads": 440006,
      "views": 1607973,
      "notebooks": 772,
      "usability_rating": 10.0,
      "size_bytes": 19921674,
      "last_updated": "2020-08-07T03:47:47.907Z",
      "version": 166,
      "tags": [
        "diseases",
        "public health",
        "law",
        "covid19"
      ],
      "thumbnail": "https://storage.googleapis.com/kaggle-datasets-images/494766/948370/d577c5007cd4f761be6485f3e091d4e9..."
    },
    "..."
  ],
  "pagination": {
    "current": 1,
    "next": 2
  }
}

Creative Commons CSV Datasets by Votes

Creative Commons CSV Datasets by Votes
GET
https://www.searchapi.io/api/v1/search?engine=kaggle_dataset_search&file_type=csv&license=cc&q=air+quality&sort_by=votes
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "kaggle_dataset_search",
  "q": "air quality",
  "license": "cc",
  "file_type": "csv",
  "sort_by": "votes"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_eGyxKTO1hRxaJIwJOI8grV3R",
    "status": "Success",
    "created_at": "2026-11-26T12:20:55Z",
    "request_time_taken": 0.48,
    "parsing_time_taken": 0.0,
    "total_time_taken": 0.48,
    "request_url": "https://www.kaggle.com/datasets?fileType=csv&license=cc&search=air+quality&sort=votes",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_eGyxKTO1hRxaJIwJOI8grV3R.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_eGyxKTO1hRxaJIwJOI8grV3R"
  },
  "search_parameters": {
    "engine": "kaggle_dataset_search",
    "q": "air quality",
    "sort_by": "votes",
    "file_type": "csv",
    "license": "cc",
    "page": 1
  },
  "dataset_results": [
    {
      "position": 1,
      "dataset_id": "adityakadiwal/water-potability",
      "id": 1292407,
      "title": "Water Quality",
      "subtitle": "Drinking water potability",
      "link": "https://www.kaggle.com/datasets/adityakadiwal/water-potability",
      "owner": {
        "username": "adityakadiwal",
        "name": "Aditya Kadiwal",
        "link": "https://www.kaggle.com/adityakadiwal"
      },
      "creator": {
        "username": "adityakadiwal",
        "name": "Aditya Kadiwal",
        "link": "https://www.kaggle.com/adityakadiwal"
      },
      "license": "CC0: Public Domain",
      "votes": 1750,
      "downloads": 138567,
      "views": 772845,
      "notebooks": 667,
      "usability_rating": 10.0,
      "size_bytes": 256729,
      "last_updated": "2021-04-25T10:27:44.613Z",
      "version": 3,
      "tags": [
        "water bodies",
        "public health",
        "earth and nature",
        "environment",
        "energy",
        "beginner",
        "binary classification"
      ],
      "thumbnail": "https://storage.googleapis.com/kaggle-datasets-images/1292407/2153306/c1d5dacfb886cbee89685514a60137..."
    },
    "..."
  ]
}

An Owner's Datasets

GET
https://www.searchapi.io/api/v1/search?engine=kaggle_dataset_search&owner=sudalairajkumar&sort_by=votes
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "kaggle_dataset_search",
  "owner": "sudalairajkumar",
  "sort_by": "votes"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_CYGUHCf3IU6KcIyx6uL92v6n",
    "status": "Success",
    "created_at": "2026-11-26T12:21:20Z",
    "request_time_taken": 1.57,
    "parsing_time_taken": 0.0,
    "total_time_taken": 1.57,
    "request_url": "https://www.kaggle.com/sudalairajkumar/datasets",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_CYGUHCf3IU6KcIyx6uL92v6n.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_CYGUHCf3IU6KcIyx6uL92v6n"
  },
  "search_parameters": {
    "engine": "kaggle_dataset_search",
    "owner": "sudalairajkumar",
    "sort_by": "votes",
    "page": 1
  },
  "dataset_results": [
    {
      "position": 1,
      "dataset_id": "sudalairajkumar/novel-corona-virus-2019-dataset",
      "id": 494724,
      "title": "Novel Corona Virus 2019 Dataset",
      "subtitle": "Day level information on covid-19 affected cases",
      "link": "https://www.kaggle.com/datasets/sudalairajkumar/novel-corona-virus-2019-dataset",
      "owner": {
        "username": "sudalairajkumar",
        "name": "SRK",
        "link": "https://www.kaggle.com/sudalairajkumar"
      },
      "creator": {
        "username": "sudalairajkumar",
        "name": "SRK",
        "link": "https://www.kaggle.com/sudalairajkumar"
      },
      "license": "Data files © Original Authors",
      "votes": 6327,
      "downloads": 485289,
      "views": 2584493,
      "notebooks": 1753,
      "usability_rating": 9.7,
      "size_bytes": 8928752,
      "last_updated": "2021-06-24T04:27:25.870Z",
      "version": 151,
      "tags": [
        "public health",
        "health",
        "law",
        "health conditions",
        "covid19"
      ],
      "thumbnail": "https://storage.googleapis.com/kaggle-datasets-images/494724/919025/e7269d11dabb70777915cf40ef5b9ccd..."
    },
    "..."
  ]
}

Recently Updated Datasets with a Tag

GET
https://www.searchapi.io/api/v1/search?engine=kaggle_dataset_search&sort_by=updated&tag=diseases
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "kaggle_dataset_search",
  "tag": "diseases",
  "sort_by": "updated"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_VxIejBiHfvXznlDgsIrg6RXV",
    "status": "Success",
    "created_at": "2026-11-26T12:20:56Z",
    "request_time_taken": 1.16,
    "parsing_time_taken": 0.0,
    "total_time_taken": 1.16,
    "request_url": "https://www.kaggle.com/datasets?sort=updated",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_VxIejBiHfvXznlDgsIrg6RXV.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_VxIejBiHfvXznlDgsIrg6RXV"
  },
  "search_parameters": {
    "engine": "kaggle_dataset_search",
    "tag": "diseases",
    "sort_by": "updated",
    "page": 1
  },
  "dataset_results": [
    {
      "position": 1,
      "dataset_id": "hgultekin/covid19-vaccination-data",
      "id": 1228952,
      "title": "COVID-19 Vaccination Data",
      "subtitle": "Data on COVID-19 vaccination in the EU/EEA",
      "link": "https://www.kaggle.com/datasets/hgultekin/covid19-vaccination-data",
      "owner": {
        "username": "hgultekin",
        "name": "Habib Gultekin",
        "link": "https://www.kaggle.com/hgultekin"
      },
      "creator": {
        "username": "hgultekin",
        "name": "Habib Gultekin",
        "link": "https://www.kaggle.com/hgultekin"
      },
      "license": "Database: Open Database, Contents: Database Contents",
      "votes": 10,
      "downloads": 222,
      "views": 6435,
      "notebooks": 1,
      "usability_rating": 6.9,
      "size_bytes": 11272767,
      "last_updated": "2026-11-26T08:03:12.710Z",
      "version": 290,
      "tags": [
        "public health",
        "health",
        "public safety",
        "covid19"
      ],
      "thumbnail": "https://storage.googleapis.com/kaggle-datasets-images/new-version-temp-images/default-backgrounds-54..."
    },
    "..."
  ]
}

Second Page of Datasets from 1 MB to 100 MB

GET
https://www.searchapi.io/api/v1/search?engine=kaggle_dataset_search&max_size=100000000&min_size=1000000&page=2&q=weather
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "kaggle_dataset_search",
  "q": "weather",
  "min_size": "1000000",
  "max_size": "100000000",
  "page": "2"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_HnXiUppQaiHqbIHysFmaQDjd",
    "status": "Success",
    "created_at": "2026-11-26T12:20:58Z",
    "request_time_taken": 0.8,
    "parsing_time_taken": 0.0,
    "total_time_taken": 0.8,
    "request_url": "https://www.kaggle.com/datasets?page=2&search=weather&sort=hotness",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_HnXiUppQaiHqbIHysFmaQDjd.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_HnXiUppQaiHqbIHysFmaQDjd"
  },
  "search_parameters": {
    "engine": "kaggle_dataset_search",
    "q": "weather",
    "sort_by": "hottest",
    "min_size": 1000000,
    "max_size": 100000000,
    "page": 2
  },
  "dataset_results": [
    {
      "position": 21,
      "dataset_id": "huntermcgushion/rrv-weather-data",
      "id": 7480,
      "title": "Weather Data for Recruit Restaurant Competition",
      "subtitle": "Data From Weather Stations in Japan and the Recruit Restaurant Competition Data",
      "link": "https://www.kaggle.com/datasets/huntermcgushion/rrv-weather-data",
      "owner": {
        "username": "huntermcgushion",
        "name": "Hunter McGushion",
        "link": "https://www.kaggle.com/huntermcgushion"
      },
      "creator": {
        "username": "huntermcgushion",
        "name": "Hunter McGushion",
        "link": "https://www.kaggle.com/huntermcgushion"
      },
      "license": "CC BY-NC-SA 4.0",
      "votes": 85,
      "downloads": 5345,
      "views": 30544,
      "notebooks": 14,
      "usability_rating": 7.1,
      "size_bytes": 11457330,
      "last_updated": "2018-01-04T23:09:56.043Z",
      "version": 5,
      "tags": [
        "arts and entertainment",
        "geography"
      ],
      "thumbnail": "https://storage.googleapis.com/kaggle-datasets-images/7480/10645/df651fab9b7ef9524dc583ff70c7f95d/da..."
    },
    "..."
  ],
  "pagination": {
    "current": 2,
    "next": 3
  }
}