# 2s.io GitHub Repository Language Breakdown

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

Returns the programming-language composition of a GitHub repository, including byte count and percentage share for each language, sorted by size.

## Facts

- Endpoint: GET https://2s.io/api/github/languages
- Price: $0.0025/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-github-repository-language-breakdown-ad9f27a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hi6aBSJeVV2n5V3IApCqa

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-language-breakdown-ad9f27a1
```

Example prompt: What programming languages make up the vercel/next.js GitHub repository, and what percentage of the code is each language?

## When to prefer this

Use this endpoint when you need a quick, structured, pay-per-call breakdown of programming languages in any public GitHub repository without setting up GitHub API credentials. Ideal for agents doing tech-stack discovery, repository analysis, or developer tooling workflows.

## Known failure modes

- Repository not found (invalid owner or repo name returns 404 or empty result)
- Repository is empty or has no detectable language content
- Rate limiting or upstream GitHub API unavailability
- Malformed query parameters (missing owner or repo) returns validation error

## How this service works

Programming-language breakdown of a repository: each language with its byte count and percentage of the codebase, sorted by size. Read-only; no caller key needed.

## Output

A list of programming languages used in the specified GitHub repository, each with its total byte count and percentage share of the overall codebase, sorted from largest to smallest contribution.

## 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-language-breakdown-ad9f27a1/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)
