# 2s.io GitLab Project Search

> 2s.io GitLab Project Search is a paid API for AI agents from 2s.io, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-14).

Search public GitLab projects by keyword, returning results ranked by star count with metadata including description, forks, URL, activity timestamp, and topics.

## Facts

- Endpoint: GET https://2s.io/api/dev/gitlab-search
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-gitlab-project-search-80ce18f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BdEhHOKCcXzsFhgceqR7Y

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-io-gitlab-project-search-80ce18f7
```

Example prompt: Search GitLab for public projects related to 'kubernetes operator', ranked by stars — show me the top 10 results with their descriptions, star counts, and URLs.

## When to prefer this

Use this endpoint when you need to discover or search public GitLab-hosted repositories specifically — complementing GitHub search (code.repo-lookup). Prefer this when the user explicitly wants GitLab projects, when you need cross-host repository discovery, or when comparing open source project popularity across both platforms.

## Known failure modes

- Empty results if no GitLab projects match the query string
- Query too short (under 2 chars) or too long (over 200 chars) returns a validation error
- GitLab API rate limiting or downtime may cause upstream errors
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Search public GitLab projects (keyless), ranked by stars. Each result: full name, path, description, star and fork counts, web URL, last-activity timestamp, and topics. Complements code.repo-lookup (GitHub) for cross-host repository discovery.

## Output

A ranked list of public GitLab projects matching the query, each with: full project name, path, description, star count, fork count, web URL, last-activity timestamp, and topic tags. Results are ordered by star count descending, up to the requested limit (max 30).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "maxLength": 200,
       "minLength": 2,
       "description": "Project search text, e.g. \"kubernetes operator\"."
      },
      "limit": {
       "type": "integer",
       "maximum": 30,
       "minimum": 1
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-gitlab-project-search-80ce18f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
