HowLongToBeat 1.0.2

.NET Standard 2.1
There is a newer version of this package available.
See the version list below for details.
dotnet add package HowLongToBeat --version 1.0.2
NuGet\Install-Package HowLongToBeat -Version 1.0.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="HowLongToBeat" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HowLongToBeat --version 1.0.2
#r "nuget: HowLongToBeat, 1.0.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 HowLongToBeat as a Cake Addin
#addin nuget:?package=HowLongToBeat&version=1.0.2

// Install HowLongToBeat as a Cake Tool
#tool nuget:?package=HowLongToBeat&version=1.0.2

HowLongToBeat Wrapper

About & Credits

How long to beat provides information and data about games and how long it will take to finish them. It's a great website which relies heavily from community data.

This package is a simple wrapper api to fetch data from How long to beat (search and detail). Please use this responsibly.



Install the library using nuget package manager (search for HowLongToBeat) or using Package Manager Console

Install-Package HowLongToBeat

Install the library using .NET CLI

dotnet add package HowLongToBeat
Sample Code
  • Import namespace
using HowLongToBeat;
  • Instantiate the HLTBWebScraper object and use the Search() method
    • Note: it depends on a HttpClient instance
var httpClient = new HttpClient();
var ws = new HLTBWebScraper(httpClient);

var query = "Halo";
var result = await ws.Search(query);
Example Result
    "title": "Halo Infinite",
    "imgURL": "",
    "main": "10½ Hours",
    "mainAndExtras": "17½ Hours",
    "completionist": "25 Hours"
    "title": "Halo: The Master Chief Collection",
    "imgURL": "",
    "main": "",
    "mainAndExtras": "",
    "completionist": ""
    "title": "Halo 3",
    "imgURL": "",
    "main": "8 Hours",
    "mainAndExtras": "11½ Hours",
    "completionist": "18½ Hours"
    "title": "Halo: Combat Evolved",
    "imgURL": "",
    "main": "10 Hours",
    "mainAndExtras": "11 Hours",
    "completionist": "13 Hours"
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.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)
Additional computed target framework(s)
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
1.0.3 398 7/26/2022
1.0.2 455 1/9/2022
1.0.1 438 1/9/2022
1.0.0 430 1/7/2022