https://github.com/awesome-tofu/codex-api
Codex rest API which gives output to input language
https://github.com/awesome-tofu/codex-api
List: codex-api
api nodejs rest rest-api restful-api
Last synced: about 2 months ago
JSON representation
Codex rest API which gives output to input language
- Host: GitHub
- URL: https://github.com/awesome-tofu/codex-api
- Owner: Awesome-Tofu
- Created: 2023-02-15T18:31:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T07:00:54.000Z (about 3 years ago)
- Last Synced: 2025-11-12T05:02:57.669Z (8 months ago)
- Topics: api, nodejs, rest, rest-api, restful-api
- Language: JavaScript
- Homepage: https://codex-rest.onrender.com/?language={language}&code={code}
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Codex Rest API
This API is in the form of Rest API. Original API is [here](https://github.com/Jaagrav/CodeX)
## API Reference
#### Get output
```https
GET {your host url}/?language={language}&code={code}
```
| Parameter | Type | Description |Example|
| :-------- | :------- | :------------------------- |:------------------------- |
| `language` | `string` | **Required**. |`js`|
| `code` | `string` | **Required**. |`console.log("Hello World")`|
##Example Output
```http
{
"output": "\nHello World\n",
"language": "js",
"status": 200
}
```
## Supported Languages
```json
{
"timeStamp": 1672440064864,
"status": 200,
"supportedLanguages": [
{
"language": "java",
"info": "openjdk 11.0.17 2022-10-18\nOpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu218.04)\nOpenJDK 64-Bit Server VM (build 11.0.17+8-post-Ubuntu-1ubuntu218.04, mixed mode, sharing)\n"
},
{
"language": "cpp",
"info": "g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0\nCopyright (C) 2017 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
},
{
"language": "py",
"info": "Python 3.6.9\n"
},
{
"language": "c",
"info": "gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0\nCopyright (C) 2017 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
},
{
"language": "js",
"info": "v16.13.2\n"
},
{
"language": "go",
"info": "go version go1.10.4 linux/amd64\n"
},
{
"language": "cs",
"info": "Mono C# compiler version 4.6.2.0\n"
}
]
}
```