Skip to main content

CounterStrikeWeaponsService

A list of all methods in the CounterStrikeWeaponsService service. Click on the method name to view detailed information about that method.

MethodsDescription
get_csgo_weaponsList weapons
get_csgo_weapons_csgoWeaponIdOrSlugGet a single weapon by ID or by slug

get_csgo_weapons

List weapons

  • HTTP Method: GET
  • Endpoint: /csgo/weapons

Parameters

NameTypeRequiredDescription
filterFilterOverCsgoWeaponsOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverCsgoWeaponsOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverCsgoWeaponsOptions to search results
For more information on searching, see docs.
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
perPagenumberEquivalent 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

NameTypeRequiredDescription
csgoWeaponIdOrSlugCsgoWeaponIdOrSlugA 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

Start for Free →