{"id":19057224,"url":"https://github.com/tanishqmanuja/valorant-api-client","last_synced_at":"2025-04-24T05:21:14.492Z","repository":{"id":139205111,"uuid":"604125026","full_name":"tanishqmanuja/valorant-api-client","owner":"tanishqmanuja","description":"💢 VAPIC is a type safe implementation of an API Client for VALORANT.","archived":false,"fork":false,"pushed_at":"2025-02-09T10:33:45.000Z","size":993,"stargazers_count":25,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-18T13:09:53.520Z","etag":null,"topics":["api","riot","typescript","valorant"],"latest_commit_sha":null,"homepage":"","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/tanishqmanuja.png","metadata":{"files":{"readme":".github/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":"2023-02-20T11:42:52.000Z","updated_at":"2025-04-16T13:51:42.000Z","dependencies_parsed_at":"2023-06-08T10:15:40.667Z","dependency_job_id":"823b56db-d98e-4117-9c51-53b97048ca16","html_url":"https://github.com/tanishqmanuja/valorant-api-client","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishqmanuja%2Fvalorant-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishqmanuja%2Fvalorant-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishqmanuja%2Fvalorant-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishqmanuja%2Fvalorant-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanishqmanuja","download_url":"https://codeload.github.com/tanishqmanuja/valorant-api-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250567688,"owners_count":21451479,"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","riot","typescript","valorant"],"created_at":"2024-11-08T23:54:24.285Z","updated_at":"2025-04-24T05:21:14.475Z","avatar_url":"https://github.com/tanishqmanuja.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://raw.github.com/tanishqmanuja/valorant-api-client/main/assets/vapic-banner.png?maxAge=2592000)\n\n# VAPIC //VALORANT API CLIENT\n\n![NPM Version](https://img.shields.io/npm/v/%40tqman%2Fvalorant-api-client?style=for-the-badge\u0026color=%23ff6961)\n![NPM Downloads](https://img.shields.io/npm/dm/%40tqman%2Fvalorant-api-client?style=for-the-badge\u0026color=%23ff6961)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/tanishqmanuja/valorant-api-client/ci.yaml?branch=main\u0026style=for-the-badge\u0026color=%23ff6961)\n![GitHub License](https://img.shields.io/github/license/tanishqmanuja/valorant-api-client?style=for-the-badge\u0026color=%23ff6961)\n\nVAPIC is a type safe implementation of an api client for VALORANT. It includes functional wrapper to call all community known endpoints provided by [valorant-api-types](https://www.npmjs.com/package/valorant-api-types).\n\n## 📦 Installation\n\nInstall @tqman/valorant-api-client with npm, pnpm or yarn\n\n```sh\nnpm i @tqman/valorant-api-client@latest\n```\n\n```sh\npnpm add @tqman/valorant-api-client@latest\n```\n\n```sh\nyarn add @tqman/valorant-api-client@latest\n```\n\n## ⚡ Showcase Features\n\n- [x] Includes all community known [endpoints](https://valapidocs.techchrism.me/).\n- [x] Response parsing using zod library.\n- [x] Session Cookies Handling using tough-cookie library.\n- [x] Re-Auth using `ssid` cookie without resending username/password.\n- [x] Riot MFA using Email-Code Method\n\n## 🚀 API Clients\n\n- [Valorant API Client](../docs/valorant-api-client.md) is the recommended way!\n- [Auth API Client](../docs/auth-api-client.md)\n- [Local API Client](../docs/local-api-client.md)\n- [Remote API Client](../docs/remote-api-client.md)\n\n## 📃 Usage/Examples\n\n### 🟠 Local Authentication\n\n```typescript\nimport { createValorantApiClient } from \"@tqman/valorant-api-client\";\nimport { presets } from \"@tqman/valorant-api-client/presets\";\n\nconst vapic = await createValorantApiClient(presets.local);\n\nconst puuid = vapic.remote.puuid;\nconsole.log(\"PUUID\", puuid);\n\nconst { data: accountAlias } = await vapic.local.getAccountAlias();\nconsole.log(\"Account Alias\", accountAlias);\n\nconst { data: compUpdates } = await vapic.remote.getCompetitiveUpdates({\n  data: {\n    puuid,\n  },\n});\nconsole.log(\"Comp Updates\", compUpdates);\n```\n\n\u003e [!NOTE]\n\u003e VALORANT should be running for lockfile and logfile to be generated.\n\n### 🟣 Remote Authentication\n\n```typescript\nimport { createValorantApiClient } from \"@tqman/valorant-api-client\";\nimport { presets } from \"@tqman/valorant-api-client/presets\";\n\nconst RIOT_USERNAME = \"YOUR_USERNAME\";\nconst RIOT_PASSWORD = \"YOUR_PASSWORD\";\n\nconst vapic = await createValorantApiClient(\n  presets.remote.with({\n    username: RIOT_USERNAME,\n    password: RIOT_PASSWORD,\n  }),\n);\n\nconst puuid = vapic.remote.puuid;\nconsole.log(\"PUUID\", puuid);\n\nconst { data: compUpdates } = await vapic.remote.getCompetitiveUpdates({\n  data: {\n    puuid,\n  },\n});\nconsole.log(\"Comp Updates\", compUpdates);\n```\n\n## ❤️‍🔥 Infinite Thanks\n\n- [**@techchrism**](https://github.com/techchrism) for [valorant-api-docs](https://github.com/techchrism/valorant-api-docs)\n\n## 🌿 Show your Support\n\nGive a ⭐️ if this project helped you! \\\nIt will give me motivation for working towards this project.\n\n## ⚖️ Disclaimer\n\nTHIS PROJECT IS NOT ASSOCIATED OR ENDORSED BY RIOT GAMES. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc. Whilst effort has been made to abide by Riot's API rules; you acknowledge that use of this software is done so at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanishqmanuja%2Fvalorant-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanishqmanuja%2Fvalorant-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanishqmanuja%2Fvalorant-api-client/lists"}