{"id":21258280,"url":"https://github.com/ubc/getting-started-with-the-canvas-api-with-node","last_synced_at":"2026-02-09T10:02:57.809Z","repository":{"id":41794621,"uuid":"184630301","full_name":"ubc/getting-started-with-the-canvas-api-with-node","owner":"ubc","description":"Super easy way to get started with the Canvas API using Node.js","archived":false,"fork":false,"pushed_at":"2025-11-22T00:01:11.000Z","size":105,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-22T00:21:58.757Z","etag":null,"topics":["api","canvas","javascript","lms","node","tutorial"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ubc.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,"zenodo":null}},"created_at":"2019-05-02T18:21:02.000Z","updated_at":"2024-10-16T22:02:08.000Z","dependencies_parsed_at":"2023-02-06T12:32:08.640Z","dependency_job_id":"93aef987-2fb0-429e-96af-42e40803f143","html_url":"https://github.com/ubc/getting-started-with-the-canvas-api-with-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ubc/getting-started-with-the-canvas-api-with-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Fgetting-started-with-the-canvas-api-with-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Fgetting-started-with-the-canvas-api-with-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Fgetting-started-with-the-canvas-api-with-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Fgetting-started-with-the-canvas-api-with-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubc","download_url":"https://codeload.github.com/ubc/getting-started-with-the-canvas-api-with-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Fgetting-started-with-the-canvas-api-with-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29261651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","canvas","javascript","lms","node","tutorial"],"created_at":"2024-11-21T04:08:01.650Z","updated_at":"2026-02-09T10:02:57.791Z","avatar_url":"https://github.com/ubc.png","language":"JavaScript","readme":"# Getting Started with the Canvas API with Node.js\n\nThis script will get you started with interfacing with the Canvas API using JavaScript/Node.js\n\n## Getting Started\nThese instructions will get you a copy of the script up and running on your local machine for use with Canvas and your own API tokens. This script makes a request to the Canvas API that displays basic information about your user profile.\n\n### Prerequisites\n\n1. **Install [Node 20 or greater](https://nodejs.org)**.\n2. **Install [Git](https://git-scm.com/downloads)**.\n\n### Installation and execution\n\n*Not sure how to clone a repo? Check out this [helpful guide first!](https://codeburst.io/git-and-github-in-a-nutshell-b0a3cc06458f)*\n\n1. Open command prompt on Mac or command line on Windows.\n1. Clone this repo. `git clone https://github.com/ubccapico/getting-started-with-the-canvas-api-with-node.git`\n1. Then cd into the repo. `cd getting-started-with-the-canvas-api-with-node`\n1. Run the installation script. `npm install` (If you see `babel-node: command not found`, you've missed this step.)\n1. Generate Canvas API token and copy it to clipboard.\n1. Rename the `sample.env` file to `.env`, and add your API token to `CANVAS_API_TOKEN={ADD TOKEN HERE}`.\n1. Run the script. `node index.js`. This should log your Canvas info.\n\n### What to do from here\n\nTry running some other scripts. [This script](https://github.com/ubccapico/canvas-discussion), for example, allows you to download all of the Canvas discussions from your course.\n\nYou can also write your own code and run it! Be mindful that the API is running on the production Canvas instance - if you want to run against the Beta or Test instance, change the URL in `.env` to `https://ubc.test.instructure.com/api/v1` or `http://ubc.beta.instructure.com/api/v1` and regenerate your token(s) from the Beta/Test site. *Students do not have access to Beta or Test, sorry!*\n\n## Authors\n\n* [justin0022](https://github.com/justin0022) -\n**Justin Lee** \u0026lt;justin.lee@ubc.ca\u0026gt;\n\n## License\n\nThis project is licensed under the GPL 3 License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubc%2Fgetting-started-with-the-canvas-api-with-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubc%2Fgetting-started-with-the-canvas-api-with-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubc%2Fgetting-started-with-the-canvas-api-with-node/lists"}