firecrawl-dotnet-dependencyinjection 0.1.2

dotnet add package firecrawl-dotnet-dependencyinjection --version 0.1.2                
NuGet\Install-Package firecrawl-dotnet-dependencyinjection -Version 0.1.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="firecrawl-dotnet-dependencyinjection" Version="0.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add firecrawl-dotnet-dependencyinjection --version 0.1.2                
#r "nuget: firecrawl-dotnet-dependencyinjection, 0.1.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install firecrawl-dotnet-dependencyinjection as a Cake Addin
#addin nuget:?package=firecrawl-dotnet-dependencyinjection&version=0.1.2

// Install firecrawl-dotnet-dependencyinjection as a Cake Tool
#tool nuget:?package=firecrawl-dotnet-dependencyinjection&version=0.1.2                

firecrawl-dotnet CI

A .NET library for interacting with the Firecrawl API.

Installation

Install the library via NuGet:

dotnet add package firecrawl-dotnet

Extensions

Install optional library extensions for more functionality, depending on your use case.

Dependency Injection

Integrate firecrawl-dotnet and your DI container of choice. Install the extension library via NuGet:

dotnet add package firecrawl-dotnet-dependencyinjection

Usage

  1. Obtain an API key from the Firecrawl Dashboard (requires a Firecrawl account).
  2. Pass the API key into a new instance of the FirecrawlService class or use a configured HttpClient if advanced configuration (e.g., proxies) is required.
  3. Use the methods available on FirecrawlService to interact with the Firecrawl API.

Initialization

The library can be initialized in three ways:

Basic Initialization

Pass in your API key directly:

var firecrawl = new FirecrawlService("YOUR_FIRECRAWL_API_KEY");
Advanced Initialization

Use an existing HttpClient, ensuring that BaseAddress and an Authorization header have been set:

var httpClient = new HttpClient
{
    BaseAddress = new Uri("https://api.firecrawl.dev/v1/"),
    Timeout = TimeSpan.FromSeconds(5)
};

httpClient.DefaultRequestHeaders.Authorization =
	new AuthenticationHeaderValue("Bearer", "YOUR_FIRECRAWL_API_KEY");

var firecrawl = new FirecrawlService(httpClient);
Dependency Injection

If you've installed the appropriate extension library.

  1. Register FirecrawlService with your dependency container:
services.AddFirecrawlHttpClient(options =>
{
	options.BaseUrl = new Uri("https://api.firecrawl.dev/v1/");
	options.ApiKey = "YOUR_FIRECRAWL_API_KEY";
});
  1. Inject IFirecrawlService where needed:
public class MyClass
{
    private readonly IFirecrawlService firecrawl;

    public MyClass(IFirecrawlService firecrawl)
    {
        this.firecrawl = firecrawl;
    }
}

Documentation

Refer to the Usage section above for a quick start, or consult the inline documentation while working in your IDE. For detailed information about the underlying API endpoints, parameters, and expected responses, refer to the official Firecrawl API documentation.

Contributing

Contributions are welcome! To contribute, fork the repository, create a new branch, and submit a pull request with your changes. Please make sure all tests pass before submitting.

License

This project is licensed under the MIT license. See license.txt for full details.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.2 79 11/8/2024
0.1.1 80 11/7/2024