Dev.to AI πŸ€– Ai πŸ‘ 2 πŸ“– 3 min read

Automating B2B Lead Generation from Ask HN Startup Pain Points & Market Research API Using n8n & MCP

If you've ever tried wiring live web data into n8n, Make, or an AI agent, you know the pain: Playwright/Puppeteer containers eat RAM, break silently, and cost way too much for simple scheduled syncs. In this quick guide

If you've ever tried wiring live web data into n8n, Make, or an AI agent, you know the pain: Playwright/Puppeteer containers eat RAM, break silently, and cost way too much for simple scheduled syncs.

In this quick guide, I'll show how to pull clean, structured JSON from Ask HN Startup Pain Points & Market Research API in seconds using a serverless Apify Actor (with built-in MCP and n8n support).

Why Use This Instead of Rolling Your Own Scraper?

  • B2B Outbound & Sales: Extract fresh startups, founders, and hiring signals straight into your CRM.
  • Market Research: Spot trending launches, pain points, and funded companies before competitors do.
  • AI SDR Pipelines: Enrich leads automatically inside n8n or Make without maintaining brittle scrapers.

Example JSON Output

Here is a real sample item returned by the Actor:

{
  "_highlightResult": {
    "author": {
      "matchLevel": "none",
      "matchedWords": [],
      "value": "pancakeguy"
    },
    "story_text": {
      "matchLevel": "none",
      "matchedWords": [],
      "value": "I promise this is a genuine question and not some autistic attempt at asserting technical superiority.<p>Many engineers have been purely vibecoding for years at this point.  \nIf you still read or write code manually, I'm genuinely curious why?<p>Is it because your software is too complex? corporate rules? skepticism?<p>It seems clear at this point that in the future we will talk to AI and it will code in a low level language, then explain it to us in english? Yet I still see many extremely smart people working on tools to improve manual code reading/writing. How are they different from those building better typewriters in 1990?"
    },
    "title": {
      "matchLevel": "none",
      "matchedWords": [],
      "value": "Ask HN: Why Aren't You Vibecoding?"
    }
  },
  "_tags": [
    "story",
    "author_pancakeguy",
    "story_50750281",
    "ask_hn"
  ],
  "author": "pancakeguy",
  "children": [
    50750618,
    50750559,
    50750619,
    50750374,
    50750507,
    50750542,
    50750367,
    50750332
  ],
  "created_at": "2026-12-03T18:29:15Z",
  "created_at_i": 1796322555,
  "num_comments": 12,
  "objectID": "50750281",
  "points": 5,
  "story_id": 50750281,
  "story_text": "I promise this is a genuine question and not some autistic attempt at asserting technical superiority.<p>Many engineers have been purely vibecoding for years at this point.  \nIf you still read or write code manually, I&#x27;m genuinely curious why?<p>Is it because your software is too complex? corporate rules? skepticism?<p>It seems clear at this point that in the future we will talk to AI and it will code in a low level language, then explain it to us in english? Yet I still see many extremely smart people working on tools to improve manual code reading&#x2F;writing. How are they different from those building better typewriters in 1990?",
  "title": "Ask HN: Why Aren't You Vibecoding?",
  "updated_at": "2026-12-03T18:59:37Z",
  "_sourceUrl": "https://hn.algolia.com/api/v1/search_by_date?tags=ask_hn&hitsPerPage=25",
  "_extractedAt": "2026-12-03T19:01:09.896Z"
}

1. Run via REST API (cURL / n8n HTTP Request)

curl -X POST "https://api.apify.com/v2/acts/furkan_orbeyi~hn-ask-painpoints-api/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"maxItems": 25}'

2. Connect to Claude Desktop / Cursor (MCP)

Add this snippet to your MCP config so your AI assistant can query live data directly:

{
  "mcpServers": {
    "apify-hn-ask-painpoints-api": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "furkan_orbeyi/hn-ask-painpoints-api"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}

Links & Free Templates

If you're building an automated workflow or AI agent pipeline around this data, feel free to grab the ready-made n8n-workflow.json from the repo above and customize the filters for your stack.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.