How to use Kaggle Api in Google Colab for directly using dataset?
Step 1 - Refer the Kaggle doc to understand the API basics and to get your key
https://github.com/Kaggle/kaggle-api

Step 2 - Use these LoC - 

    import os
    os.environ['KAGGLE_USERNAME'] = "jha01roshan" 
    os.environ['KAGGLE_KEY'] = "xxxxxxxxxxxxxxxx" 
    import kaggle

    !kaggle competitions download -c ashrae-energy-prediction

    import pandas as pd
    building_metadata = pd.read_csv("/content/building_metadata.csv")
    sample_submission = pd.read_csv("/content/sample_submission.csv.zip")