RepoLanguagesResponse
A repository's language breakdown, as of a named commit.
Shape
excludedExcludedBytesWhat was left out, and why.
- The ExcludedBytes schema
- documentationinteger · int64Docs, licences, changelogs.
- generatedinteger · int64Lock files, minified bundles, source maps.
- unclassifiedinteger · int64Binaries, symlinks, submodules, data and prose languages, and anything the vocabulary could not settle.
- vendoredinteger · int64Third-party code the repository carries but did not write.
itemsarray of LanguageSliceLanguages, by bytes descending then name ascending so ties are stable across reads.
- The LanguageSlice schema
- bytesinteger · int64Bytes attributed to this language. Authoritative;
shareis a convenience. - filesinteger · int64How many files contributed.
- languagestringThe language's name, as the vocabulary spells it.
- sharenumber · doublePercentage of
total_bytes, to two places. - typestring
programmingormarkup— the only two kinds that reach a breakdown. - colorstring or nulloptionalThe CSS colour upstream renders this language with, when it defines one.
- total_bytesinteger · int64Total counted bytes — the denominator of every
share. - total_filesinteger · int64Total counted files.
- truncatedbooleanWhether the tree exceeded the index cap, so this describes part of the repository.
- indexed_atstring or nulloptionalWhen that index was written.
- indexed_shastring or nulloptionalThe commit this describes.
nullwhen the repository has never been indexed.
Example
Synthesized example{
"excluded": {
"documentation": 79,
"generated": 6,
"unclassified": 48,
"vendored": 6
},
"items": [
{
"bytes": 76,
"files": 38,
"language": "language-53ba",
"share": 60,
"type": "type-dff6"
},
{
"bytes": 49,
"files": 23,
"language": "language-3833",
"share": 74,
"type": "type-6546"
}
],
"total_bytes": 6,
"total_files": 4,
"truncated": false,
"indexed_at": "2026-10-13T06:36:40Z",
"indexed_sha": "d03ef00a895ed8be6a70d3503e4e2271ac368101"
}
Graph
Used inside
No schema contains this one.
Contains
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 1 operation