← Back to all apps

Notion

Productivityby Notion
Open in ChatGPT →

Search and reference your Notion pages

2Tools
NotionDeveloper
ProductivityCategory

Available Tools

Notion provides 2 tools that can be used to interact with its services.

Fetch

fetch
Full Description

Retrieves details about Notion entities by their ID. You can fetch the following types of entities:

  • Page, i.e. from a <page> block or a <mention-page> mention
  • Database, i.e. from a <database> block or a <mention-database> mention

Use the "fetch" tool when you need to see the details of one or more Notion entities you already know exists and have their IDs. Provide the Notion entities in the id parameter. Content for pages that are returned use the enhanced Markdown format, which is a superset of the standard Markdown syntax. See the full spec in the description of the "create-pages" tool. Notion does not currently have a public concept of Data Sources, and only supports Databases. When rendering the response from this tool, assume the database only has one data source and display the details of the data source as the database, removing any mention of "data sources" from the result.

Parameters

Required
idstring

Search

search
Full Description

Perform one or more searches over (query_type):

  • "internal": Perform one or more semantic searches over your entire Notion workspace and connected sources (Slack, Google Drive, Github, Jira, Microsoft Teams, Sharepoint, OneDrive, or Linear).
  • "users": Perform one or more searches over the Notion users in the current workspace.

You can use search when you need to find information which is not already available via other tools. Parameters:

  • query: the query to search for. This cannot be an empty string.
  • query_type: only "internal" or "users" is accepted. OPTIONAL
  • data_source_url: the URL of the database to search in. OPTIONAL

When using query, each search query is an AND token match. Meaning, every token in the query is required to be present in order to match.

  • Search will return documents that contain all of the keywords in the query.
  • Therefore, queries should be short and keyword-focused (avoid long natural language).
  • If no results are found, try the following strategies:

1) Use different or related keywords. 2) Make the query more generic and simpler.

  • To improve recall, consider variants of your terms: abbreviations, synonyms, etc.
  • Previous search results can provide hints about useful variants of internal terms — use those to refine queries.

Parameters

Required
querystring
Optional
data_source_urlstring
Default: null
query_typestring
Default: null