Scrape

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

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

Console.WriteLine($"Success: {response.Success}");
if (!string.IsNullOrWhiteSpace(response.Warning))
{
    Console.WriteLine($"Warning: {response.Warning}");
}

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