Appearance
库
查询页面。
node page.mjsconst TOKEN = 'ntn_123456';
const VERSION = '2026-03-11';
const ID = '1234';
const url = `https://api.notion.com/v1/pages/${ID}`;
const options = { method: 'GET', headers: { 'Authorization': 'Bearer ' + TOKEN, 'Notion-Version': VERSION } };
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}