API
POST /api/scrape/marketplace
Body fields: keyword, location, optional maxResults and headless.
{
"keyword": "vintage office chair",
"location": "10001",
"maxResults": 10
}Vntg Bot
This deployment exposes a server-side scraper module and an API route that searches Marketplace, extracts listing data, and upserts rows into PostgreSQL.
listingsRuntime: Node.js + Playwright Core + PostgreSQLRequired env
DATABASE_URL
FACEBOOK_EMAIL and FACEBOOK_PASSWORD
or FACEBOOK_SESSION_COOKIE / FACEBOOK_STORAGE_STATE_PATH
Optional: CHROMIUM_PATH
API
Body fields: keyword, location, optional maxResults and headless.
{
"keyword": "vintage office chair",
"location": "10001",
"maxResults": 10
}CLI
npm run scrape:marketplace -- \ --keyword "vintage office chair" \ --location "10001" \ --max-results 10
Both entrypoints call the same server-side module in lib/scrapers/facebook-marketplace.ts.