# GitHub Repository Language Breakdown

> GitHub Repository Language Breakdown is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns a byte-level and percentage breakdown of programming languages used in a GitHub repository, including primary language, total bytes, and language count.

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/github-languages
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-repository-language-breakdown-d333eb38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Rgii6djKVkaSFwVUT1-tZ

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 github-repository-language-breakdown-d333eb38
```

Example prompt: What languages does the facebook/react GitHub repo use? Give me the full breakdown by percentage and bytes, and tell me the primary language.

## When to prefer this

Choose this endpoint when you need fast, structured language composition data for a specific GitHub repository — particularly for tech stack detection, due diligence workflows, or tooling decisions. It is preferable to scraping GitHub's web UI or calling the GitHub API directly when you need a clean, pre-processed breakdown with percentages and a primary language field already computed, at minimal cost per call.

## Known failure modes

- Invalid or non-existent repository identifier returns an error or empty result
- Private repositories without access credentials may return unauthorized or empty data
- Rate limiting or GitHub API downtime may cause transient failures
- Repositories with no code (e.g. purely documentation repos) may return zero languages
- Malformed repo URL/identifier returns a validation error

## How this service works

Language breakdown of a GitHub repository: bytes and percentage per language sorted by share, primary language, total bytes, language count, plus repo size and default branch. Tech-stack detection for due diligence and tooling decisions. $0.01 per repo.

## Output

Returns a structured breakdown including each detected language with its byte count and percentage share of the codebase, sorted by share descending. Also includes the primary language, total bytes across all languages, language count, repository size, and default branch name.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-repository-language-breakdown-d333eb38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
