C# API for accessing OpenAlex data.
Just add package to your project
dotnet add package OpenAlexNet --prerelease
Then you can create client to OpenAlex API using following commands
var httpClient = new HttpClient();
var api = new OpenAlexApi(httpClient);
var httpClient = new HttpClient();
var api = new OpenAlexApi(httpClient);
var searchResponse = await api.SearchAuthorsAsync(authorName);
foreach (Author author in searchResponse.Results)
{
PrintAuthor(author);
}
static void PrintAuthor(Author author)
{
Console.WriteLine($"{author.Id} - {author.DisplayName} - ORCID: {author.Orcid} Last worket at: {author.LastKnownInstitution?.DisplayName} Works: {author.WorksCount}");
}
Entity | Status |
---|---|
Works | ✅ |
Authors | ✅ |
Sources | ⬜ |
Institutions | ✅ |
Concepts | ⬜ |
Publishers | ⬜ |
Funders | ✅ |