DEV Community

Алексей Спинов
Алексей Спинов

Posted on

How to Scrape Product Hunt Launches and Upvote Data

Product Hunt is the go-to platform for tech launches.

Product Hunt API (GraphQL, Free)

async function getTopProducts(token) {
  const res = await fetch("https://api.producthunt.com/v2/api/graphql", {
    method: "POST",
    headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json" },
    body: JSON.stringify({ query: `{ posts(order: VOTES) { edges { node { name tagline votesCount url } } } }` })
  });
  return res.json();
}
Enter fullscreen mode Exit fullscreen mode

Data: name, tagline, upvotes, URL, maker, category, comments

Use Cases

  1. Competitor tracking
  2. Trend detection
  3. Launch strategy research
  4. Community outreach

Resources


Need startup or Product Hunt data? $20. Email: Spinov001@gmail.com | Hire me

Top comments (0)