GET api/v1/games/{id}/{type}/servers
Query servers for a specific game and product type.
i. Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | int | Yes | Game ID. |
| type | string | Yes | Product type: "currency", "items", "accounts", "powerleveling", or "topup". |
ii. Response Example
Success Response
{
"code": 10000,
"message": "Operation Successful.",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"data": [
{
"id": 9550,
"productType": "Server",
"name": "lisajones",
"seoName": "lisajones",
"parentId": 3637,
"itemSuffix": "",
"sequence": 0,
"subCategorys": [
{
"id": 9560,
"productType": "Faction",
"name": "'angelabrown'",
"seoName": "'angelabrown'",
"parentId": 9550,
"itemSuffix": "",
"sequence": 0,
"subCategorys": []
}
]
}
]
}
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | Response code. 10000 indicates success, other values indicate an error. |
| message | string | Response message. Contains error details on failure. |
| requestId | string | Unique identifier for the request, used for tracking. |
| data | array | List of servers for the specified game. |
| data[].subCategorys | array | List of sub-categories for the specified server. |
| data[].productType | string | Product type of the specified server. |
| data[].name | string | Name of the specified server. |
| data[].seoName | string | SEO name of the specified server. |
| data[].parentId | int | ID of the parent category. |
| data[].itemSuffix | string | Item suffix of the specified server. |
| data[].sequence | int | Sequence of the specified server. |
| data[].subCategorys[].productType | string | Product type of the specified category. |
| data[].subCategorys[].name | string | Name of the specified category. |
| data[].subCategorys[].seoName | string | SEO name of the specified category. |
| data[].subCategorys[].parentId | int | ID of the parent category for the specified category. |
| data[].subCategorys[].itemSuffix | string | Item suffix of the specified category. |
| data[].subCategorys[].sequence | int | Sequence for the specified category. |
iii. Error Response Example
Error Response
{
"code": 10002,
"message": "Invalid parameter.",
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}Common Error Codes
| Parameter | Type | Description |
|---|---|---|
| code | int | Error code. Common values: 10002 (Invalid parameter), 50001 (Internal server error). |
| message | string | Detailed error message explaining what went wrong. |
| requestId | string | Unique identifier for the request, used for tracking. |