Skip to main content

CounterStrikeMapsService

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

MethodsDescription
get_csgo_mapsList maps
get_csgo_maps_csgoMapIdGet a single map by ID or by slug

get_csgo_maps

List maps

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

Parameters

NameTypeRequiredDescription
filterFilterOverCsgoMapsOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverCsgoMapsOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverCsgoMapsOptions 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

CsgoMap[]

Example Usage Code Snippet

import { FilterOverCsgoMaps, Page, PandascoreClient, RangeOverCsgoMaps, SearchOverCsgoMaps } from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});

const filterOverCsgoMaps: FilterOverCsgoMaps = {
id: [1],
name: ['quiminim in de'],
slug: ['l27p'],
};

const rangeOverCsgoMaps: RangeOverCsgoMaps = {
id: [9],
name: ['cupida'],
slug: ['k-4qt'],
};

const searchOverCsgoMaps: SearchOverCsgoMaps = {
name: 'fugiat culpa',
slug: 'sw_b',
};
const page = 1;

const { data } = await pandascoreClient.counterStrikeMaps.getCsgoMaps({
filter: filterOverCsgoMaps,
range: rangeOverCsgoMaps,
sort: [[]],
search: searchOverCsgoMaps,
page: page,
perPage: 50,
});

console.log(data);
})();

get_csgo_maps_csgoMapId

Get a single map by ID or by slug

  • HTTP Method: GET
  • Endpoint: /csgo/maps/{csgo_map_id}

Parameters

NameTypeRequiredDescription
csgoMapIdnumberA map ID

Return Type

CsgoMap

Example Usage Code Snippet

import { PandascoreClient } from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});

const { data } = await pandascoreClient.counterStrikeMaps.getCsgoMapsCsgoMapId(2);

console.log(data);
})();

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →