Menu

Post image 1
Post image 2
1 / 2
0

From Notion to Shopify Pages via API: A 50-Line Sync Script

DEV Community·RAXXO Studios·20 days ago
#4pzTHTbs
Reading 0:00
15s threshold

A 50-line TypeScript script syncs Notion database pages to Shopify Pages via the Admin REST API Uses notion-to-md to turn Notion blocks into clean HTML body, then POSTs to /admin/api/2026-01/pages.json template_suffix is mandatory, omit it and Shopify renders your About template by accident GitHub Actions runs the sync every 6 hours so editors keep working in Notion while raxxo.shop stays current Real gotchas: handle conflicts on rename, image URLs from Notion's CDN expire after one hour I keep my long-form drafts in Notion because the editor is the best one for actually writing. I keep my live pages on Shopify because that is where my customers land. For two years I copy-pasted between them and pretended that was fine. It was not fine. Last weekend I built a 50-line sync script. Notion is the source of truth. Shopify is the render target. The cron runs every six hours. I stopped touching the Shopify admin for content edits, and nothing has broken.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More