3

The Notion API reference is obviously generated from an OpenAPI spec. However I can't find anywhere to download the YAML or JSON source doc (which would be useful).

Has anyone found it?

Alec the Geek
  • 1,970
  • 14
  • 14
  • Since I wanted to create a Python client (amongst other things) it looks someone else has done a lot of the hard work, so this may be moot at the moment https://github.com/ramnes/notion-sdk-py – Alec the Geek May 17 '21 at 00:03

2 Answers2

2

The discussion page @FruitVodka linked does not exists, but I managed to get an functioning OpenAPI YAML from Notion Postman Collection.

  1. First I exported it to a Postman JSON using the UI.

  2. Then you can use postman-to-openapi to convert it to a OpenAPI YAML as addressed here.

    >> npm i postman-to-openapi -g
    >> p2o ./path/to/PostmantoCollection.json -f ./path/to/result.yml```
    
    
1

There doesn't seem to be anything so far. You could follow this discussion to keep yourself updated.

FruitVodka
  • 11
  • 3