Open documentation ↗Overview
Integrate with Notion
Notion is a documents & productivity API from notion.com. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 13 endpoints.
At a glance
- Authentication
- OAuth
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Documents & Productivity
- Base URL
https://api.notion.com- Version
- 1.0.0
- Endpoints
- 13
- OpenAPI
- Specification ↗
- Spec updated
- 2023-03-06
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://api.notion.com/v1/comments" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.notion.com/v1/comments", {
method: "GET",
headers: {
"Accept": "application/json",
"Authorization": "Bearer YOUR_TOKEN",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://api.notion.com/v1/comments",
headers={
"Accept": "application/json",
"Authorization": "Bearer YOUR_TOKEN",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /v1/blocks/{id} | Retrieve a block |
| PATCH | /v1/blocks/{id} | Update a block |
| DELETE | /v1/blocks/{id} | Delete a block |
| GET | /v1/blocks/{id}/children | Retrieve block children |
| PATCH | /v1/blocks/{id}/children | Append block children |
| GET | /v1/comments | Retrieve comments |
| GET | /v1/databases/{id} | Retrieve a database |
| PATCH | /v1/databases/{id} | Update a database |
| POST | /v1/databases/{id}/query | Query a database |
| GET | /v1/pages/{id} | Retrieve a Page |
| PATCH | /v1/pages/{id} | Update Page properties |
| GET | /v1/pages/{page_id}/properties/{property_id} | Retrieve a Page Property Item |
| GET | /v1/users/{id} | Retrieve a user |
Questions
Does the Notion API need an API key?
Yes. The Notion API uses OAuth authentication; the documentation explains how to get credentials.
Does the Notion API support HTTPS?
Yes, the Notion API is served over HTTPS.
How many endpoints does the Notion API have?
Its OpenAPI description lists 13 endpoints in version 1.0.0. All of them are shown on this page.
What are alternatives to the Notion API?
Other Documents & Productivity APIs include JIRA, DocStruct, Asana, ClickUp, iLovePDF.
Similar documents & productivity APIs
Compare alternatives →JIRA
Documents & ProductivityJIRA is a proprietary issue tracking product that allows bug tracking and agile project management
DocStruct
Documents & ProductivityAI extraction of invoices, receipts, bank statements & contracts into structured JSON/CSV
Asana
Documents & ProductivityProgrammatic access to all data in your asana system
ClickUp
Documents & ProductivityClickUp is a robust, cloud-based project management tool for boosting productivity
iLovePDF
Documents & ProductivityConvert, merge, split, extract text and add page numbers for PDFs. Free for 250 documents/month
Airtable
Documents & ProductivityIntegrate with Airtable
Listed from public-apis (MIT), public-apis database (MIT), APIs.guru (CC0).