Scrape

1
2
3
4
5
6
7
8
9
using var api = new FirecrawlApp(apiKey);

var response = await api.Scraping.ScrapeAndExtractFromUrlAsync("https://docs.firecrawl.dev/features/scrape");

Console.WriteLine($"Success: {response.Success}");

var fileInfo = new FileInfo("output.md");
await File.WriteAllTextAsync(fileInfo.FullName, response.Data.Markdown);
Console.WriteLine($"Output file: {new Uri(fileInfo.FullName).AbsoluteUri}");