ValorantWeaponsService
A list of all methods in the ValorantWeaponsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_valorant_weapons | List weapons |
get_valorant_weapons_valorantWeaponId | Get a Valorant weapon by its ID |
get_valorant_weapons
List weapons
- HTTP Method:
GET
- Endpoint:
/valorant/weapons
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverValorantWeapons | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverValorantWeapons | ❌ | Options to select results within ranges For more information on ranges, see docs. |
sort | any[] | ❌ | Options to sort results For more information on sorting, see docs. |
search | SearchOverValorantWeapons | ❌ | Options to search results For more information on searching, see docs. |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
perPage | number | ❌ | Equivalent to page[size] |
Return Type
ValorantWeapon[]
Example Usage Code Snippet
import {
FilterOverValorantWeapons,
Page,
PandascoreClient,
RangeOverValorantWeapons,
SearchOverValorantWeapons,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const filterOverValorantWeapons: FilterOverValorantWeapons = {
creds: [8.36],
id: [9],
name: ['consectetu'],
videogameVersion: [],
};
const rangeOverValorantWeapons: RangeOverValorantWeapons = {
creds: [5.67],
id: [4],
name: ['amet pariatur s'],
};
const searchOverValorantWeapons: SearchOverValorantWeapons = {
name: 'Duis do',
};
const page = 1;
const { data } = await pandascoreClient.valorantWeapons.getValorantWeapons({
filter: filterOverValorantWeapons,
range: rangeOverValorantWeapons,
sort: [[]],
search: searchOverValorantWeapons,
page: page,
perPage: 50,
});
console.log(data);
})();
get_valorant_weapons_valorantWeaponId
Get a Valorant weapon by its ID
- HTTP Method:
GET
- Endpoint:
/valorant/weapons/{valorant_weapon_id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
valorantWeaponId | number | ✅ | ID of the Valorant weapon |
Return Type
ValorantWeapon
Example Usage Code Snippet
import { PandascoreClient } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const { data } = await pandascoreClient.valorantWeapons.getValorantWeaponsValorantWeaponId(10);
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs