DEV Community

Boon
Boon

Posted on

How to get Discord alerts for Vinted vintage deals (Node.js)

I’ve been flipping clothes for a few months now, and trying to monitor vinted automatically has been an absolute nightmare.

If you're looking for a vinted new listings alert setup, you’ve probably hit the same wall I did: Datadome. Vinted’s anti-bot protection is ruthless right now. I tried building a custom vinted scraper using Axios and even Puppeteer, but my IPs got banned almost instantly. If you want to never miss a vinted deal, the DIY route is basically dead unless you want to spend hundreds on premium residential proxies.

I finally stopped trying to reinvent the wheel. I found an existing vinted apify actor that bypasses all the WAFs natively. It’s called vinted turbo scraper (link to the tool here).

Here is my exact setup for vinted vintage deals automation using Node.js and a Discord Webhook. It takes about 10 minutes to set up.

const { ApifyClient } = require('apify-client');
const axios = require('axios');

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const DISCORD_WEBHOOK = 'YOUR_DISCORD_WEBHOOK_URL';

async function monitorVinted() {
    console.log('Fetching new listings...');

    // Call the Vinted Turbo Scraper actor
    const run = await client.actor('kazkn/vinted-turbo-scraper').call({
        searchUrl: "https://www.vinted.fr/vetements?search_text=carhartt+vintage&order=newest_first",
        maxItems: 10
    });

    const { items } = await client.dataset(run.defaultDatasetId).listItems();

    for (const item of items) {
        // Send alert to Discord
        await axios.post(DISCORD_WEBHOOK, {
            content: `🚨 **New Vintage Carhartt Deal!**\nPrice: ${item.price} €\nLink: ${item.url}`
        });
    }
}

monitorVinted();
Enter fullscreen mode Exit fullscreen mode

If you are a vinted data extraction developer or just someone flipping clothes, stop wasting time fighting Cloudflare. Just use the Apify actor and plug the output into Discord or Telegram.

Has anyone figured out how to run this on a cheaper cron schedule (like AWS Lambda)? Let me know.

Top comments (0)