Yellow Pages Scraper
Spider read yellowpages.com in 149 ms without a browser and returned 54 lines of clean markdown, including sections like "Discover Local ℠", "Manage your free listing" and "Questions and Answers".
# Discover Local ℠RestaurantsDentistsPlumbersContractorsElectriciansAuto RepairRoofingAttorneysHotels## Manage your free listing.Update your business information in a few steps. Make it easy for your customers to find you on Yellowpages.**New!** Post a job opening on your free listing.## Questions and AnswersHow much is a tankless water heater?Who should I contact for bankruptcy advice?Ask questions to the YP communityShare your knowledge to help out othersFind answers or offer solutions### Browse Popular Questions & AnswersDentistsFamily LawInsuranceAuto RepairHome ImprovementDogsPlumbing## Get your business in frontMaximize your opportunities for shoppers to find you by advertising with Yellowpages.Learn More## Take YP with you. It's **free**!### Make Every Day Local ® Learn more »You can search millions of local businesses on the go. Everything you need is in one app.You are leaving Yellowpages.com and are being redirected to a third-party website, Intelius.com, to continue your search inYou're requesting to delete your account.This request is permanent and cannot be reversed.Are you sure you want to delete your account? This request is permanent and cannot be reversed.We are submitting your account deletion request. Please wait.We have received your account deletion request.We were not able to process your account deletion request. Please try again later. The same call, in code.
The capture above came back as markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on yellowpages.com.
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www.yellowpages.com/search?search_terms=plumber&geo_location_terms=New+York+NY");
// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();
console.log(data);
await spider.close(); import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www.yellowpages.com/search?search_terms=plumber&geo_location_terms=New+York+NY");
await page.content();
const data = await page.evaluate(`(() => {
const listings = [];
document.querySelectorAll(".result").forEach(el => {
const name = el.querySelector(".business-name span")?.textContent?.trim();
const phone = el.querySelector(".phones")?.textContent?.trim();
const address = el.querySelector(".adr")?.textContent?.trim();
const category = el.querySelector(".categories a")?.textContent?.trim();
const rating = el.querySelector(".ratings .count")?.textContent?.trim();
if (name) listings.push({ name, phone, address, category, rating });
});
return JSON.stringify({ total: listings.length, listings: listings.slice(0, 15) });
})()`);
console.log(JSON.parse(data));
await spider.close(); Ready for volume? Get an API key →
Fields you can pull.
Spider names these from the page. The capture above came back as markdown; the same
call with return_format: "json" returns them as keys.
What yellowpages.com costs to scrape.
The capture above cost $0.000089 to fetch. Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so a page like this one lands at a fraction of a cent. Failed requests are billed at $0.
- Free balance on signup
- No card required to test
- Balance never expires
Run it keyless, no account
More Directories & Listings scrapers.
White Pages Scraper
Extract people search results, phone lookups, address records, and background check summaries from White Pages.
Manta Scraper
Extract small business profiles, company revenue estimates, employee counts, and industry classifications from Manta.
BBB Scraper
Extract business accreditation ratings, complaint histories, customer reviews, and trust scores from the Better Business Bureau.
Start scraping yellowpages.com.
You already have the call. A key raises the rate limit and turns on browser rendering, proxies, and concurrency. Balance never expires, and top-ups go through secure checkout.