import time import requests url = "https://api.notion.com/v1/pages" date_str = time.strftime("%Y-%m-%d", time.localtime()) payload = { "parent": {"type": "database_id", "database_id": "c246a1a4e4f24ac6ae98c11c0c1c32a9"}, "properties": {'日期': {'id': 'qSdW', 'type': 'date', 'date': {'start': date_str, 'end': None, 'time_zone': None}}, 'Name': {'id': 'title', 'type': 'title', 'title': [ {'type': 'text', 'text': {'content': date_str, 'link': None}}]}} } headers = { "Accept": "application/json", "Notion-Version": "2022-02-22", "Content-Type": "application/json", "Authorization": "Bearer secret_PvJWhkqlZJ7PMIqqPxWDhS736TjvUbkGojyrybjyxNh" } response = requests.post(url, json=payload, headers=headers) print(response.text)