Vinted, Reverb, TCGPlayer & Discogs Scraper — Sold Comps avatar

Vinted, Reverb, TCGPlayer & Discogs Scraper — Sold Comps

Pricing

$2.50 / 1,000 marketplace comp or listing delivereds

Go to Apify Store
Vinted, Reverb, TCGPlayer & Discogs Scraper — Sold Comps

Vinted, Reverb, TCGPlayer & Discogs Scraper — Sold Comps

Compute real sold market comps (P25, Median, P75, 30d velocity) and live buy/resell arbitrage margins across Vinted, Reverb, TCGPlayer, and Discogs using Chrome TLS & JSON APIs. Built for pro resellers, collectibles shops, Discord/Telegram deal bots, and n8n arbitrage alerts.

Pricing

$2.50 / 1,000 marketplace comp or listing delivereds

Rating

0.0

(0)

Developer

Xavier Richard

Xavier Richard

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 hours ago

Last modified

Features

Limited permissions

Share

Reseller Arbitrage & Sold Comps (reseller-arbitrage-sold-comps)

Production Apify Actor for resellers, thrift/pawn/record/card shops, collectors, and Discord/Telegram/n8n deal bots to compute real sold market value (P25, Median, P75, 30-day velocity) and detect underpriced active listings (spreadPct, isUnderpriced, estimatedGrossMargin) across underserved high-arbitrage verticals.

Built on Python 3.12, apify (~=4.1), curl_cffi (Chrome TLS/HTTP2 impersonation), selectolax (LexborHTMLParser), pydantic v2, and Python statistics. Target memory: 256–512 MB, proxy-free by default.


Verified Marketplaces (Live HTTP/TLS Verification)

Every marketplace endpoint was tested live with curl_cffi before implementation:

MarketplaceStatus (No Proxy)Data SourceSold CompsActive AsksAuth / Proxy Notes
Reverb200 HAL+JSONapi.reverb.com/api/listings/all?show_only_sold=true & /api/listings✅ Individual sales✅ Live asksNo proxy or API key required
TCGPlayer200 JSONmp-search-api.tcgplayer.com + mpapi.tcgplayer.com/v2/product/{id}/latestsales✅ Individual sales✅ Standard asksNo proxy or API key required
Discogs200 JSON + 200 HTMLapi.discogs.com (/database/search, /releases/{id}, /marketplace/stats/{id}) + www.discogs.com/release/{id}-{slug}✅ Release Median + Last Sold date✅ Lowest askOptional free discogsToken increases limit (25 → 60 req/min) & enables /marketplace/price_suggestions/{id} fallback
Vinted200 HTML (SSR Flight JSON)www.vinted.{fr,com,co.uk,de,es,it,nl,be}/catalog (self.__next_f.push + DOM fallback)❌ Removed on Vinted✅ Live asks (96/page)Great sourcing feed paired with sold anchors; no proxy required

Platforms Explicitly Excluded from Proxy-Free Defaults

  • eBay (ebay.com, .fr, .co.uk, .de): Tested with chrome124, chrome131, and safari17_0 TLS impersonation — returns 403 Error Page from Akamai Bot Manager (Server: AkamaiGHost, bm_s/bm_so cookies) on datacenter/non-residential connections. Requires residential proxies or official eBay Browse/Marketplace Insights OAuth API.
  • Discogs /sell/history & /sell/list web routes: Gated behind Cloudflare JS Challenge (Just a moment...). The Actor cleanly uses api.discogs.com + www.discogs.com/release/{id}-{slug} (200 OK) instead.

Architecture & Output

1. Unified Dataset Schema (ListingComp)

Every item pushed to the Apify Dataset conforms to:

  • query, marketplace (reverb | tcgplayer | discogs | vinted)
  • itemId, title, condition, listingType (sold | active_ask)
  • price, shippingPrice, totalPrice, currency (kept in native listing currency)
  • soldDate (ISO timestamp/date for sold, null for active_ask)
  • sellerCountry, url, imageUrl
  • isUnderpriced (bool), estimatedGrossMargin (float | null in targetCurrency), discountBelowMedianPct (float | null)

2. Arbitrage Analytics & Relevance Filtering (KEY_VALUE_STORE / MARKET_SUMMARY)

For every query, src/relevance.py filters out off-topic search hits (strictQueryMatch: true) and accessory/parts noise (excludeAccessories: true — adapters, knobs, manuals, empty boxes, posters, pins, sleeves, etc. unless present in your query) before src/analytics.py normalizes currencies to targetCurrency (USD, EUR, GBP, or CAD) and stores MARKET_SUMMARY in the Default Key-Value Store:

  • soldCount, activeCount, soldVelocity30d, filteredNoiseCount
  • p25SoldPrice, medianSoldPrice, p75SoldPrice
  • minActivePrice
  • spreadPct: ((medianSoldPrice - minActivePrice) / medianSoldPrice) * 100
  • underpricedCount & top underpricedDeals

3. Delta Mode (onlyNew) & Discord / n8n Webhook Alerts

  • Enable onlyNew: true for scheduled cron monitoring (e.g., every 10–15 minutes).
  • Seen keys (marketplace:listingType:itemId) persist in the named Key-Value Store reseller-arbitrage-sold-comps-state.
  • Smart design: Fresh sold comps are always evaluated to compute an accurate medianSoldPrice, while previously seen listings are skipped from dataset delivery, Pay-Per-Event billing, and webhook notifications.
  • If webhookUrl is set, new isUnderpriced active deals are sent automatically:
    • Discord (discord.com/api/webhooks/...): rich green embeds (chunked 10/message) with ask price, sold median, estimated margin, discount %, condition, and thumbnail.
    • n8n / Make / Telegram relay: structured JSON payload (event: "underpriced_deals_detected").

4. Pay-Per-Event Billing

Charges comp-item via Actor.get_charging_manager() in batches of 25 and enforces maxTotalChargeUsd strictly before each batch.


Local Development & Testing

# Run unit & fixture integration tests
python -m pytest -v
# Run Actor locally with Apify CLI
apify run