logo
theme
GitLab GraphQL
FREE
By rapidapi
Updated 4 months ago
GitLab GraphQL Overview

From project planning and source code management to CI/CD and monitoring, GitLab is a complete DevOps platform, delivered as a single application.

This is a Community Listing of the GitLab GraphQL API.

provider
rating
add first rating
Followers on API
Follow this API
resourcesProvider WebsiteTerms of Service
More Details

Authenticating with GraphQL
A GraphQL request can be made as a POST request to /api/graphql with the query as the payload. You can authorize your request by generating a personal access token to use as a bearer token.

To obtain your GitLab personal access token, head over to: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html

Example Queries

Example 1

query Group {
  group(fullPath: "gitlab-org") {
    id
    name
    projects {
      nodes {
        name
      }
    }
  }
}

Get a specific project and the title of Issue #2.

query ProjectIssue {
  project(fullPath: "gitlab-org/graphql-sandbox") {
    name
    issue(iid: "2") {
      title
    }
  }
}

Pagination Example

query Test{
  project(fullPath: "gitlab-org/graphql-sandbox") {
    name
    issues(first: 2) {
      edges {
        node {
          title
        }
      }
      pageInfo {
        endCursor
        hasNextPage
      }
    }
  }
}
Have a question about this API?Ask the API Provider.
Developers who viewed GitLab GraphQL also viewed

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication