glab-api

Query GitLab REST and GraphQL APIs from the CLI, returning JSON.

1|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/a-ng-d/claude-ui-color-palette --skill glab-api-a-ng-d
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-api
Source: https://github.com/a-ng-d/claude-ui-color-palette/tree/main/skills/gitlab-cli-skills/glab-api
Command: npx skills add https://github.com/a-ng-d/claude-ui-color-palette --skill glab-api-a-ng-d

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide direct access to the GitLab REST/GraphQL API from the CLI for advanced queries and data retrieval beyond existing glab commands.

Core Features & Use Cases

  • Authenticated REST and GraphQL requests to GitLab endpoints, returning JSON.
  • Flexible endpoint construction with placeholder substitution for repository metadata and environment values.
  • Support for custom outputs and pagination to retrieve complete datasets.

Quick Start

Query a GitLab REST or GraphQL endpoint and return the response in JSON.

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 from the CLI for advanced data retrieval?

You can fetch data from private GitLab instances by executing authenticated REST and GraphQL requests from the CLI. The API supports hostname overrides to connect to private servers and returns JSON.

How do I fetch data from a private GitLab instance using a CLI command?

You can fetch data from private GitLab instances by executing authenticated REST and GraphQL requests from the CLI. The API supports hostname overrides to connect to private servers and returns JSON.

Can I extract specific fields from GraphQL responses returned by the GitLab API?

Yes, you can extract specific fields from GraphQL responses by querying GitLab endpoints directly. The results are delivered in JSON format, allowing precise data extraction for automation workflows.

Does this approach support pagination for retrieving complete datasets from GitLab REST endpoints?

Yes, pagination is supported to retrieve complete datasets from GitLab REST endpoints. This ensures you can extract full data outputs when integrating GitLab data into automation workflows.

What is the best way to integrate GitLab data into automation workflows using JSON?

The best way to integrate GitLab data into automation workflows is by making direct REST or GraphQL API calls from the CLI. This provides flexible endpoint construction and returns JSON formatted results.

Do I need placeholder substitution to construct GitLab API endpoints for repository metadata?

Yes, placeholder substitution is available to construct GitLab API endpoints dynamically. This allows you to inject repository metadata and environment values into your REST or GraphQL queries.