ValorantAgentsService
A list of all methods in the ValorantAgentsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_valorant_agents | List agents |
get_valorant_agents_valorantAgentId | Get a Valorant agent by its ID |
get_valorant_agents
List agents
- HTTP Method:
GET
- Endpoint:
/valorant/agents
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverValorantAgents | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverValorantAgents | ❌ | 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 | SearchOverValorantAgents | ❌ | 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
ValorantAgent[]
Example Usage Code Snippet
import {
FilterOverValorantAgents,
Page,
PandascoreClient,
RangeOverValorantAgents,
SearchOverValorantAgents,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const filterOverValorantAgents: FilterOverValorantAgents = {
id: [4],
name: ['quiame'],
videogameVersion: [],
};
const rangeOverValorantAgents: RangeOverValorantAgents = {
id: [8],
name: ['voluptate '],
};
const searchOverValorantAgents: SearchOverValorantAgents = {
name: 'nisiexerc',
};
const page = 1;
const { data } = await pandascoreClient.valorantAgents.getValorantAgents({
filter: filterOverValorantAgents,
range: rangeOverValorantAgents,
sort: [[]],
search: searchOverValorantAgents,
page: page,
perPage: 50,
});
console.log(data);
})();
get_valorant_agents_valorantAgentId
Get a Valorant agent by its ID
- HTTP Method:
GET
- Endpoint:
/valorant/agents/{valorant_agent_id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
valorantAgentId | number | ✅ | ID of the Valorant agent |
Return Type
ValorantAgent
Example Usage Code Snippet
import { PandascoreClient } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const { data } = await pandascoreClient.valorantAgents.getValorantAgentsValorantAgentId(8);
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs