// Runnable example: Newly Registered ccTLD (JSON) (GET /v3.1/domains/newly/cctld) // Run it from the Getting Started project: replace Program.cs with this file, then `dotnet run` // Parameters for dbNewlyCctldJson (GET /v3.1/domains/newly/cctld): // - date (string, optional): yyyy-MM-dd; omit for latest // - tlds (string, optional) using System; using System.Collections.Generic; using WhoisFreaks.Api; using WhoisFreaks.Client; var config = new Configuration(); var apiKey = Environment.GetEnvironmentVariable("WHOISFREAKS_API_KEY") ?? throw new InvalidOperationException("Set the WHOISFREAKS_API_KEY environment variable"); config.AddApiKey("apiKey", apiKey); // set once, sent with every call var api = new DatabasesNewlyRegisteredApi(config); List result = api.DbNewlyCctldJson(date: new DateOnly(2026, 10, 1)); foreach (var item in result) { Console.WriteLine(item); }