{"uid":"cap_hi6aBSJeVV2n5V3IApCqa","slug":"2s-io-github-repository-language-breakdown-ad9f27a1","name":"2s.io GitHub Repository Language Breakdown","description":"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.","url":"https://2s.io/api/github/languages","method":"GET","headers":{},"bodySchema":{"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}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bOG8RH8_toY3eyUhEwquF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the programming-language composition of a GitHub repository, including byte count and percentage share for each language, sorted by size.","exampleAgentPrompt":"What programming languages make up the vercel/next.js GitHub repository, and what percentage of the code is each language?","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:09:38.140Z","isFirstParty":false}