A .NET Client for the UK Partliament's API at https://explore.data.parliament.uk/.
You can install it using the following .NET CLI command:
dotnet add package MikaelDui.UnitedKingdom.Parliament.Client --version *
Write the titles of the 20 latest commons division in the console.
using ParliamentClient client = new();
var result = await client.Commons.Divisions.GetDivisionsAsync(options =>
{
options.PageSize = 20;
options.Sort.Add("-date");
});
foreach (var division in result.Items)
Console.WriteLine(division.Title);