• Top
  • New

Ask HN: How to Retrieve Google Colab JSON Data from a Shared URL via API?

by ekusiadadus on 5/9/2024, 6:34:08 PM with 0 comments
I want to programmatically obtain the source code of a publicly shared Google Colab notebook through an API. For example, I'm looking to fetch the JSON data of the notebook shared at the following URL:

https://colab.research.google.com/drive/15Ow-hKK3Ky9uwEEljmfQpCYbn02ZLd-F?usp=sharing

When accessing the URL, I receive a temporary response like the one below, which includes details like userPermission and downloadUrl: