Skip to content

External API Integration

Bypass SpyWeb’s internal database entirely and send extracted items directly to your own API or external database.

name = "External API"
url = "https://news.ycombinator.com"
selector = ".athing"
fields = [
"title:.titleline > a",
"link:.titleline > a@href"
]
interval = 300
  • before_store returning nil skips internal DB, dedup, and notifications
  • ctx.shared passes data between hooks in the same cycle
  • on_success runs after the cycle completes, good for external API calls
  • defer.lua keeps lifecycle hooks separate from pipeline hooks