Kaggle / kaggle-api

Official Kaggle API
Apache License 2.0
6.01k stars 1.06k forks source link

How to get latest dataset version number? #502

Open Jackmin801 opened 9 months ago

Jackmin801 commented 9 months ago

It used to be possible to get the dataset version with the /datasets/view endpoint

REMOTE_VERSION = kaggle.api.dataset_view('owner/slug').versions[0].versionNumber

However, it seems like support for this endpoint was dropped in https://github.com/Kaggle/kaggle-api/pull/482

  1. May we know why support for this endpoint was dropped in the library? The endpoint seems to still be working and the code snippet above still works in older versions of this package.
  2. If above is because there are plans to deprecate the /datasets/view, what is the new way to get the latest version of a dataset?

@Philmod @jplotts Thanks!