Page icon and cover stopped showing up with pages API
See original GitHub issueDescribe the bug Today I noticed that page icon and cover properties stops showing up with Retrieve a Page API, and Create/Update API ignores these properties. Could it be a regression?
To Reproduce Just do something like
const response = await notion.databases.query({
database_id: "my database id"
});
console.log(rsponse.results[0]);
And I got
{
object: 'page',
id: '...',
created_time: '2021-09-19T21:42:00.000Z',
last_edited_time: '2021-09-25T12:56:00.000Z',
parent: {
type: 'database_id',
database_id: '.....'
},
archived: false,
properties: {
...
},
url: 'https://www.notion.so/...
}
This is from a page that I verified to have a cover from the UI. No icon
or cover
properties there!
Node version: v14.17.0 Notion JS library version: 0.4.3
Expected behavior I’m expecting icon and cover to show up from the response as described in the documentation:
Additional context I’m sure it used to work two weeks ago, so I’m suspecting a regression in either API itself, or the sdk.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Page icons, cover images, new block types, and improved ...
Retrieve and update page and database icons and cover images. ... We do not yet support uploading files to Notion through the API,...
Read more >Page icons & covers - Notion
Page icons & covers. In Notion, your docs don't need to look bland. Add an icon to any page to make it easier...
Read more >Creating Your Product Page - App Store - Apple Developer
You can feature up to three app previews on your App Store and Mac App Store product pages, and localize them for all...
Read more >Feed - Documentation - Meta for Developers - Facebook
Name Type Description
id string The ID of the post.
actions object Action links on the post, Comment, Like, Share.
id int ID of the person,...
Read more >How to show Page Loading div until the page has finished ...
Original Answer. I've needed this and after some research I came up with this (jQuery needed):. First, right after the <body> tag add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi all 👋 Apologies for the inconvenience. We have identified the bug and resolved it. Please let us know if you continue to have any issues related to page icons, page covers or media blocks (e.g. image, video, etc). Will be closing the issue for now.
Would be cool if
icon
andcover
were also showing forchild_page
blocks (subpages) we get throughnotion.blocks.children.list()
.As a workaround now I can detect a block is
child_page
and then callnotion.pages.retrieve({ page_id: ... })
, but it’s one more API call for each subpage