Get whole dataset via API

I want to save the whole dataset as pandas DataFrame in Python, I know I can do this when I download the whole dataset but I would like to get it directly via API without downloading the file. Is that possible?