Overview
Aproperty_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 oftype. The value is an object containing type-specific data. The type-specific data are described in the sections below.
| Property | Type | Description | Example value |
|---|---|---|---|
object | "property_item" | Always "property_item". | "property_item" |
id | string | Underlying identifier for the property. This identifier is guaranteed to remain constant when the property name changes. It may be a UUID, but is often a short random string. The id may be used in place of name when creating or updating pages. | "f%5C%5C%3Ap" |
type | string (enum) | Type of the property. Possible values are "rich_text", "number", "select", "multi_select", "date", "formula", "relation", "rollup", "title", "people", "files", "checkbox", "url", "email", "phone_number", "created_time", "created_by", "last_edited_time", and "last_edited_by". | "rich_text" |
Paginated values
Thetitle, 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.
| Property | Type | Description | Example value |
|---|---|---|---|
object | "list" | Always "list". | "list" |
type | "property_item" | Always "property_item". | "property_item" |
results | list | List of property_item objects. | [{"object": "property_item", "id": "vYdV", "type": "relation", "relation": { "id": "535c3fb2-95e6-4b37-a696-036e5eac5cf6"}}... ] |
property_item | object | A property_item object that describes the property. | {"id": "title", "next_url": null, "type": "title", "title": {}} |
next_url | string or null | The URL the user can request to get the next page of results. | "http://api.notion.com/v1/pages/0e5235bf86aa4efb93aa772cce7eab71/properties/vYdV?start_cursor=LYxaUO&page_size=25" |
Title
Title property value objects contain an array of rich text objects within thetitle property.
Rich text
Rich text property value objects contain an array of rich text objects within therich_text property.
Number
Number property value objects contain a number within thenumber property.
Select
Select property value objects contain the following data within theselect property:
| Property | Type | Description | Example value |
|---|---|---|---|
id | string (UUIDv4) | ID of the option. When updating a select property, you can use either name or id. | "b3d773ca-b2c9-47d8-ae98-3c2ce3b2bffb" |
name | string | Name of the option as it appears in Notion. If the select database property does not yet have an option by that name, it will be added to the database schema if the integration also has write access to the parent database. Note: Commas (”,”) are not valid for select values. | "Fruit" |
color | string (enum) | Color of the option. Possible values are: "default", "gray", "brown", "red", "orange", "yellow", "green", "blue", "purple", "pink". Defaults to "default". Not currently editable. | "red" |
Multi-select
Multi-select property value objects contain an array of multi-select option values within themulti_select property.
Option values
| Property | Type | Description | Example value |
|---|---|---|---|
id | string (UUIDv4) | ID of the option. When updating a multi-select property, you can use either name or id. | "b3d773ca-b2c9-47d8-ae98-3c2ce3b2bffb" |
name | string | Name of the option as it appears in Notion. If the multi-select database property does not yet have an option by that name, it will be added to the database schema if the integration also has write access to the parent database. Note: Commas (”,”) are not valid for select values. | "Fruit" |
color | string (enum) | Color of the option. Possible values are: "default", "gray", "brown", "red", "orange", "yellow", "green", "blue", "purple", "pink". Defaults to "default". Not currently editable. | "red" |
Date
Date property value objects contain the following data within thedate property:
| Property | Type | Description | Example value |
|---|---|---|---|
start | string (ISO 8601 date and time) | An ISO 8601 format date, with optional time. | "2020-12-08T12:00:00Z" |
end | string (optional, ISO 8601 date and time) | An ISO 8601 formatted date, with optional time. Represents the end of a date range. If null, this property’s date value is not a range. | "2020-12-08T12:00:00Z" |
time_zone | string (optional, enum) | Time zone information for start and end. Possible values are extracted from the IANA database and they are based on the time zones from Moment.js. When time zone is provided, start and end should not have any UTC offset. In addition, when time zone is provided, start and end cannot be dates without time information. If null, time zone information will be contained in UTC offsets in start and end. | "America/Los_Angeles" |
Formula
Formula property value objects represent the result of evaluating a formula described in the database’s properties. These objects contain atype 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.
| Property | Type | Description |
|---|---|---|
type | string (enum) | The type of the formula result. Possible values are "string", "number", "boolean", and "date". |
String formula
String formula property values contain an optional string within thestring property.
Number formula
Number formula property values contain an optional number within thenumber property.
Boolean formula
Boolean formula property values contain a boolean within theboolean property.
Date formula
Date formula property values contain an optional date property value within thedate property.
Relation
Relation property value objects contain an array ofrelation 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 alist 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)
| Property | Type | Description |
|---|---|---|
type | string (enum) | The type of rollup. Possible values are "number", "date", "array", "unsupported" and "incomplete". |
function | string (enum) | Describes the aggregation used. Possible values include: count, count_values, empty, not_empty, unique, show_unique, percent_empty, percent_not_empty, sum, average, median, min, max, range, earliest_date, latest_date, date_range, checked, unchecked, percent_checked, percent_unchecked, count_per_group, percent_per_group, show_original |
Number rollup
Number rollup property values contain a number within thenumber property.
Date rollup
Date rollup property values contain a date property value within thedate property.
Array rollup
Array rollup property values contain an array ofproperty_item objects within the results property.
Incomplete rollup
Rollups with an aggregation with more than one page of aggregated results will return arollup 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 thepeople property.
Files
File property value objects contain an array of file references within thefiles 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 thecheckbox property.
URL
URL property value objects contain a non-empty string within theurl property. The string describes a web address (i.e. "http://worrydream.com/EarlyHistoryOfSmalltalk/").
email property. The string describes an email address (i.e. "[email protected]").
Phone number
Phone number property value objects contain a string within thephone_number property. No structure is enforced.
Created time
Created time property value objects contain a string within thecreated_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 thecreated_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 thelast_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 thelast_edited_by property. The user object describes the user who last updated this page.