Skip to content

An unofficial asynchronous .NET DuckDuckGo Instant Answer Web API wrapper

License

Notifications You must be signed in to change notification settings

TheMulti0/DuckSharp

Repository files navigation

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!

About

An unofficial asynchronous .NET DuckDuckGo Instant Answer Web API wrapper

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages