# 2s.io GitHub Repository Metadata Lookup

> 2s.io GitHub Repository Metadata Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-13).

Fetches comprehensive metadata for a GitHub repository including stars, forks, license, language, topics, and timestamps — no GitHub API key required.

## Facts

- Endpoint: GET https://2s.io/api/github/repo
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-github-repository-metadata-lookup-f7205bf0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0vyBagmWtW-58-SKiPC5_

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-github-repository-metadata-lookup-f7205bf0
```

Example prompt: Can you pull up the full metadata for the 'facebook/react' GitHub repo — stars, forks, license, language, topics, and when it was last pushed?

## When to prefer this

Use this endpoint when you need rich GitHub repository metadata without managing your own GitHub API credentials or rate limits. Ideal for agents that need to enrich data about open-source projects, check license compliance, assess project health via stars/forks/issues, or verify whether a repo is still actively maintained — all at a low per-call cost with no auth setup.

## Known failure modes

- Repository not found (invalid owner or repo name) — likely returns 404 or error response
- Rate limiting or upstream GitHub API unavailability — may return 5xx error
- Malformed query parameters (empty owner or repo string) — rejected by schema validation
- Private repositories may not be accessible — returns error or empty data

## How this service works

GitHub repository metadata: full name, owner, description, stars, forks, watchers, open issues, primary language, topics, SPDX license, default branch, homepage, archived flag, and created/updated/pushed timestamps. Read-only; no GitHub key needed by the caller.

## Output

Returns a JSON object with the repository's full name, owner, description, star count, fork count, watcher count, open issues count, primary programming language, topics array, SPDX license identifier, default branch name, homepage URL, archived boolean, and ISO timestamps for creation, last update, and last push.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "repo": "react",
   "owner": "facebook"
  }
 }
}
```

## 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": [
      "owner",
      "repo"
     ],
     "properties": {
      "repo": {
       "type": "string",
       "maxLength": 120,
       "minLength": 1
      },
      "owner": {
       "type": "string",
       "maxLength": 100,
       "minLength": 1
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-github-repository-metadata-lookup-f7205bf0/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)
