Extract Database Properties
block is designed to retrieve all properties and their types from a Notion database. This functionality is especially valuable when generating content using LLMs, as having clear property definitions enables the generation of accurate content shapes that can be directly integrated into your Notion database.
I/O | Feature | Type | Simple Explanation |
---|---|---|---|
input | database_id | string | The link or unique ID of your Notion database that you wish to extract properties from. |
output | properties_json | object | Returns a JSON object containing property names along with their corresponding field types in the database. |
output | raw_json_response | object | Provides the raw JSON response fetched from the Notion API, reflecting current database structure. |
database_id
,
all relevant properties will be automatically included as separate handles for
direct connections to other blocks.Extract Database Properties
block proves invaluable!