Price medians demo
Built as a small version of the Tenerife pricing pipeline. Every table below is read live from Supabase through an Edge Function on each page load.
1. Median price by zone
Sample listings (fake data) in the shape of the pricing engine: Postgres view → Edge Function → this Cloudflare Pages page.
| Zone | Listings | Median price | Median €/m² |
|---|---|---|---|
| Loading… | |||
2. Scraped via Apify: median price by category
Apify Cheerio Scraper on books.toscrape.com (a public scraping sandbox) → run-succeeded webhook → Edge Function → Supabase. Medians cross-checked against the source pages.
| Category | Items | Median price |
|---|---|---|
| Loading… | ||
3. Ingest runs
The webhook body is not trusted: the function re-reads each run from the Apify API and only ingests runs that really succeeded. Rows are keyed on (source, item URL), so re-running the same scrape inserts nothing.
| Received at | Run | Received | Valid | Newly inserted | Skipped |
|---|---|---|---|---|---|
| Loading… | |||||