Popularity
1.0
Growing
Activity
0.0
Declining
4
0
2

Description

This is a simple but yet powerful web API wrapper of the DuckDuckGo Instant Answer API.

Programming language: C#
Tags: API     Asynchronous     DuckDuckGo    
Latest version: v1.0.0

DuckSharp alternatives and similar packages

Based on the "API" category

Do you think we are missing an alternative of DuckSharp or a related project?

Add another 'API' Package

README

DuckSharp

https://www.nuget.org/packages/TheMulti0.DuckSharp/ NuGet Downloads Build Status

This is a simple but yet powerful web API wrapper of the DuckDuckGo Instant Answer API.

Getting Started

Requirements

DuckSharp targets .NET Standard 1.1 - so your project must be compatible with it. See Microsoft's guide on .NET Standard.

Installation

DuckSharp can be installed from NuGet. You can install it from Visual Studio's userinterface, or from the package manager console:

PM> Install-Package TheMulti0.DuckSharp

Alternatively, you can use the .NET Core CLI:

> dotnet add package TheMulti0.DuckSharp

Basic Usage

The simplest way to get an instant answer from DuckDuckGo using DuckSharp is the following (the following examples do not implement the IDisposable interface of the client, please wrap the client with a using statement when using it):

await new DuckSharpClient().GetInstantAnswerAsync("Apple");

You can also get !bang redirect urls:

await new DuckSharpClient().GetBangRedirectAsync("!youtube Kanye West - Fade");

For the full documentation, be sure to checkout this project's wiki page!

License

This project is licensed under the MIT license

Contributing

If any of you wants to contribute to this project, you can submit a pull request here, I promise that I'll review any pull request that will be submitted. Please use my .dotsettings file and preserve Microsofts C# conventions and my coding style!


*Note that all licence references and agreements mentioned in the DuckSharp README section above are relevant to that project's source code only.