{"id":20321501,"url":"https://github.com/jagthefriend/apicode","last_synced_at":"2026-06-07T00:32:24.294Z","repository":{"id":164760520,"uuid":"366106847","full_name":"JagTheFriend/APICode","owner":"JagTheFriend","description":"Backend of Complex-API","archived":false,"fork":false,"pushed_at":"2021-07-06T06:48:21.000Z","size":2832,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T09:44:02.450Z","etag":null,"topics":["flask-api-backend","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JagTheFriend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-10T16:26:30.000Z","updated_at":"2021-08-09T15:05:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbf2aaf8-18f2-4272-b570-4ed6ad59e171","html_url":"https://github.com/JagTheFriend/APICode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JagTheFriend/APICode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FAPICode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FAPICode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FAPICode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FAPICode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JagTheFriend","download_url":"https://codeload.github.com/JagTheFriend/APICode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FAPICode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34005030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask-api-backend","python"],"created_at":"2024-11-14T19:15:30.059Z","updated_at":"2026-06-07T00:32:24.273Z","avatar_url":"https://github.com/JagTheFriend.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Code\nThis the source code for the API I have built/working on\n\nThis module makes it easy to use my [API](https://pypi.org/project/Complex-API/)\n\nCurrently, the API supports:\n  + compiling the code(of different languages) and getting the output\n  + getting a random post from a _subreddit_\n  + getting the lyrics of a song\n\n  + generating pixel art\n  + getting the weather of a place\n  + finding the length of a youtube playlist\n\n  + getting a random inspirational text\n  + getting a result of a calculation\n  + converting hexadecimal to decimal(or denary)\n  + converting decimal(or denary) to binary\n\n\n# Code snippets\nIn order to use the API,\nyou need to first download [this module (`pip install Complex-API`)](https://pypi.org/project/Complex-API/)\n\n## Compile API:\n[Example:](https://api.jagthefriend.repl.co/compile=java_class%20Compiler%7B%20public%20static%20void%20main(String[]%20args)%7B%20System.out.println(%22This%20works%22);%20%7D%20%7D)\n```py\nfrom Complex_API import complex_api\n# run python\nlang = \"python\"\ncode = '''\nprint('hello')\n'''\nprint(complex_api.compile(lang=lang, code=code))\n# run java\nlang = \"java\"\ncode = '''\nclass Compiler{\n    public static void main(String[] args){\n        System.out.println(\"This works\");\n    }\n}\n'''\nprint(complex_api.compile(lang=lang, code=code))\n```\n[Get all the supported languages here](https://API.jagthefriend.repl.co/compile=support_support)\n\n## Reddit API:\n[Example:](https://API.jagthefriend.repl.co/reddit=meme+10)\n```py\nfrom Complex_API import complex_api\n# example: name_of_subreddit = \"meme\"\nname_of_subreddit = \"name_of_a_valid_subreddit\"\nnumber_of_posts = 10 # number of posts to be returned\nprint(complex_api.reddit(limit=number_of_posts, subreddit=name_of_subreddit))\n```\n\n## Lyrics API:\n[Example:](https://API.jagthefriend.repl.co/lyrics+falling)\n```py\nfrom Complex_API import complex_api\nSongName = \"name of song\"\nprint(complex_api.lyrics(song=SongName))\n```\n\n## Ascii Art:\n[Example:](https://API.jagthefriend.repl.co/ascii_hello)\n```py\nfrom Complex_API import complex_api\ntext = \"Hello gammer\"\nprint(complex_api.ascii(text=text))\n```\n\n## Weather API:\n[Example:](https://API.jagthefriend.repl.co/temp=America+metric)\n```py\nfrom Complex_API import complex_api\n# example: place = Cape Town\nplace = \"name of a place\"\nunit = \"metric\" # or imperial\nprint(complex_api.temp(place=place, unit=unit))\n```\n\n## Youtube Playlist length finder:\n[Example:](https://API.jagthefriend.repl.co/length+PL59LTecnGM1OGgddJzY-0r8vdqibi3S2H)\n```py\nfrom Complex_API import complex_api\n# example URL: https://www.youtube.com/playlist?list=PL59LTecnGM1OGgddJzY-0r8vdqibi3S2H\n# id = PL59LTecnGM1OGgddJzY-0r8vdqibi3S2H\nplay_list_link = \"id\"\nprint(complex_api.length(playlist=play_list_link))\n```\n\n## Calculator:\n[Example:](https://API.jagthefriend.repl.co/cal_6*9+6+9)\n```py\nfrom Complex_API import complex_api\nformula = \"6*9+6+9\"\nprint(complex_api.calculator(formula=formula))\n```\n\n## Inspire API:\n[Example:](https://API.jagthefriend.repl.co/inspire)\n```py\nfrom Complex_API import complex_api\nprint(complex_api.inspire())\n```\n\n## Hexadecimal to Decimal(or Denary) converter:\n[Example:](https://API.jagthefriend.repl.co/hex+ABCDEF)\n```py\nfrom Complex_API import complex_api\nformula = \"A6B9C1D1E1\"\nprint(complex_api.hex_to_denary(hex_code=formula))\n```\n\n## Decimal(or Denary) to Binary converter:\n[Example:](https://API.jagthefriend.repl.co/binary=1969)\n```py\nfrom Complex_API import complex_api\nformula = \"45713\" # any number\nprint(complex_api.binary_to_denary(binary=formula))\n```\n\nIf you find any bugs _or have new ideas_,\n\nFeel free to raise a \u003cbr\u003e\n[new issue](https://github.com/JagTheFriend/Complex-API/issues)\n\u003cbr\u003e\nOr a \u003cbr\u003e\n[pull request](https://github.com/JagTheFriend/Complex-API/pulls)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagthefriend%2Fapicode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjagthefriend%2Fapicode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagthefriend%2Fapicode/lists"}