Skip to content

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

@01-binary

Description

@01-binary

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions