#linguist
2 APIs with this tag
Programming Languages API
The language definitions GitHub uses to recognise code (the open-source Linguist data) as an API — a clean reference for syntax highlighting, file-type detection, repository dashboards and developer tooling. For each of 800+ languages the API returns its type (programming, markup, data or prose), its brand colour (the hex GitHub paints it), the file extensions associated with it, common aliases, the GitHub language id and the editor (ace) mode. Look a language up by name or alias (golang resolves to Go), reverse-look-up which language(s) own a file extension (.py → Python; .h → C, C++, Objective-C), list the languages of a type, search, or list them all. Distinct from languages-api (ISO 639 human languages) — this is the programming-language reference. Served from memory — always fast.
api.oanor.com/proglang-api
Programming Languages API
A reference for 800+ programming, markup and data languages, built from the GitHub Linguist dataset. Detect which language a file extension belongs to (e.g. .rs → Rust), look up a language by name or alias, get its type, brand color, file extensions and aliases, and search or list by type. Ideal for code editors, syntax tooling, repo analyzers and language badges. (Programming languages — not spoken languages.)
api.oanor.com/proglangs-api