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_csgo_weapon_id_or_slug | 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 | List[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 |
per_page | int | ❌ | Equivalent to page[size] |
Return Type
List[CsgoWeapon]
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverCsgoWeapons, RangeOverCsgoWeapons, SearchOverCsgoWeapons
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverCsgoWeapons(
ammo_clip_max=[
4
],
ammo_max=[
7
],
cost=[
1
],
id_=[
5
],
kill_reward=[
1
],
kind=[
"grenade"
],
name=[
"minim u"
],
slug=[
"_lrp8s5nb"
]
)
range=RangeOverCsgoWeapons(
ammo_clip_max=[
7
],
ammo_max=[
2
],
cost=[
9
],
id_=[
10
],
kill_reward=[
8
],
kind=[
"grenade"
],
name=[
"sed proident"
],
slug=[
"3"
]
)
sort=[
""
]
search=SearchOverCsgoWeapons(
kind="grenade",
name="minim Excepteu",
slug="nq41ksr4c"
)
page=1
result = sdk.counter_strike_weapons.get_csgo_weapons(
filter=filter,
range=range,
sort=sort,
search=search,
page=page,
per_page=50
)
print(result)
get_csgo_weapons_csgo_weapon_id_or_slug
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 |
---|---|---|---|
csgo_weapon_id_or_slug | CsgoWeaponIdOrSlug | ✅ | A weapon ID or slug |
Return Type
CsgoWeapon
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
csgo_weapon_id_or_slug=4
result = sdk.counter_strike_weapons.get_csgo_weapons_csgo_weapon_id_or_slug(csgo_weapon_id_or_slug=csgo_weapon_id_or_slug)
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs