Join us for our Developer Platform Hackathon, May 16-17. Apply now →
import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.databases.retrieve({
database_id: "d9824bdc-8445-4327-be8b-5b47500af6ce"
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.databases.retrieve({
database_id: "d9824bdc-8445-4327-be8b-5b47500af6ce"
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Documentation Index
Fetch the complete documentation index at: https://developers.notion.com/llms.txt
Use this file to discover all available pages before exploring further.
2022-06-28. In the new 2025-09-03 version, the concepts of databases and data sources were split up, as described in Upgrading to 2025-09-03.Refer to the new APIs instead:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The API version to use for this request. The latest version is 2026-03-11.
2026-03-11 ID of a Notion database, a container for one or more data sources.