# GitLab project API

Get GitLab Project data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, path, and retrieve structured data including numeric GitLab project identifier, display name including namespace, configured default branch name, archive status flag, and languages pct for catalog public repositories, audit repository health, and prepare follow-up queries.

Documentation: https://openany.si/gitlab/gitlab-project-api/8ed98b12-f30f-4f83-bf64-11739505d5a0/
API ID: 8ed98b12-f30f-4f83-bf64-11739505d5a0
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/gitlab/v1/project
Page update time: 2026-12-03T02:38:48.936Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:38:17.627Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## GitLab Project API

Send a GitLab project path, web URL or numeric project ID in the path query parameter. The JSON response returns project identifiers, namespace context, default branch, language percentages, license fields, open issue and merge request counts, and clone URLs, with optional raw=0, fields and fresh=1 controls.

## What You Can Build

- **Catalog public repositories**: Normalize project identifiers, namespaces, default branches and clone URLs across GitLab groups.
- **Audit repository health**: Check archive flags, last activity timestamps, open issues and open merge requests before adopting a dependency.
- **Prepare follow-up queries**: Confirm the canonical path and default branch before calling separate file, tree, issue or pipeline operations.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | Numeric GitLab project identifier |
| `name_with_namespace` | Display name including namespace |
| `default_branch` | Configured default branch name |
| `archived` | Archive status flag |
| `languages_pct` | Language share map reported for the repository |
| `license.name` | Detected repository license name |
| `open_issues` | Open issue count |
| `http_url_to_repo` | HTTPS repository clone URL |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GitLab project API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "description": "Project path (namespace/project), its gitlab.com link, or the numeric project id."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "path"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "archived": {
      "type": "null"
    },
    "avatar": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "created_at": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "default_branch": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "empty_repo": {
      "type": "null"
    },
    "forked_from": {
      "type": "null"
    },
    "forks": {
      "type": "integer"
    },
    "http_url_to_repo": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "issues_enabled": {
      "type": "boolean"
    },
    "languages_pct": {
      "type": "object",
      "properties": {
        "Haml": {
          "type": "number"
        },
        "JavaScript": {
          "type": "number"
        },
        "PLpgSQL": {
          "type": "number"
        },
        "Ruby": {
          "type": "number"
        },
        "Vue": {
          "type": "number"
        }
      }
    },
    "last_activity_at": {
      "type": "string"
    },
    "latest_release": {
      "type": "null"
    },
    "license": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "license_url": {
      "type": "string"
    },
    "merge_requests_enabled": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "name_with_namespace": {
      "type": "string"
    },
    "namespace": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "open_issues": {
      "type": "null"
    },
    "open_merge_requests": {
      "type": "integer"
    },
    "path": {
      "type": "string"
    },
    "readme_url": {
      "type": "string"
    },
    "releases_count": {
      "type": "null"
    },
    "ssh_url_to_repo": {
      "type": "string"
    },
    "stars": {
      "type": "integer"
    },
    "tags_count": {
      "type": "integer"
    },
    "topics": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "url": {
      "type": "string"
    },
    "visibility": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/gitlab/v1/project?output=json&path=gitlab-org%2Fgitlab-runner' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "archived": null,
  "avatar": "https://gitlab.com/uploads/-/system/project/avatar/278964/project_avatar.png?v=1793771990",
  "cached": false,
  "created_at": "2015-05-20T10:47:11.949Z",
  "credits_used": 1,
  "default_branch": "master",
  "description": "GitLab is the open-source DevSecOps platform that provides a complete software development lifecycle toolchain including source control, CI/…",
  "empty_repo": null,
  "forked_from": null,
  "forks": 12588,
  "http_url_to_repo": "https://gitlab.com/gitlab-org/gitlab.git",
  "id": 278964,
  "issues_enabled": true,
  "languages_pct": {
    "Haml": 0.82,
    "JavaScript": 20.55,
    "PLpgSQL": 1.99,
    "Ruby": 68.14,
    "Vue": 7.27
  },
  "last_activity_at": "2026-11-04T05:50:37.616Z",
  "latest_release": null,
  "license": {
    "key": "mit",
    "name": "MIT License",
    "url": "https://opensource.org/licenses/MIT"
  },
  "license_url": "https://gitlab.com/gitlab-org/gitlab/-/blob/master/LICENSE",
  "merge_requests_enabled": true,
  "name": "GitLab",
  "name_with_namespace": "GitLab.org / GitLab",
  "namespace": {
    "kind": "group",
    "name": "GitLab.org",
    "path": "gitlab-org",
    "url": "https://gitlab.com/groups/gitlab-org"
  },
  "open_issues": null,
  "open_merge_requests": 2462,
  "path": "gitlab-org/gitlab",
  "readme_url": "https://gitlab.com/gitlab-org/gitlab/-/blob/master/README.md",
  "releases_count": null,
  "ssh_url_to_repo": "name@example.com:gitlab-org/gitlab.git",
  "stars": 6193,
  "tags_count": 2660,
  "topics": [
    "hacktoberfest",
    "javascript",
    "… 2 more"
  ],
  "url": "https://gitlab.com/gitlab-org/gitlab",
  "visibility": "public"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What formats does the path parameter accept?
Pass a namespace/project slug such as gitlab-org/gitlab-runner, a full gitlab.com project URL, or the numeric GitLab project ID.

### Does this endpoint return repository source code or commit history?
No. It returns project-level metadata and repository links. Use the GitLab Project Tree API or GitLab Project File API to inspect files.

### How can I reduce response size?
Pass raw=0 to omit bulky raw source blocks, or pass a comma-separated fields list to request only the fields you need.

### How fresh is the returned project metadata?
Responses may be served from a 24-hour cache by default. Pass fresh=1 to skip the cache and fetch live data.

### Are CSV or NDJSON outputs supported?
No. This OpenAny product returns JSON only; omit output or set output=json, and note that records has no effect.

### How is usage billed for this operation?
Billing follows the selected implementation rules in the pricing area based on reported upstream credits; review the pricing section before calling.

## Available implementations
- apish: https://openany.si/gitlab/gitlab-project-api/8ed98b12-f30f-4f83-bf64-11739505d5a0/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
