QPAScrape
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v11View latest version
A JSON API endpoint that intelligently scrapes auction data from quarterpriceauction.com.
index.ts- Main HTTP endpoint with intelligent scraping capabilities
Make a GET request to the endpoint to receive current auction listings in JSON format.
GET /- Returns current auction listings with metadataGET /health- Health check endpointGET /info- API information and available endpointsGET /debug- Debug endpoint showing HTML structure analysis
- Intelligent Scraping: Extracts REDUX_DATA from the React application state
- Multi-source Data: Fetches data from main page and individual auction pages
- Structured JSON Response: Returns clean, structured auction data
- Error Handling: Graceful error handling with detailed error messages
- Caching: 5-minute cache headers for performance
- Metadata: Includes scraping statistics and data source information
{ "timestamp": "2025-08-10T17:51:39.711Z", "totalItems": 5, "items": [ { "title": "August 11 Auction", "auctionUrl": "https://www.quarterpriceauction.com/auctions/30125-august-11-auction", "currentBid": "$120.00", "description": "Optional description", "timeLeft": "Optional time remaining", "imageUrl": "Optional image URL" } ], "metadata": { "reduxDataFound": true, "auctionUrlsFound": 6, "scrapedAuctions": 5 } }
- Extracts application state from
window.REDUX_DATA - Discovers auction URLs from HTML structure
- Fetches individual auction pages for detailed data
- Handles both static HTML and dynamic React content
- Limits concurrent requests to prevent rate limiting