feedback icon indicating copy to clipboard operation
feedback copied to clipboard

API to GET Notebooks List and Notebook as JSON

Open mcollie1 opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I'd like to fetch the list of notebooks in order to use their metadata within a UI. Additionally, when a user clicks a notebook from the list, I'd like to fetch the specific's notebook metadata, in order to embed it and do other things. There exists APIs that returns JSON data that I'm using, but they aren't officially supported.

Endpoints are the following:

  1. https://api.observablehq.com/collection/:username/:collection-name
  2. https://api.observablehq.com/document/:username/:notebook-slug

Being able to fetch notebooks as JSON seems like a common use case.

Describe the solution you'd like

I'd like to be able to fetch a list of notebooks and an individual notebook as JSON. The list can be all notebooks or notebooks within a specified collection. The metadata contains information similar to what's returned in the endpoints above.

Describe alternatives you've considered

I'm currently using the endpoints above, and they're manageable for my use case. However, I was informed, by Observable customer success, that you have no JSON APIs that return notebook information, and the above ones are not officially supported.

mcollie1 avatar May 16 '22 13:05 mcollie1