> 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.FindPageByTitle

- Component: `appmixer.notion.core.FindPageByTitle`
- 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.FindPageByTitle>

This component searches for pages in Notion based on a given title and returns only the titles and IDs of the matching pages. Due to the nature of Notion's search API, the results might not always be exact unless the search query is a unique and precise match. For retrieving more detailed information or metadata about a specific page, you can use the Get Page component by passing the Page ID obtained from this component. This component will return a maximum of 100 records.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Title (`title`) | text | Enter the title or part of the title of the page you wish to search for. Note that the search may return fuzzy matches unless the title is an exact and unique match. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/notion/core/FindPageByTitle?outPort=out&ignoreAuth=true`.

### Port `notFound`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.notion.core.FindPageByTitle",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "This component searches for pages in Notion based on a given title and returns only the titles and IDs of the matching pages. Due to the nature of Notion's search API, the results might not always be exact unless the search query is a unique and precise match. For retrieving more detailed information or metadata about a specific page, you can use the Get Page component by passing the Page ID obtained from this component. This component will return a maximum of 100 records.",
  "auth": {
    "service": "appmixer:notion"
  },
  "quota": {
    "manager": "appmixer:notion",
    "resources": "general",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "private": false,
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "outputType": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "outputType"
        ]
      },
      "inspector": {
        "inputs": {
          "title": {
            "type": "text",
            "index": 0,
            "label": "Title",
            "tooltip": "Enter the title or part of the title of the page you wish to search for. Note that the search may return fuzzy matches unless the title is an exact and unique match."
          },
          "outputType": {
            "group": "last",
            "type": "select",
            "label": "Output Type",
            "index": 1,
            "defaultValue": "array",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method.",
            "options": [
              {
                "label": "First Page",
                "value": "first"
              },
              {
                "label": "All items at once",
                "value": "array"
              },
              {
                "label": "One item at a time",
                "value": "object"
              },
              {
                "label": "File",
                "value": "file"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/notion/core/FindPageByTitle?outPort=out&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType",
            "in/title": "dummy"
          }
        }
      }
    },
    {
      "name": "notFound"
    }
  ]
}
```
