> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.notion.core.GetDatabase

- Component: `appmixer.notion.core.GetDatabase`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.notion 2.3.0](https://connectors.appmixer.com/connector/appmixer.notion/2.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.notion/2.3.0/component/appmixer.notion.core.GetDatabase>

Gets a selected Database using its ID.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Database ID (`databaseId`) | text | Enter the ID of the database that you want to get. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Object (`object`) | string | - |
| Database ID (`id`) | string | - |
| Cover (`cover`) | object,null | - |
| Icon (`icon`) | object | - |
| Created Time (`created_time`) | string | - |
| Created By (`created_by`) | object | - |
| Last Edited By (`last_edited_by`) | object | - |
| Last Edited Time (`last_edited_time`) | string | - |
| Title (`title`) | array | - |
| Description (`description`) | array | - |
| Is Inline (`is_inline`) | boolean | - |
| Properties (`properties`) | object | - |
| Parent (`parent`) | object | - |
| URL (`url`) | string | - |
| Public URL (`public_url`) | string | - |
| Archived (`archived`) | boolean | - |
| In Trash (`in_trash`) | boolean | - |
| Request ID (`request_id`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.notion.core.GetDatabase",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "Gets a selected Database using its ID.",
  "auth": {
    "service": "appmixer:notion"
  },
  "quota": {
    "manager": "appmixer:notion",
    "resources": "general",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "private": false,
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "databaseId": {
            "type": "string"
          }
        },
        "required": [
          "databaseId"
        ]
      },
      "inspector": {
        "inputs": {
          "databaseId": {
            "type": "text",
            "index": 1,
            "label": "Database ID",
            "tooltip": "Enter the ID of the database that you want to get."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Object",
          "value": "object",
          "schema": {
            "type": "string",
            "example": "database"
          }
        },
        {
          "label": "Database ID",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "d4e5f6a7-b8c9-0123-defa-234567890123"
          }
        },
        {
          "label": "Cover",
          "value": "cover",
          "schema": {
            "type": [
              "object",
              "null"
            ],
            "example": {
              "type": "external",
              "external": {
                "url": "https://images.unsplash.com/photo-1506744038136-46273834b3fb"
              }
            }
          }
        },
        {
          "label": "Icon",
          "value": "icon",
          "schema": {
            "type": "object",
            "properties": {
              "type": {
                "title": "Icon.Type",
                "type": "string"
              },
              "external": {
                "title": "Icon.External",
                "type": "object",
                "properties": {
                  "url": {
                    "title": "Icon.External.URL",
                    "type": "string"
                  }
                }
              }
            },
            "example": {
              "type": "emoji",
              "emoji": "📋"
            }
          }
        },
        {
          "label": "Created Time",
          "value": "created_time",
          "schema": {
            "type": "string",
            "example": "2025-11-01T08:00:00.000Z"
          }
        },
        {
          "label": "Created By",
          "value": "created_by",
          "schema": {
            "type": "object",
            "properties": {
              "object": {
                "title": "Created By.Object",
                "type": "string"
              },
              "id": {
                "title": "Created By.ID",
                "type": "string"
              }
            },
            "example": {
              "object": "user",
              "id": "c2f20311-9e54-4d11-8c79-7398424ae41e"
            }
          }
        },
        {
          "label": "Last Edited By",
          "value": "last_edited_by",
          "schema": {
            "type": "object",
            "properties": {
              "object": {
                "title": "Last Edited By.Object",
                "type": "string"
              },
              "id": {
                "title": "Last Edited By.ID",
                "type": "string"
              }
            },
            "example": {
              "object": "user",
              "id": "c2f20311-9e54-4d11-8c79-7398424ae41e"
            }
          }
        },
        {
          "label": "Last Edited Time",
          "value": "last_edited_time",
          "schema": {
            "type": "string",
            "example": "2026-01-15T10:30:00.000Z"
          }
        },
        {
          "label": "Title",
          "value": "title",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "title": "Title.Type",
                  "type": "string"
                },
                "text": {
                  "title": "Title.Text",
                  "type": "object",
                  "properties": {
                    "content": {
                      "title": "Title.Text.Content",
                      "type": "string"
                    },
                    "link": {
                      "title": "Title.Text.Link",
                      "type": "string"
                    }
                  }
                },
                "annotations": {
                  "title": "Title.Annotations",
                  "type": "object",
                  "properties": {
                    "bold": {
                      "title": "Title.Annotations.Bold",
                      "type": "boolean"
                    },
                    "italic": {
                      "title": "Title.Annotations.Italic",
                      "type": "boolean"
                    },
                    "strikethrough": {
                      "title": "Title.Annotations.Strikethrough",
                      "type": "boolean"
                    },
                    "underline": {
                      "title": "Title.Annotations.Underline",
                      "type": "boolean"
                    },
                    "code": {
                      "title": "Title.Annotations.Code",
                      "type": "boolean"
                    },
                    "color": {
                      "title": "Title.Annotations.Color",
                      "type": "string"
                    }
                  }
                },
                "plain_text": {
                  "title": "Title.Plain_Text",
                  "type": "string"
                },
                "href": {
                  "title": "Title.Href",
                  "type": "string"
                }
              }
            },
            "example": "Project Tracker"
          }
        },
        {
          "label": "Description",
          "value": "description",
          "schema": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "example": [
              {
                "type": "text",
                "text": {
                  "content": "All active projects",
                  "link": null
                },
                "plain_text": "All active projects",
                "href": null
              }
            ]
          }
        },
        {
          "label": "Is Inline",
          "value": "is_inline",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Properties",
          "value": "properties",
          "schema": {
            "type": "object",
            "properties": {
              "text": {
                "title": "Properties.Text",
                "type": "object",
                "properties": {
                  "id": {
                    "title": "Properties.Text.ID",
                    "type": "string"
                  },
                  "name": {
                    "title": "Properties.Text.Name",
                    "type": "string"
                  },
                  "type": {
                    "title": "Properties.Text.Type",
                    "type": "string"
                  },
                  "rich_text": {
                    "title": "Properties.Text.Rich_Text",
                    "type": "object"
                  }
                }
              },
              "title": {
                "title": "Properties.Title",
                "type": "object",
                "properties": {
                  "id": {
                    "title": "Properties.Title.ID",
                    "type": "string"
                  },
                  "name": {
                    "title": "Properties.Title.Name",
                    "type": "string"
                  },
                  "type": {
                    "title": "Properties.Title.Type",
                    "type": "string"
                  },
                  "title": {
                    "title": "Properties.Title.Title",
                    "type": "object"
                  }
                }
              },
              "tags": {
                "title": "Properties.Tags",
                "type": "object",
                "properties": {
                  "id": {
                    "title": "Properties.Tags.ID",
                    "type": "string"
                  },
                  "name": {
                    "title": "Properties.Tags.Name",
                    "type": "string"
                  },
                  "type": {
                    "title": "Properties.Tags.Type",
                    "type": "string"
                  },
                  "multi_select": {
                    "title": "Properties.Tags.Multi_Select",
                    "type": "object",
                    "properties": {
                      "options": {
                        "title": "Properties.Tags.Multi_Select.Options",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "title": "Properties.Tags.Multi_Select.Options.ID",
                              "type": "string"
                            },
                            "name": {
                              "title": "Properties.Tags.Multi_Select.Options.Name",
                              "type": "string"
                            },
                            "color": {
                              "title": "Properties.Tags.Multi_Select.Options.Color",
                              "type": "string"
                            },
                            "description": {
                              "title": "Properties.Tags.Multi_Select.Options.Description",
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "created_by": {
                "title": "Properties.Created_By",
                "type": "object",
                "properties": {
                  "id": {
                    "title": "Properties.Created_By.ID",
                    "type": "string"
                  },
                  "name": {
                    "title": "Properties.Created_By.Name",
                    "type": "string"
                  },
                  "type": {
                    "title": "Properties.Created_By.Type",
                    "type": "string"
                  },
                  "created_by": {
                    "title": "Properties.Created_By.Created_By",
                    "type": "object",
                    "properties": {
                      "object": {
                        "title": "Properties.Created_By.Created_By.Object",
                        "type": "string"
                      },
                      "id": {
                        "title": "Properties.Created_By.Created_By.ID",
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "created_time": {
                "title": "Properties.Created_Time",
                "type": "object",
                "properties": {
                  "id": {
                    "title": "Properties.Created_Time.ID",
                    "type": "string"
                  },
                  "type": {
                    "title": "Properties.Created_Time.Type",
                    "type": "string"
                  },
                  "created_time": {
                    "title": "Properties.Created_Time.Created_Time",
                    "type": "string"
                  }
                }
              },
              "last_edited_by": {
                "title": "Properties.Last_Edited_By",
                "type": "object",
                "properties": {
                  "id": {
                    "title": "Properties.Last_Edited_By.ID",
                    "type": "string"
                  },
                  "name": {
                    "title": "Properties.Last_Edited_By.Name",
                    "type": "string"
                  },
                  "type": {
                    "title": "Properties.Last_Edited_By.Type",
                    "type": "string"
                  },
                  "last_edited_by": {
                    "title": "Properties.Last_Edited_By.Last_Edited_By",
                    "type": "object",
                    "properties": {
                      "object": {
                        "title": "Properties.Last_Edited_By.Last_Edited_By.Object",
                        "type": "string"
                      },
                      "id": {
                        "title": "Properties.Last_Edited_By.Last_Edited_By.ID",
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "last_edited_time": {
                "title": "Properties.Last_Edited_Time",
                "type": "object",
                "properties": {
                  "id": {
                    "title": "Properties.Last_Edited_Time.ID",
                    "type": "string"
                  },
                  "type": {
                    "title": "Properties.Last_Edited_Time.Type",
                    "type": "string"
                  },
                  "last_edited_time": {
                    "title": "Properties.Last_Edited_Time.Last_Edited_Time",
                    "type": "string"
                  }
                }
              }
            },
            "example": {
              "Name": {
                "id": "title",
                "name": "Name",
                "type": "title",
                "title": {}
              },
              "Status": {
                "id": "%3AUPp",
                "name": "Status",
                "type": "status",
                "status": {
                  "options": [
                    {
                      "id": "b3f1c2d4",
                      "name": "In progress",
                      "color": "blue"
                    }
                  ]
                }
              }
            }
          }
        },
        {
          "label": "Parent",
          "value": "parent",
          "schema": {
            "type": "object",
            "properties": {
              "type": {
                "title": "Parent.Type",
                "type": "string"
              },
              "workspace": {
                "title": "Parent.Workspace",
                "type": "boolean"
              }
            },
            "example": {
              "type": "page_id",
              "page_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            }
          }
        },
        {
          "label": "URL",
          "value": "url",
          "schema": {
            "type": "string",
            "example": "https://www.notion.so/d4e5f6a7b8c90123defa234567890123"
          }
        },
        {
          "label": "Public URL",
          "value": "public_url",
          "schema": {
            "type": "string",
            "example": "https://acme.notion.site/d4e5f6a7b8c90123defa234567890123"
          }
        },
        {
          "label": "Archived",
          "value": "archived",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "In Trash",
          "value": "in_trash",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Request ID",
          "value": "request_id",
          "schema": {
            "type": "string",
            "example": "e5f9a7b4-8d6c-4b0f-9c3e-7a4d9e6b0c3f"
          }
        }
      ]
    }
  ]
}
```
