notion-api-worker icon indicating copy to clipboard operation
notion-api-worker copied to clipboard

Add optional `blockMap` content in table endpoint

Open timolins opened this issue 5 years ago • 3 comments

I think it would be cool to automatically include the blockMap of each item inside a table (optionally). Currently I have to manually do a request for each entry to receive it. Doing it on the server with caching sounds like a good idea.

timolins avatar Jul 18 '20 11:07 timolins

I second this. I spent almost all day trying to understand your code and try to manually add it (Not a Typescript developer per say) and was wondering if this would ever be added.

I just want to have excerpts of the content on the List page which would be nice to have if we're to setup a blog.

However, I think this should be a feature request rather than an issue.

stubclan avatar Aug 23 '20 22:08 stubclan

@stubclan check out notion-client. It exposes the core API and returns all the data you'd expect. All collection views have been thoroughly tested.

The goal is to convert this project to use notion-client under the hood soon as well.

transitive-bullshit avatar Aug 23 '20 22:08 transitive-bullshit

ooo so exciting. Thanks @transitive-bullshit . I like how you guys still say unofficial haha. Notion did say they'll provide API as well someday in future.

Also do you know if I can use my own api-worker for this notion-client ? I kinda spent time on setting up so just curious

stubclan avatar Aug 24 '20 01:08 stubclan