I manage a school directory and am looking for an easy way to scrape a site for contact info. I know I can use tools like Google Places, but I’m looking for authoritative information for the site. My review of Firecrawl OG data does not show things like ‘address’, email, phone,
1 Like
Hi there,
The contact info is probably on a different page or loads via JavaScript. Two quick fixes: 1. Find the right page with map:
-
curl -X POST https://api.firecrawl.dev/v2/map \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "url": "https://example-school.edu", "search": "contact" }'2. Scrape that page with waitFor so dynamic content loads:
curl -X POST https://api.firecrawl.dev/v2/scrape \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "url": "https://example-school.edu/contact", "waitFor": 3000, "formats": [{ "type": "json", "prompt": "Extract all addresses, phones, and emails on the page.", "schema": { "type": "object", "properties": { "addresses": { "type": "array", "items": { "type": "string" } }, "phones": { "type": "array", "items": { "type": "string" } }, "emails": { "type": "array", "items": { "type": "string" } } } } }] }'