Skip to content

kant2002/OpenAlex.Net

Repository files navigation

OpenAlex.Net

C# API for accessing OpenAlex data.

Get started

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);

How to search for an author

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}");
}

Supported entities

Entity Status
Works
Authors
Sources
Institutions
Concepts
Publishers
Funders

About

API for accessing openalex.org

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages