Reference API URL : Retrieve a page
Retrieve is an unfamiliar word (for me).
In a computer, retrieve means searching. (I think search
is better than retrieve, but it may be confused?)
If we want to bring the page info, use retrieve
and obtain them.
Read the document, and you can find Limits and 25 relations, but it bothers me. What does that mean?
Each page property item is computed with a limit of 25 page references. Therefore relation property values feature a maximum of 25 relations, rollup property values are calculated based on a maximum of 25 relations, and rich text property values feature a maximum of 25 page mentions. Use the next_url
property it retrieve the full value of that property.
As above, if relations exceed 25 cases, exceeded cases will be invisible. The maximum is 25 cases for showing. If we need to find more, then use the next_url
property. How can we find exceeded cases with next_url
?
As below, you can see Retrieve a page property item (GET). Using this method then, you can find exceeded cases. But I can't know why next_url
mentioned this document. (Anybody knows why they wrote?)
Let me instruct you on how to find the total case result.
Above 'relation'
you can find short id '%3CLrR'
. This is a unique id of relation
. Write this id into property_id
, then you can find full relation
results.
notion.pages.properties.retrieve(page_id='1f217cc1-225f-4580-8e22-cd7eb8db3c5e', property_id='%3CLrR')
Let us retrieve data, refer to PATH PARAMS, and the needed parameter is only page_id
. How can we find page_id
? Previously, see the 08, 09, Analysis - Search
articles. And find with the search
method. Fill in the page_id
value, and you can see details of the page.
retrieved_page = notion.pages.retrieve(page_id='1f217cc1-225f-4580-8e22-cd7eb8db3c5e'
pprint(retrieved_page)