Skip to content

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

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

Open
01-binary opened this issue May 6, 2025 · 0 comments

Comments

@01-binary
Copy link

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

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

1 participant