How marvelrivalsapi/marvelrivalsapi-wrapper works
This is the official Node.js wrapper for MarvelRivalsAPI.com. A consumer imports the package, creates an API instance with an API key, calls a domain-specific endpoint method with identifiers or filters, and receives API data asynchronously. The wrapper exposes player, match, hero, and game-content capabilities through separate endpoint clients, with a shared request utility as an internal layer. The endpoint coverage and construction are visible in the API module; some endpoint implementations were not excerpted, so their request paths are not inferred.
Main entry points: api.js API client · request.js HTTP request helper · player.js Player stats v1 · playerv2.js Player stats v2
Components 21
Package Entry
- Package export
index.js - API client
lib/api.js
Player Data
- Player stats v1
lib/endpoints/player.js - Player stats v2
lib/endpoints/playerv2.js - Match details
lib/endpoints/match.js - Match history
lib/endpoints/matchhistory.js - Match history v1
lib/endpoints/matchhistoryv1.js
Game Data
- Heroes v1
lib/endpoints/heroes.js - Heroes v2
lib/endpoints/heroesv2.js - Hero lookup
lib/endpoints/hero.js - Map lookup
lib/endpoints/map.js - Maps catalog
lib/endpoints/maps.js - Items catalog
lib/endpoints/items.js
News And Progression
- Achievements
lib/endpoints/achievements.js - Balances
lib/endpoints/balances.js - Battle pass
lib/endpoints/battlepass.js - Developer diaries
lib/endpoints/devdiary.js - Patch notes
lib/endpoints/patchnotes.js
Request Layer
- HTTP request helper
lib/utils/request.js
Other components
- Library consumer
- MarvelRivalsAPI
Connections 33
- Library consumer → Package export: imports
README.md - Package export → API client: exports
index.js - Library consumer → API client: creates client
README.md - API client → Player stats v1: constructs
lib/api.js - API client → Player stats v2: constructs
lib/api.js - API client → Match details: constructs
lib/api.js - API client → Match history: constructs
lib/api.js - API client → Match history v1: constructs
lib/api.js - API client → Heroes v1: constructs
lib/api.js - API client → Heroes v2: constructs
lib/api.js - API client → Hero lookup: constructs
lib/api.js - API client → Map lookup: constructs
lib/api.js - API client → Maps catalog: constructs
lib/api.js - API client → Items catalog: constructs
lib/api.js - API client → Achievements: constructs
lib/api.js - API client → Balances: constructs
lib/api.js - API client → Battle pass: constructs
lib/api.js - API client → Developer diaries: constructs
lib/api.js - API client → Patch notes: constructs
lib/api.js - Player stats v1 → HTTP request helper: calls
lib/endpoints/player.js - Player stats v2 → HTTP request helper: calls
lib/endpoints/playerv2.js - Heroes v1 → HTTP request helper: calls
lib/endpoints/heroes.js - Heroes v2 → HTTP request helper: calls
lib/endpoints/heroesv2.js - Hero lookup → HTTP request helper: calls
lib/endpoints/hero.js - Items catalog → HTTP request helper: calls
lib/endpoints/items.js - Achievements → HTTP request helper: calls
lib/endpoints/achievements.js - Patch notes → HTTP request helper: calls
lib/endpoints/patchnotes.js - Developer diaries → HTTP request helper: calls
lib/endpoints/devdiary.js - Player stats v1 → MarvelRivalsAPI: requests data
lib/endpoints/player.js - Player stats v2 → MarvelRivalsAPI: requests data
lib/endpoints/playerv2.js - Heroes v1 → MarvelRivalsAPI: requests data
lib/endpoints/heroes.js - Heroes v2 → MarvelRivalsAPI: requests data
lib/endpoints/heroesv2.js - Hero lookup → MarvelRivalsAPI: requests data
lib/endpoints/hero.js