# GitLab projects API

Search GitLab Projects via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as order_by, output, q, and retrieve structured data including numeric GitLab project identifier, project name with namespace, public project description, project star count, and project fork count to discover open-source tools, find active repositories by language, and feed repository-detail workflows.

Documentation: https://openany.si/market/apis/gitlab/gitlab-projects-api/?offering=d5bc08c6-a07f-4b62-89fa-7cfea3d9c9c5
API ID: d5bc08c6-a07f-4b62-89fa-7cfea3d9c9c5
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/gitlab/v1/projects
Page update time: 2026-12-03T02:55:00.293Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:38:49.488Z. 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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GitLab projects 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": {
        "q": {
          "type": "string",
          "description": "Search words (3+ characters)."
        },
        "topic": {
          "type": "string",
          "description": "Projects with this topic, e.g. `kubernetes`."
        },
        "language": {
          "type": "string",
          "description": "Only projects in this programming language, e.g. `Go` (with q or topic)."
        },
        "order_by": {
          "type": "string",
          "description": "Order: `star_count`, `last_activity_at`, `created_at`, `updated_at`, `name`, `path`, `id` or `similarity` (with q; default with q).",
          "enum": [
            "star_count",
            "last_activity_at",
            "created_at",
            "updated_at",
            "name",
            "path",
            "id",
            "similarity"
          ]
        },
        "sort": {
          "type": "string",
          "description": "`desc` (default) or `asc`.",
          "enum": [
            "desc",
            "asc"
          ]
        },
        "active_after": {
          "type": "string",
          "description": "Only projects active after this time (ISO 8601)."
        },
        "page": {
          "type": "integer",
          "description": "Page number (default 1)."
        },
        "limit": {
          "type": "integer",
          "description": "Results per page (default 20, max 100)."
        },
        "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."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "archived": {
                "type": "null"
              },
              "avatar": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "string"
              },
              "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"
              },
              "last_activity_at": {
                "type": "string"
              },
              "license": {
                "type": "null"
              },
              "license_url": {
                "type": "null"
              },
              "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"
              },
              "path": {
                "type": "string"
              },
              "readme_url": {
                "type": "string"
              },
              "ssh_url_to_repo": {
                "type": "string"
              },
              "stars": {
                "type": "integer"
              },
              "topics": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "url": {
                "type": "string"
              },
              "visibility": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "language": {
      "type": "null"
    },
    "next_page": {
      "type": "integer"
    },
    "order_by": {
      "type": "string"
    },
    "page": {
      "type": "integer"
    },
    "query": {
      "type": "string"
    },
    "topic": {
      "type": "null"
    },
    "total": {
      "type": "null"
    },
    "total_pages": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/gitlab/v1/projects?order_by=star_count&output=json&q=terraform' \
  -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
{
  "cached": false,
  "count": 20,
  "credits_used": 1,
  "items": [
    {
      "archived": null,
      "avatar": "https://gitlab.com/uploads/-/system/project/avatar/14292404/tanuki-blueprint.png?v=1793722568",
      "created_at": "2019-09-13T12:52:36.365Z",
      "default_branch": "main",
      "description": "The GitLab Environment Toolkit (`GET`) is a set of opinionated [Terraform](https://www.terraform.io/) and [Ansible](https://www.ansible.com/…",
      "empty_repo": null,
      "forked_from": null,
      "forks": 319,
      "http_url_to_repo": "https://gitlab.com/gitlab-org/gitlab-environment-toolkit.git",
      "id": 14292404,
      "last_activity_at": "2026-11-03T16:16:08.409Z",
      "license": null,
      "license_url": null,
      "name": "GitLab Environment Toolkit",
      "name_with_namespace": "GitLab.org / GitLab Environment Toolkit",
      "namespace": {
        "kind": "group",
        "name": "GitLab.org",
        "path": "gitlab-org",
        "url": "https://gitlab.com/groups/gitlab-org"
      },
      "open_issues": null,
      "path": "gitlab-org/gitlab-environment-toolkit",
      "readme_url": "https://gitlab.com/gitlab-org/gitlab-environment-toolkit/-/blob/main/README.md",
      "ssh_url_to_repo": "name@example.com:gitlab-org/gitlab-environment-toolkit.git",
      "stars": 276,
      "topics": [],
      "url": "https://gitlab.com/gitlab-org/gitlab-environment-toolkit",
      "visibility": "public"
    },
    {
      "archived": null,
      "avatar": null,
      "created_at": "2020-05-22T20:10:05.491Z",
      "default_branch": "master",
      "description": "Terraform images for GitLab CI",
      "empty_repo": null,
      "forked_from": null,
      "forks": 312,
      "http_url_to_repo": "https://gitlab.com/gitlab-org/terraform-images.git",
      "id": 18943607,
      "last_activity_at": "2026-10-21T04:56:03.035Z",
      "license": null,
      "license_url": null,
      "name": "Terraform Images",
      "name_with_namespace": "GitLab.org / Terraform Images",
      "namespace": {
        "kind": "group",
        "name": "GitLab.org",
        "path": "gitlab-org",
        "url": "https://gitlab.com/groups/gitlab-org"
      },
      "open_issues": null,
      "path": "gitlab-org/terraform-images",
      "readme_url": "https://gitlab.com/gitlab-org/terraform-images/-/blob/master/README.md",
      "ssh_url_to_repo": "name@example.com:gitlab-org/terraform-images.git",
      "stars": 168,
      "topics": [
        "hacktoberfest"
      ],
      "url": "https://gitlab.com/gitlab-org/terraform-images",
      "visibility": "public"
    },
    "… 18 more"
  ],
  "language": null,
  "next_page": 2,
  "order_by": "star_count",
  "page": 1,
  "query": "terraform",
  "topic": null,
  "total": null,
  "total_pages": null
}
```

## 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.

## Available implementations
- apish: https://openany.si/market/apis/gitlab/gitlab-projects-api/?offering=d5bc08c6-a07f-4b62-89fa-7cfea3d9c9c5

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