I want to fetch a pptx from web and then grab the speaker notes of each slide. Is there an API that allows me to that?
Google Slides already provides that in their API here: https://developers.google.com/slides/api/reference/rest/v1/presentations/get
For powerpoint I've seen they have Javascript API, but it seems just for add-ins. Other option I've seen seems to be OpenXML SDK. Wondered what is the preferred approach?
If you deal with open XML documents only (*.pptx) you can use the Open XML SDK, see Welcome to the Open XML SDK 2.5 for Office for more information.
OfficeJSis for web add-ins only and not designed for standalone applications.