Skip to main content

CounterStrikeGamesService

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

MethodsDescription
get_csgo_games_csgo_game_idGet a single Counter-Strike game by ID
get_csgo_games_csgo_game_id_eventsList events for a given Counter-Strike game
get_csgo_games_csgo_game_id_roundsList rounds in a Counter-Strike game
get_csgo_matches_match_id_or_slug_gamesList games for a given Counter-Strike match

get_csgo_games_csgo_game_id

Get a single Counter-Strike game by ID

  • HTTP Method: GET
  • Endpoint: /csgo/games/{csgo_game_id}

Parameters

NameTypeRequiredDescription
csgo_game_idintA Counter-Strike game ID

Return Type

CsgoGame

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)

result = sdk.counter_strike_games.get_csgo_games_csgo_game_id(csgo_game_id=5)

print(result)

get_csgo_games_csgo_game_id_events

List events for a given Counter-Strike game

  • HTTP Method: GET
  • Endpoint: /csgo/games/{csgo_game_id}/events

Parameters

NameTypeRequiredDescription
csgo_game_idintA Counter-Strike game ID
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
per_pageintEquivalent to page[size]

Return Type

List[CsgoEvent]

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
page=1

result = sdk.counter_strike_games.get_csgo_games_csgo_game_id_events(
csgo_game_id=10,
page=page,
per_page=50
)

print(result)

get_csgo_games_csgo_game_id_rounds

List rounds in a Counter-Strike game

  • HTTP Method: GET
  • Endpoint: /csgo/games/{csgo_game_id}/rounds

Parameters

NameTypeRequiredDescription
csgo_game_idintA Counter-Strike game ID
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
per_pageintEquivalent to page[size]

Return Type

List[CsgoFullRound]

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
page=1

result = sdk.counter_strike_games.get_csgo_games_csgo_game_id_rounds(
csgo_game_id=3,
page=page,
per_page=50
)

print(result)

get_csgo_matches_match_id_or_slug_games

List games for a given Counter-Strike match

  • HTTP Method: GET
  • Endpoint: /csgo/matches/{match_id_or_slug}/games

Parameters

NameTypeRequiredDescription
match_id_or_slugMatchIdOrSlugA match ID or slug
filterFilterOverCsgoGamesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverCsgoGamesOptions to select results within ranges
For more information on ranges, see docs.
sortList[any]Options to sort results
For more information on sorting, see docs.
searchSearchOverCsgoGamesOptions to search results
For more information on searching, see docs.
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
per_pageintEquivalent to page[size]

Return Type

List[CsgoGame]

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverCsgoGames, RangeOverCsgoGames, SearchOverCsgoGames

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
match_id_or_slug=5
filter=FilterOverCsgoGames(
begin_at=[
"ad anim ut i"
],
complete=True,
detailed_stats=False,
end_at=[
"reprehende"
],
finished=True,
forfeit=True,
id_=[
6
],
length=[
7
],
match_id=[
1
],
position=[
9
],
status=[
"finished"
]
)
range=RangeOverCsgoGames(
begin_at=[
"i"
],
complete=[
False
],
detailed_stats=[
False
],
end_at=[
"en"
],
finished=[
True
],
forfeit=[
False
],
id_=[
1
],
length=[
7
],
match_id=[
8
],
position=[
9
],
status=[
"finished"
]
)
sort=[
""
]
search=SearchOverCsgoGames(
status="finished"
)
page=1

result = sdk.counter_strike_games.get_csgo_matches_match_id_or_slug_games(
match_id_or_slug=match_id_or_slug,
filter=filter,
range=range,
sort=sort,
search=search,
page=page,
per_page=50
)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →