Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why use notion-client over @notionhq/client? #457

Open
janek opened this issue Mar 24, 2023 · 3 comments
Open

Why use notion-client over @notionhq/client? #457

janek opened this issue Mar 24, 2023 · 3 comments

Comments

@janek
Copy link

janek commented Mar 24, 2023

Description

notion-client is an npm package that's part of this repository, with description "Robust TypeScript client for the unofficial Notion API." . I was wondering why it's used over the official @notionhq/client. I'm sure there's a reason (TS?) - but perhaps it should be mentioned in the docs along with some advice on how to choose between them.

@janek janek changed the title Why use notion-client and not @notionhq/client? Why use notion-client over @notionhq/client? Mar 24, 2023
@transitive-bullshit
Copy link
Member

Agreed we could definitely improve the docs here.

notion-client came way before the official client was released, and the official client doesn't support all block types and is extremely inefficient for some reason. More detail here https://github.com/NotionX/react-notion-x/tree/master/packages/notion-compat

@janek
Copy link
Author

janek commented Mar 24, 2023

That makes a lot of sense, thank you for answering so quickly (and for all your work)! I did have some weird timeouts using the official API, maybe I'll switch then :)

Leaving it up to you if you want the issue open or closed.

@rowthan
Copy link

rowthan commented May 10, 2023

Is there an API doc for unofficial API?I just want know what kind of API can be call with https://www.notion.so/api/v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants