Web API that extracts structured recipes from Instagram and TikTok and saves them to Notion. Designed for iOS Shortcuts: share a post URL → new page in your Notion database.
- Platforms: Instagram, TikTok (JS-rendered; static fetch returns shell HTML)
- Output: Schema.org-style Recipe (name, description, author, ingredients, instructions)
- Endpoint:
POST /api/notionwith{ "url": "https://instagram.com/..." }→ creates Notion page - Response:
201with{ notionPageId, notionUrl };422if extraction fails;502if Notion fails;503if Notion not configured
bun install
bun run devGET /→ health check.envfor local;wrangler secret putfor Cloudflare Workers
| Service | Purpose |
|---|---|
| Cloudflare Browser Rendering | Renders IG/TikTok pages (static fetch returns shell HTML) |
| Cloudflare Workers AI | Suggests page emoji and tags (optional; falls back to defaults) |
| Notion API | Creates recipe pages in a database |
Copy .env.example to .env and fill in your values. Notion: create integration at notion.so/my-integrations, create database, share with integration; DB ID from the database URL.