Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
import { Firecrawl } from 'firecrawl';
// Placeholder v1 example (JavaScript)
// Mirrors the older SDK usage. Replace with your API key before running.
async function main() {
const app = new Firecrawl({ apiKey: process.env.FIRECRAWL_API_KEY || 'fc-YOUR_API_KEY' });
const scrape = await app.v1.scrapeUrl('firecrawl.dev');
if (scrape && scrape.success) console.log(scrape.markdown);
const crawl = await app.v1.crawlUrl('mendable.ai', { excludePaths: ['blog/*'], limit: 3 });
console.log(crawl);
}
main().catch((e) => {
console.error(e);
process.exit(1);
});