jamalex / notion-py

Unofficial Python API client for Notion.so
MIT License
4.3k stars 475 forks source link

Uploading image doesn't work #375

Open nballen-tx opened 2 years ago

nballen-tx commented 2 years ago

This worked before but since maybe 2 months ago, it started showing this error message.

Notion APi HTTPError: 403 Client Error: Forbidden for url: https://www.notion.so/api/v3/getUploadFileUrl

Does anyone know how to fix it?

The official API doesn't suppor the image/file upload.

Thanks,

tyePhDCandy commented 1 year ago

it seems impossible at the moment since the notion official api banned this?

n0rdstar-git commented 1 year ago

You can upload your pictures to something like S3, acquire the link and hand it over to notion page, which will use it to load the image. There is no official API way to do that as of now I think