Basically, if you want to use the Kaggle python API (the solution provided by @minh-triet is for the command line not for python) you have to do the following:

import kaggle

kaggle.api.authenticate()

kaggle.api.dataset_download_files('The_name_of_the_dataset', path='the_path_you_want_to_download_the_files_to', unzip=True)

I hope this helps.

Answer from Yannis on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-download-kaggle-datasets-into-jupyter-notebook
How to Download Kaggle Datasets into Jupyter Notebook? - GeeksforGeeks
July 23, 2025 - Step 1: Visit the Kaggle website and Select the Dataset tab. Step 2: Select any Dataset and Click on Download. Step 3: The downloaded file will be in Zip form, Unzip it. Step 4: Upload to Your Jupyter Notebook.
🌐
Saturn Cloud
saturncloud.io › blog › how-to-import-kaggle-datasets-into-jupyter-notebook
How to Import Kaggle Datasets into Jupyter Notebook | Saturn Cloud Blog
January 4, 2024 - Now that we have installed the Kaggle API and generated an API token, we can download a Kaggle dataset. To download a Kaggle dataset, open Jupyter Notebook and create a new notebook.
Discussions

python - Kaggle datasets into jupyter notebook - Stack Overflow
I am trying to import some data from kaggle into notebook. The error I am receiving is a 401 unauthorized, however I have accepted the competition rules and I am able to download the data. This is... More on stackoverflow.com
🌐 stackoverflow.com
Trouble importing kaggle datasets
From skimming through the readme, it looks like kaggle is just a command line utility which you should run from your terminal. It does not look like its meant to be imported. Look at the examples in README. More on reddit.com
🌐 r/Python
3
1
October 21, 2018
How to connect kaggle notebook to VScode, so that I can take advantage of the intelisense that VScode offers?
Did you just copy this question from Kaggle page? https://www.kaggle.com/questions-and-answers/125779 More on reddit.com
🌐 r/vscode
4
0
March 11, 2022
New to Kaggle, do you all actually use Kaggle notebooks?
I do my work locally, then copy over to a Kaggle notebook. I’ll normally double check that my imports work in the Kaggle environment before going too far locally. I also just define a DATA_ROOT const in the same block as the imports that points to wherever I downloaded the datasets to, then just change it to the Kaggle path when copying over. More on reddit.com
🌐 r/kaggle
3
10
November 13, 2023
🌐
Analytics Vidhya
analyticsvidhya.com › home › how to download kaggle datasets using jupyter notebook
How to Download Kaggle Datasets using Jupyter Notebook
April 30, 2021 - Now, let’s look at the new method to download Kaggle Dataset. Before starting, you need to have the opendatasets library installed in your system. If it’s not present in your system, use Python’s package manager pip and run: ... in a Jupyter Notebook cell.
🌐
Kaggle
kaggle.com › getting-started › 171502
Kaggle Datasets with Jupyter notebooks
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Iditect
iditect.com › programming › python-example › how-to-download-kaggle-datasets-into-jupyter-notebook.html
How to Download Kaggle Datasets into Jupyter Notebook?
For instance, if you want to download the Titanic dataset, you can get the path from the dataset's URL: https://www.kaggle.com/c/titanic/data (the path would be c/titanic). ... Replace /path/where/you/want/the/data with the path where you want to save the dataset in your Jupyter environment.
Find elsewhere
🌐
Medium
medium.com › @jeff.daniel77 › accessing-the-kaggle-com-api-with-jupyter-notebook-on-windows-d6f330bc6953
Accessing the Kaggle.com API with Jupyter Notebook on Windows | by Jeff Daniel | Medium
August 9, 2019 - Click on the link to save it to the clipboard, then open a Jupyter Notebook or Jupyter Lab, import kaggle, then import the data for your competition by typing “!paste-kaggle-api-link-here” as seen below: Finally, you will need to unzip the ...
🌐
YouTube
youtube.com › obengkojo
How to Download Kaggle Datasets directly into Jupyter Notebooks - YouTube
Chapters:00:00 introduction00:13 Installing opendatasets library00:42 Importing opendataset library00:52 Downloading kaggle dataset01:22 Creating Kaggle API ...
Published   March 29, 2024
Views   206
🌐
Kaggle
kaggle.com › questions-and-answers › 131432
Read a Kaggle Dataset directly in Python with its URL
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Codesolid
codesolid.com › kaggle-datasets
Using the Kaggle Datasets API in Python — CodeSolid.com 0.1 documentation
Here’s an example of how to use the Kaggle API to list all the datasets available on Kaggle in a Jupyter notebook: import kaggle # List of all datasets available on Kaggle kaggle.api.dataset_list() ... With these simple steps, we can set up Kaggle API and now can access and download a wide range of datasets and competition data directly from your Jupyter Notebook.
🌐
Kaggle
kaggle.com › general › 59138
Download notebook
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Kaggle
kaggle.com › getting-started › 52463
How to work with datasets locally ?
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Kaggle
kaggle.com › general › 65351
How to download/upload a file produced in the notebook?
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Medium
nikkisharma536.medium.com › how-to-work-on-kaggle-data-on-your-local-jupyter-notebook-3d0988fd448f
How to work on Kaggle data on your local Jupyter Notebook | by Nikita sharma | Medium
June 21, 2020 - Download file from Kaggle to your local box. Unzip the Zip file. Read the file from your Jupyter Notebook. I am downloading the PUBG Finish Placement Prediction dataset from Kaggle.
🌐
Kaggle
kaggle.com › general › 51934
Download Kaggle notebook "cells & its output".
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
YouTube
youtube.com › shorts › lWCwRbIhxKg
How To Download Kaggle Datasets In Jupyter Notebook Fast! - YouTube
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
Published   July 21, 2025
🌐
Medium
medium.com › analytics-vidhya › how-to-download-kaggle-datasets-using-jupyter-notebook-690f686bacfd
Download Kaggle Datasets using Jupyter Notebook | Analytics Vidhya
July 25, 2021 - This will download a kaggle.json file. ... 5. On opening this file, you will find the username and key in it. Copy the key and paste it into the prompted Jupyter Notebook cell. The content of the downloaded file would look like this: 6. A progress bar will show if the dataset is downloaded completely or not.
🌐
Career Karma
careerkarma.com › question › how-can-i-download-kaggle-d88216886
How Can I Download Kaggle Datasets?
July 20, 2022 - Learn about bootcamps, ask questions and read reviews to find the best job training program for you. Connect with peers, coaches and mentors to accelerate your technology career.