Need help with GitLabApiClient?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

171 Stars 110 Forks MIT License 231 Commits 70 Opened issues


GitLab API client

Services available


Need anything else?

Contributors list


GitHub Workflow Status NuGet

GitLabApiClient is a .NET rest client for GitLab API v4.

Main features

  • Targets .NET Standard 2.0
  • Fully async
  • Thread safe.
  • Multi core paging.
  • Simple and natural to use.
  • Handles URL encoding for you

Quick start


// if you have auth token:
var client =  new GitLabClient("", "your_private_token");
// if you want to use username & password:
var client =  new GitLabClient("");
await client.LoginAsync("username", "password");

Use it

// create a new issue.
await client.Issues.CreateAsync("group/project", new CreateIssueRequest("issue title"));

// list issues for a project with specified assignee and labels. await client.Issues.GetAsync("group/project", o => o.AssigneeId = 100 && o.Labels == new[] { "test-label" });

// create a new merge request featureBranch -> master. await client.MergeRequests.CreateAsync("group/project", new CreateMergeRequest("featureBranch", "master", "Merge request title") { Labels = new[] { "bugfix" }, Description = "Implement feature" });

// get a list of projects and find each project's README. var projects = await Client.Projects.GetAsync(); foreach (var project in projects) { var file = await Client.Files.GetAsync(project, filePath: "", reference: project.DefaultBranch); var readme = file.ContentDecoded; // mad science goes here }

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.