glab-api

Send authenticated HTTP requests to GitLab REST and GraphQL APIs.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/ProyectoG007/Skill.bat --skill glab-api-proyectog007
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-api
Source: https://github.com/ProyectoG007/Skill.bat/tree/main/scripts/05_Dev_Tools/07.%20gitlab-cli-skills-1.11.0/glab-api
Command: npx skills add https://github.com/ProyectoG007/Skill.bat --skill glab-api-proyectog007

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill allows users to interact directly with the GitLab REST and GraphQL APIs, enabling complex queries and operations that go beyond the standard glab commands.

Core Features & Use Cases

  • Direct API Calls: Make authenticated HTTP requests to any GitLab API v4 endpoint.
  • Custom Queries: Fetch data in JSON or NDJSON format for advanced analysis or integration.
  • GraphQL Support: Execute complex GraphQL queries for precise data retrieval.
  • Use Case: Retrieve a list of all merge requests across multiple projects within a specific group, filtered by author and state, and output the results as newline-delimited JSON for further processing.

Quick Start

Use the glab api command to fetch all projects within the 'my-group' namespace.

Frequently Asked Questions about glab-api

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

FAQPage Schema
How do I query the GitLab API for merge requests across multiple projects?

You can query the GitLab API by making direct authenticated HTTP requests to REST or GraphQL endpoints, allowing you to fetch merge requests across multiple projects and output the results as JSON or NDJSON.

Can I use GraphQL queries to retrieve specific GitLab repository data?

Yes, executing custom GraphQL queries is fully supported for precise GitLab data retrieval. This enables complex, filtered requests beyond standard commands, returning structured data for advanced analysis.

What is the best way to automate fetching paginated GitLab REST API responses?

Automating paginated GitLab REST API responses is handled directly by making authenticated HTTP requests that support custom queries and output formatting, ensuring comprehensive data access across large datasets.

Does GitLab API access support outputting results as newline-delimited JSON?

Yes, GitLab API access supports formatting retrieved data as newline-delimited JSON or standard JSON. This NDJSON output facilitates downstream processing and integration of merge requests or project data.

How do I override HTTP methods for custom GitLab API operations?

You can override HTTP methods by utilizing placeholder values for dynamic endpoint construction during your authenticated HTTP requests, enabling flexible operations against any GitLab API v4 endpoint.

When do I need direct GitLab API requests instead of standard CLI commands?

Direct GitLab API requests are needed when standard CLI commands are insufficient for advanced data retrieval. This approach enables complex custom queries and method overriding for operations beyond standard limitations.