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.1 KB

# hibid — HiBid past catalogs (prices realized)

HiBid hosts thousands of regional auctioneers. The public Angular pages embed their Apollo GraphQL state in <script id="hibid-state">; this connector reads that JSON from two public page types only:

  • /auctions/past?apage=N — archived auctions of the current month window (25 per page);
  • /catalog/<id>/<slug>?apage=N — the catalog (100 lots per page) with lotState.priceRealized.

A sale is emitted for closed lots with a published price realized (hammer; premium charged separately → buyerPremiumIncluded=false, premium text in metadata). Currency = the auction's currencyAbbreviation. Lots are kept only when their HiBid category maps to the collectibles taxonomy (categories.ts); real estate, vehicles, equipment, household goods are skipped and firearms/ammunition are never emitted.

Cursor: { doneAuctions: number[], pastPage }; backfill walks the past pages and ends with done: true.

bash
set -a; . ./.env; set +a
pnpm tsx connectors/api/_g7-auctions-na-lib/smoke.ts api/hibid --limit 3 --capture catalog
pnpm vitest run connectors/api/hibid