Gatsby plugin for Notion API
This article is a product analysis of a source plugin called “gatsby-source-notion-api”. The plugin allows users to pull content from the official Notion API into Gatsby and query Notion pages using GraphQL. The article provides information on features, installation instructions, and querying options.
{
"plugins": [
{
"resolve": "gatsby-source-notion-api",
"options": {
"token": "YOUR_INTEGRATION_TOKEN",
"databaseId": "YOUR_DATABASE_ID"
}
}
]
}
The “gatsby-source-notion-api” plugin is a useful tool for integrating Notion content into Gatsby websites. It offers features such as querying Notion pages with GraphQL, accessing page properties, converting page contents to Markdown, and providing raw Notion API data. The installation process requires creating a Notion integration and sharing the desired database with the integration. Overall, this plugin simplifies the process of incorporating Notion content into Gatsby projects.