Catalog/dev-github-languages

Developer

GitHub repo language breakdown API

Converts a repo's raw GitHub language byte counts into a sorted percentage breakdown with total bytes, language count, and primary language. The raw API returns only opaque byte sizes; this normalizes them into shares an agent can rank. Answers 'what languages is owner/repo written in', 'what percent of the code is TypeScript', 'what is the primary language'.

Price$0.01per request
MethodPOST
Route/v1/dev/github-languages
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache43200s public
devgithublanguagesbreakdownstatisticsrepositorycodecomposition
API URLhttps://x402.hexl.dev/v1/dev/github-languages
Integration docs
Example request
{
  "repo": "facebook/react"
}
Example response
{
  "repo": "facebook/react",
  "totalBytes": 7960325,
  "languageCount": 6,
  "primaryLanguage": "JavaScript",
  "languages": [
    {
      "language": "JavaScript",
      "bytes": 5419008,
      "percent": 68.1
    },
    {
      "language": "TypeScript",
      "bytes": 2307149,
      "percent": 29
    },
    {
      "language": "HTML",
      "bytes": 116065,
      "percent": 1.5
    },
    {
      "language": "CSS",
      "bytes": 90513,
      "percent": 1.1
    },
    {
      "language": "CoffeeScript",
      "bytes": 18691,
      "percent": 0.2
    },
    {
      "language": "Shell",
      "bytes": 8899,
      "percent": 0.1
    }
  ]
}
Input schema
{
  "type": "object",
  "required": [
    "repo"
  ],
  "properties": {
    "repo": {
      "type": "string",
      "description": "'owner/name' or a github.com URL."
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}