Notion API failing to retrieve linked pages in relation property

I’m having trouble with the Notion API. When I try to get a relation property, it comes back empty even though there are linked pages in the Notion UI. I’ve tried both the page endpoint and the property endpoint, but no luck.

Here’s what I get:

{
  "SomeProperty": {
    "id": "abc123",
    "type": "relation",
    "relation": [],
    "has_more": false
  }
}

The relation array is empty, but it should have two pages. My app has read permissions for both databases, and the relation is two-way. Any ideas why this is happening or how to fix it? I’m stumped!

I’ve dealt with this exact problem before, and it can be frustrating. One thing that worked for me was to use the ‘retrieve a page’ endpoint instead of the database query. Sometimes the relation data doesn’t show up properly in queries, but it does when you fetch the individual page.

Also, make sure you’re using the correct version of the API in your requests. Notion has made changes to how relations are handled in recent updates. If you’re still stuck, try reaching out to Notion support directly. They were surprisingly helpful when I had a similar issue and even provided some sample code to resolve it.

Lastly, if nothing else works, consider restructuring your database to use a different property type temporarily. This can help isolate whether it’s a specific issue with relations or a broader API problem.

I encountered a similar issue recently. One thing to check is whether you’re using the latest version of the Notion API. They’ve made some changes to how relations are handled in newer versions. Also, ensure you’re querying the correct database ID. Sometimes, especially with larger workspaces, it’s easy to mix up IDs. If all else fails, try creating a new integration and generating a fresh API key. This solved the problem for me when nothing else worked. Keep us posted on what resolves it for you.

hey there! i’ve run into this before. make sure ur app has explicit read access to both the source and target databases. sometimes notion’s permissions can be tricky. also, double-check that the relation property is set up correctly on both sides. if that doesn’t work, try re-authenticating your integration. good luck!