DEV Community

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

Posted on

How to Scrape Bing Search Results (Free API + No-API Methods)

Bing is easier to scrape than Google and has a generous free API.

Bing Web Search API (Free Tier)

7,000 free searches/month via Azure:

async function bingSearch(query) {
  const url = `https://api.bing.microsoft.com/v7.0/search?q=${encodeURIComponent(query)}&count=10`;
  const res = await fetch(url, {
    headers: { "Ocp-Apim-Subscription-Key": "YOUR_KEY" }
  });
  const data = await res.json();
  return data.webPages.value.map(r => ({
    title: r.name,
    url: r.url,
    snippet: r.snippet
  }));
}
Enter fullscreen mode Exit fullscreen mode

No-API Alternative

Bing search results can also be parsed from HTML with Cheerio — less anti-bot than Google.

Why Bing Over Google

  • Free tier: 7,000 searches/month (vs Google 100/day)
  • Less aggressive bot detection
  • Same result quality for most queries
  • Easier HTML parsing if needed

Resources


Need search engine data? Google, Bing, DuckDuckGo — $20. Email: Spinov001@gmail.com | Hire me

Top comments (0)