DEV Community

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

Posted on

Stack Overflow API: Find What Developers Are Asking About Any Topic

Want to know what developers struggle with in your tech niche? Stack Overflow's API tells you — for free, no key needed.

Search Questions

curl 'https://api.stackexchange.com/2.3/search?order=desc&sort=votes&intitle=web+scraping&site=stackoverflow'
Enter fullscreen mode Exit fullscreen mode

Returns: question title, score, answer count, tags, view count, link.

Why This Matters

Stack Overflow questions are a demand signal:

  • High-vote questions = many developers have this problem
  • Unanswered questions = opportunity to provide a solution
  • Tag frequency = technology adoption trends

Use Cases

  1. Product validation — are developers asking about your niche?
  2. Content ideas — write tutorials for high-vote unanswered questions
  3. Market research — which frameworks are gaining/losing interest?
  4. Competitive analysis — what tools do developers recommend in answers?

Node.js Example

async function getQuestions(topic, limit = 10) {
  const url = `https://api.stackexchange.com/2.3/search?` +
    `order=desc&sort=votes&intitle=${encodeURIComponent(topic)}` +
    `&site=stackoverflow&pagesize=${limit}`;

  const res = await fetch(url);
  const data = await res.json();

  return data.items.map(q => ({
    title: q.title,
    score: q.score,
    answers: q.answer_count,
    views: q.view_count,
    tags: q.tags,
    link: q.link
  }));
}

const questions = await getQuestions('playwright automation');
console.table(questions);
Enter fullscreen mode Exit fullscreen mode

Rate Limits

  • Without key: 300 requests/day
  • With key (free): 10,000 requests/day

I use this as one of 9 data sources for automated market research.

Related Articles


Need developer community data extracted? Stack Overflow, GitHub, HN — $20 flat rate. Email: Spinov001@gmail.com | Hire me

Top comments (0)