Public
Like
1
book-lookup-notion
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v5View latest version
This Val automatically enriches your Notion book database by fetching metadata from Google Books API.
- Monitors Notion database for new entries with title and author
- Automatically fetches and populates:
- ISBN (ISBN-13 preferred, ISBN-10 as fallback)
- Year Published
- Page Count
- Publisher
- Uses Google Books API (no API key required)
- Handles multiple book matches intelligently
- Create a Notion integration and get your API token
- Get your Notion database ID
- Set environment variables:
NOTION_API_TOKEN: Your Notion integration tokenNOTION_DATABASE_ID: Your book database ID
The Val can be triggered:
- HTTP: Manual trigger via web endpoint
- Cron: Automatic periodic checks (recommended)
- Manual: Run directly from Val Town
GET /- Manual trigger to process all incomplete recordsGET /status- Check system status and recent activity
/backend/index.ts- Main HTTP handler and orchestration/backend/notion.ts- Notion API integration/backend/books.ts- Google Books API integration/backend/processor.ts- Main processing logic