An automated tool for monitoring and making offers on Grailed listings for specific designers.
- Monitors new listings for specified designers in real-time
- Automatically makes offers based on a configured percentage of the listing price
- Uses Algolia search API for efficient listing discovery
- Supports authentication with Grailed
- Node.js (v14 or higher)
- npm (Node Package Manager)
- A Grailed account
- Clone this repository or download the source code
- Install dependencies:
npm install
-
Copy
config copy.jsontoconfig.json:cp "config copy.json" config.json -
Configure the following settings in
config.json:
In the AUTH section:
csrf: Your Grailed CSRF tokencookie: Your Grailed session cookiedeviceId: Your device IDxCsrfToken: Your X-CSRF token
To obtain these values:
- Log into Grailed in your browser
- Open Developer Tools (F12)
- Go to the Network tab
- Make any action on Grailed (e.g., visit a listing)
- Look for requests to grailed.com
- Find these values in the request headers
In the GRAILED section:
DESIGNER: The designer name to monitor (e.g., "visvim")MONITORING_INTERVAL: Time between checks in milliseconds (default: 60000)LOWBALL_PERCENTAGE: Offer percentage (0.5 = 50% of listing price)
In the OPENAI section:
API_KEY: Your OpenAI API key (optional)
-
Start the monitoring script:
node grailed-scraper.js
-
The script will:
- Monitor new listings for the specified designer
- Automatically make offers based on your configured percentage
- Track seen listings to avoid duplicate offers
- Use this tool responsibly and in accordance with Grailed's terms of service
- Adjust the monitoring interval to avoid rate limiting
- Keep your authentication tokens secure and never share them
- The script maintains a
seen_listings.jsonfile to track processed listings
If you encounter issues:
- Verify your authentication tokens are current
- Check your network connection
- Ensure you're not being rate limited by Grailed
- Verify the designer name is spelled correctly
This tool is for educational purposes only. Use at your own risk and ensure compliance with Grailed's terms of service.