SPB Git forge

spb/rareindex

Public
54commits 1branches 0releases
7.1 MBsize
maindefault branch
10 days agolast push
TypeScript 61.9% HTML 37.2% SQL 0.7%
1.2 KB

# loupe-this — Loupe This (online watch auctions, US)

Realised prices and live lots from Loupe This, through the public JSON:API the site loads.

  • GET api.loupethis.com/api/v1/auctions?status=closed|live&per_page=100&page=N&include=brand (+ /auctions/<slug> for lookup).
  • status=closed + sold_price_cents → sale: price = winning bid + 10 % buyer's premium (buyerPremiumIncluded: true, metadata.hammer_price), saleDate = ends_at, USD. Closed lots without a sold price (reserve not met) are skipped.
  • status=live → auction_lot (current bid, starts/ends, live/upcoming). The endpoint also returns closed lots after the open ones; the connector keeps only open lots on that path and stops when a page has none.
  • Watch attributes: brand from included brands, reference (WATCH_REF_RE + letter-prefixed fallback for Seiko/IWC/Panerai codes), material, size, completeness, condition hints. identifiers.loupe_this_id (+ reference).
  • Backfill: ~4 250 closed lots since 2021 (43 pages of 100) with ctx.progress and cursor { status, page }.
  • Bidder ids, comments, payment/auth endpoints are ignored.

Smoke: pnpm tsx connectors/api/_g9-asia-watch-sneaker-lib/capture.ts loupe-this --limit 1 --cursor '{"status":"closed","page":1}'.