notion-sdk-js icon indicating copy to clipboard operation
notion-sdk-js copied to clipboard

[Question] Cannot get image width/height modified in Notion editor via API

Open 01-binary opened this issue 7 months ago • 0 comments

Cannot get image width/height modified in Notion editor via API

Issue Description

I'm using @notionhq/client to retrieve content from Notion. When I modify an image's dimensions in the Notion editor, these modifications are not reflected in the API response.

API Response

{
    "object": "block",
    "id": "id",
    "parent": {
      "type": "page_id",
      "page_id": "id"
    },
    "created_time": "2023-11-30T02:18:00.000Z",
    "last_edited_time": "2025-04-14T14:09:00.000Z",
    "created_by": {
      "object": "user",
      "id": "id"
    },
    "last_edited_by": {
      "object": "user",
      "id": "id"
    },
    "has_children": false,
    "archived": false,
    "in_trash": false,
    "type": "image",
    "image": {
      "caption": [],
      "type": "file",
      "file": {
        "url": "example imageurl",
        "expiry_time": "2025-04-14T15:12:43.676Z"
      },
    }
  }

image width/height modified in Notion editor via API

Image

01-binary avatar May 06 '25 11:05 01-binary