A free unlimited API that serves the basic hello world code in over 650 programming languages.
https://hello-world-codes-api.herokuapp.com/
- returns list of all available languages
- form of data returned: array of strings like:
["Java", "JavaScript", ... "Python", "TypeScript"]
- returns hello world program in all available languages
- form of data returned: array of objects like:
{
"language_name": "Typescript",
"extension": "ts",
"program": "console.log(\"Hello World\");\n"
}
- returns hello world program in the requested language (case insensitive)
- form of data returned: an object like:
{
"language_name": "Typescript",
"extension": "ts",
"program": "console.log(\"Hello World\");\n"
}
Pull Requests are welcome!
Can't find a language in the API? Or maybe spotted a typo? Create an issue for it!
Data sourced from this csv Kaggle dataset, cleaned and transformed into JSON using this script