{"name":"Miami Events Scanner v6.8 — D1-native pipeline with Admin API","endpoints":{"/run":"Process all profiles in auto-batches (admin Bearer token; supports query params)","/test":"Check all dependencies (Apify, AI, D1)","GET /api/yield?days=7":"Yield ledger: per-handle + per-run extraction totals","/api/events":"Get events for a week (params: week, category)","/api/clubs":"Get clubs (params: category)","/api/club/:handle":"Get single club + events","/api/categories":"List categories with counts","POST /api/clubs":"Add a new club (admin)","PUT /api/club/:handle":"Update a club (admin)","DELETE /api/club/:handle":"Delete a club (admin)","POST /api/sync":"Trigger a pipeline run (admin)","GET /api/runs":"View recent run history"},"queryParams":{"/run":"No params → process ALL handles","/run?handles=h1,h2":"Process specific handles only","/run?start=2&end=20":"Process by row position (1-indexed)","/run?count=15":"Process first 15 oldest-scanned accounts"},"schedule":"Twice daily: 18:00 UTC and 02:00 UTC","features":["D1-native: all data stored in Cloudflare D1","Auto-batching: processes all profiles in chunks of 40","Incremental saves: each chunk saved immediately to prevent data loss","Profile extraction (bio, followers, media count, last post, profile pic)","Post pre-filter (only event-like posts go to AI)","Three-prong AI extraction: bio + caption + image fallback","Admin API for club management","Run log tracking in D1","Flexible query params for custom handle selection"]}