• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
project logo

nucky

book-lookup-notion

use google book api to look up bibliographic metadata elements
Public
Like
1
book-lookup-notion
Home
Code
2
backend
3
README.md
Branches
1
Pull requests
Remixes
1
History
Environment variables
2
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/22/2025
Viewing readonly version of main branch: v4
View latest version
README.md

Notion Book Database Auto-Populator

This Val automatically enriches your Notion book database by fetching metadata from Google Books API.

Features

  • 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

Setup

  1. Create a Notion integration and get your API token
  2. Get your Notion database ID
  3. Set environment variables:
    • NOTION_API_TOKEN: Your Notion integration token
    • NOTION_DATABASE_ID: Your book database ID

Usage

The Val can be triggered:

  • HTTP: Manual trigger via web endpoint
  • Cron: Automatic periodic checks (recommended)
  • Manual: Run directly from Val Town

API Endpoints

  • GET / - Manual trigger to process all incomplete records
  • GET /status - Check system status and recent activity

Files

  • /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
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.