Whether you use Super.so, Potion, or the Notion API — add professional OG images to every Notion page.
Try Imago API FreeServer-side fetch using the official Notion SDK to get page titles dynamically.
Code injection support for Super.so sites using Notion as a CMS.
Works with Next.js, Nuxt, Astro, and other modern frameworks.
Use Node.js to generate dynamic OG images from Notion pages:
// Using the Notion API to get page title and generate OG image:
const { Client } = require('@notionhq/client');
const notion = new Client({ auth: process.env.NOTION_KEY });
async function getOgImageUrl(pageId) {
const page = await notion.pages.retrieve({ page_id: pageId });
const title = page.properties.Name?.title?.[0]?.plain_text ?? 'My Page';
return `https://imagoapi.com/api/og/generate?title=${encodeURIComponent(title)}&template=modern&api_key=${process.env.IMAGO_API_KEY}`;
}
// For Super.so: paste in Site Settings > Custom Code > Head
// For Potion: paste in Settings > Head Code
Generate beautiful, dynamic OG images for your Notion site in minutes.
Start Generating Now