Skip to main content

Overview

A property_item object describes the identifier, type, and value of a page property. It’s returned from the Retrieve a page property item API. Generally, the details on this page are the same as those in Page properties, but with tweaks and additional information specific to the retrieve page property item endpoint, such as value pagination .

Common fields

Each page property item object contains the following keys. In addition, it will contain a key corresponding with the value of type. The value is an object containing type-specific data. The type-specific data are described in the sections below.

Paginated values

The title, rich_text, relation and people property items of are returned as a paginated list object of individual property_item objects in the results. An abridged set of the the properties found in the list object are found below; see the Pagination documentation for additional information.

Title

Title property value objects contain an array of rich text objects within the title property.

Rich text

Rich text property value objects contain an array of rich text objects within the rich_text property.

Number

Number property value objects contain a number within the number property.

Select

Select property value objects contain the following data within the select property:

Multi-select

Multi-select property value objects contain an array of multi-select option values within the multi_select property.

Option values

Date

Date property value objects contain the following data within the date property:

Formula

Formula property value objects represent the result of evaluating a formula described in the database’s properties. These objects contain a type key and a key corresponding with the value of type. The value is an object containing type-specific data. The type-specific data are described in the sections below.

String formula

String formula property values contain an optional string within the string property.

Number formula

Number formula property values contain an optional number within the number property.

Boolean formula

Boolean formula property values contain a boolean within the boolean property.

Date formula

Date formula property values contain an optional date property value within the date property.

Relation

Relation property value objects contain an array of relation property items with page references within the relation property. A page reference is an object with an id property which is a string value (UUIDv4) corresponding to a page ID in another database.

Rollup

Rollup property value objects represent the result of evaluating a rollup described in the data source’s properties. The property is returned as a list object of type property_item with a list of relation items used to computed the rollup under results. A rollup property item is also returned under the property_type key that describes the rollup aggregation and computed result. In order to avoid timeouts, if the rollup has a with a large number of aggregations or properties the endpoint returns a next_cursor value that is used to determinate the aggregation value so far for the subset of relations that have been paginated through. Once has_more is false, then the final rollup value is returned. See the Pagination documentation for more information on pagination in the Notion API. Computing the values of following aggregations are not supported. Instead the endpoint returns a list of property_item objects for the rollup:
  • show_unique (Show unique values)
  • unique (Count unique values)
  • median(Median)

Number rollup

Number rollup property values contain a number within the number property.

Date rollup

Date rollup property values contain a date property value within the date property.

Array rollup

Array rollup property values contain an array of property_item objects within the results property.

Incomplete rollup

Rollups with an aggregation with more than one page of aggregated results will return a rollup object of type "incomplete". To obtain the final value paginate through the next values in the rollup using the next_cursor or next_url property.

People

People property value objects contain an array of user objects within the people property.

Files

File property value objects contain an array of file references within the files property. A file reference is an object with a File Object and name property, with a string value corresponding to a filename of the original file upload (e.g. "Whole_Earth_Catalog.jpg").

Checkbox

Checkbox property value objects contain a boolean within the checkbox property.

URL

URL property value objects contain a non-empty string within the url property. The string describes a web address (i.e. "http://worrydream.com/EarlyHistoryOfSmalltalk/").

Email

Email property value objects contain a string within the email property. The string describes an email address (i.e. "hello@example.org").

Phone number

Phone number property value objects contain a string within the phone_number property. No structure is enforced.

Created time

Created time property value objects contain a string within the created_time property. The string contains the date and time when this page was created. It is formatted as an ISO 8601 date time string (i.e. "2020-03-17T19:10:04.968Z").

Created by

Created by property value objects contain a user object within the created_by property. The user object describes the user who created this page.

Last edited time

Last edited time property value objects contain a string within the last_edited_time property. The string contains the date and time when this page was last updated. It is formatted as an ISO 8601 date time string (i.e. "2020-03-17T19:10:04.968Z").

Last edited by

Last edited by property value objects contain a user object within the last_edited_by property. The user object describes the user who last updated this page.