CounterStrikeMapsService
A list of all methods in the CounterStrikeMapsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_csgo_maps | List maps |
get_csgo_maps_csgoMapId | Get a single map by ID or by slug |
get_csgo_maps
List maps
- HTTP Method:
GET
- Endpoint:
/csgo/maps
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverCsgoMaps | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverCsgoMaps | ❌ | 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 | SearchOverCsgoMaps | ❌ | 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
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
Name | Type | Required | Description |
---|---|---|---|
csgoMapId | number | ✅ | A 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