CounterStrikeWeaponsService
A list of all methods in the CounterStrikeWeaponsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_csgo_weapons | List weapons |
get_csgo_weapons_csgoWeaponIdOrSlug | Get a single weapon by ID or by slug |
get_csgo_weapons
List weapons
- HTTP Method:
GET
- Endpoint:
/csgo/weapons
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverCsgoWeapons | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverCsgoWeapons | ❌ | 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 | SearchOverCsgoWeapons | ❌ | 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
CsgoWeapon[]
Example Usage Code Snippet
import {
CsgoWeaponKind,
FilterOverCsgoWeapons,
Page,
PandascoreClient,
RangeOverCsgoWeapons,
SearchOverCsgoWeapons,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const csgoWeaponKind = CsgoWeaponKind.GRENADE;
const filterOverCsgoWeapons: FilterOverCsgoWeapons = {
ammoClipMax: [4],
ammoMax: [7],
cost: [1],
id: [5],
killReward: [1],
kind: [csgoWeaponKind],
name: ['minim u'],
slug: ['_lrp8s5nb'],
};
const csgoWeaponKind1 = CsgoWeaponKind.GRENADE;
const rangeOverCsgoWeapons: RangeOverCsgoWeapons = {
ammoClipMax: [7],
ammoMax: [2],
cost: [9],
id: [10],
killReward: [8],
kind: [csgoWeaponKind1],
name: ['sed proident'],
slug: ['3'],
};
const csgoWeaponKind12 = CsgoWeaponKind.GRENADE;
const searchOverCsgoWeapons: SearchOverCsgoWeapons = {
kind: csgoWeaponKind12,
name: 'minim Excepteu',
slug: 'nq41ksr4c',
};
const page = 1;
const { data } = await pandascoreClient.counterStrikeWeapons.getCsgoWeapons({
filter: filterOverCsgoWeapons,
range: rangeOverCsgoWeapons,
sort: [[]],
search: searchOverCsgoWeapons,
page: page,
perPage: 50,
});
console.log(data);
})();
get_csgo_weapons_csgoWeaponIdOrSlug
Get a single weapon by ID or by slug
- HTTP Method:
GET
- Endpoint:
/csgo/weapons/{csgo_weapon_id_or_slug}
Parameters
Name | Type | Required | Description |
---|---|---|---|
csgoWeaponIdOrSlug | CsgoWeaponIdOrSlug | ✅ | A weapon ID or slug |
Return Type
CsgoWeapon
Example Usage Code Snippet
import { CsgoWeaponIdOrSlug, PandascoreClient } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const csgoWeaponIdOrSlug = 4;
const { data } = await pandascoreClient.counterStrikeWeapons.getCsgoWeaponsCsgoWeaponIdOrSlug();
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs