{"id":15018127,"url":"https://github.com/vrchatapi/vrchatapi-javascript","last_synced_at":"2025-04-05T13:07:40.936Z","repository":{"id":47146581,"uuid":"129108499","full_name":"vrchatapi/vrchatapi-javascript","owner":"vrchatapi","description":"🟡 VRChat API Library for JavaScript and TypeScript","archived":false,"fork":false,"pushed_at":"2024-10-20T22:21:54.000Z","size":1382,"stargazers_count":43,"open_issues_count":4,"forks_count":17,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T21:10:29.017Z","etag":null,"topics":["api","javascript","nodejs","typescript","vrchat","vrchatapi"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vrchat","language":"TypeScript","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/vrchatapi.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":"2018-04-11T14:42:05.000Z","updated_at":"2024-10-21T00:24:58.000Z","dependencies_parsed_at":"2024-04-14T23:30:41.143Z","dependency_job_id":"8c779cf1-995d-45d7-b087-6d77b2d6032a","html_url":"https://github.com/vrchatapi/vrchatapi-javascript","commit_stats":{"total_commits":115,"total_committers":5,"mean_commits":23.0,"dds":0.5043478260869565,"last_synced_commit":"3c8916c7a88df6f76ffe47f58ec8a1a319ad54a5"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrchatapi%2Fvrchatapi-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrchatapi%2Fvrchatapi-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrchatapi%2Fvrchatapi-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrchatapi%2Fvrchatapi-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vrchatapi","download_url":"https://codeload.github.com/vrchatapi/vrchatapi-javascript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339158,"owners_count":20923014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","javascript","nodejs","typescript","vrchat","vrchatapi"],"created_at":"2024-09-24T19:51:28.995Z","updated_at":"2025-04-05T13:07:40.920Z","avatar_url":"https://github.com/vrchatapi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/vrchatapi/vrchatapi.github.io/blob/main/static/assets/img/lang/lang_javascript_banner_1500x300.png?raw=true)\n\n# VRChat API Library for JavaScript/TypeScript\n\nA JavaScript/TypeScript/NodeJS client to interact with the unofficial VRChat API. Supports all REST calls specified in the [API specification](https://github.com/vrchatapi/specification).\n\n## Disclaimer\n\nThis is the official response of the VRChat Team (from Tupper more specifically) on the usage of the VRChat API.\n\n\u003e Use of the API using applications other than the approved methods (website, VRChat application) are not officially supported. You may use the API for your own application, but keep these guidelines in mind:\n\u003e * We do not provide documentation or support for the API.\n\u003e * Do not make queries to the API more than once per 60 seconds.\n\u003e * Abuse of the API may result in account termination.\n\u003e * Access to API endpoints may break at any given time, with no warning.\n\nAs stated, this documentation was not created with the help of the official VRChat team. Therefore this documentation is not an official documentation of the VRChat API and may not be always up to date with the latest versions. If you find that a page or endpoint is not longer valid please create an issue and tell us so we can fix it.\n\n## Getting Started\n\nFirst add the package to to your project:\n```bash\nnpm install vrchat\n```\n\nBelow is an example on how to login to the API and fetch your own user information.\n\n```javascript\n// Step 1. We begin with creating a Configuration, which contains the username and password for authentication, as well as an options dictionary, which contains the user agent header.\nconst vrchat = require(\"vrchat\");\n\nconst configuration = new vrchat.Configuration({\n    username: \"username\",\n    password: \"password\"\n});\n\nconst options = { headers: { \"User-Agent\": \"ExampleProgram/0.0.1 my@email.com\"}};\n\n// Step 2. VRChat consists of several API's (WorldsApi, UsersApi, FilesApi, NotificationsApi, FriendsApi, etc...)\n// Here we instantiate the Authentication API which is required for logging in.\nconst AuthenticationApi = new vrchat.AuthenticationApi(configuration);\n\n// Step 3. Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in.\nAuthenticationApi.getCurrentUser(options).then(async resp =\u003e {\n    var currentUser = resp.data;\n\n    // Step 3.5. Calling email verify2fa if the account has 2FA disabled\n    if (currentUser[\"requiresTwoFactorAuth\"] \u0026\u0026 currentUser[\"requiresTwoFactorAuth\"][0] === \"emailOtp\") {\n        await AuthenticationApi.verify2FAEmailCode({ code: \"123456\" }, options)\n        currentUser = (await AuthenticationApi.getCurrentUser(options)).data;\n    }\n\n    // Step 3.5. Calling verify2fa if the account has 2FA enabled\n    if (currentUser[\"requiresTwoFactorAuth\"] \u0026\u0026 currentUser[\"requiresTwoFactorAuth\"][0] === \"totp\") {\n        await AuthenticationApi.verify2FA({ code: \"123456\" }, options)\n        currentUser = (await AuthenticationApi.getCurrentUser(options)).data;\n    }\n    \n    console.log(`Logged in as: ${currentUser.displayName}`);\n});\n```\n\nSee [example.js](https://github.com/vrchatapi/vrchatapi-javascript/blob/master/example.js) for more example usage on getting started.\n\n## Contributing\n\nContributions are welcome, but do not add features that should be handled by the OpenAPI specification.\n\nJoin the [Discord server](https://discord.gg/Ge2APMhPfD) to get in touch with us.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrchatapi%2Fvrchatapi-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvrchatapi%2Fvrchatapi-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrchatapi%2Fvrchatapi-javascript/lists"}