glab-api

Send authenticated HTTP requests to GitLab API v4 endpoints and execute GraphQL queries.

43|5|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/vince-winkintel/gitlab-cli-skills --skill glab-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-api
Source: https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-api
Command: npx skills add https://github.com/vince-winkintel/gitlab-cli-skills --skill glab-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows users to interact directly with the GitLab REST and GraphQL APIs, enabling advanced queries and operations not covered by standard glab commands.

Core Features & Use Cases

  • Direct API Calls: Make GET, POST, and other HTTP requests to any GitLab API v4 endpoint.
  • GraphQL Queries: Execute complex GraphQL queries for precise data retrieval.
  • Pagination: Automatically fetch all pages of results for comprehensive data collection.
  • Use Case: Retrieve a list of all issues across multiple projects with specific labels and states, or update project settings via a direct API call when a standard command is insufficient.

Quick Start

Use the glab api skill to fetch the current user's username using a GraphQL query.

Frequently Asked Questions about glab-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make direct GitLab API calls for advanced data retrieval?

Direct GitLab API calls use the glab CLI to make authenticated HTTP requests to any GitLab API v4 endpoint or execute GraphQL queries, supporting pagination, custom headers, and JSON or ndjson output formats.

Can I execute GraphQL queries against the GitLab API?

Yes, you can execute GraphQL queries against the GitLab API for precise data retrieval. The skill supports running complex GraphQL queries directly through the authenticated glab CLI interface.

Do I need the glab CLI installed to interact with the GitLab REST API?

Yes, the glab CLI must be installed and authenticated to interact with the GitLab REST API. The skill relies on the glab CLI to manage authentication and make HTTP requests to API v4 endpoints.

How do I retrieve all pages of results from a GitLab API v4 endpoint?

To retrieve all pages of results from a GitLab API v4 endpoint, the skill supports automatic pagination. This allows you to fetch comprehensive data collections across multiple project issues or labels.

When should I use direct GitLab API requests instead of standard glab commands?

Use direct GitLab API requests when standard glab commands are insufficient for your use case. This is necessary for advanced queries like updating project settings via a direct API call or retrieving specific issues across multiple projects.

What output formats are supported when fetching data from the GitLab API?

Supported output formats when fetching data from the GitLab API include JSON and ndjson. You can specify these output formats while making authenticated HTTP requests or executing GraphQL queries.