---
title: "Get a list of servers based on given name"
method: GET
path: "/bf1942/servers/"
tags: ["Battlefield 1942"]
---

# Get a list of servers based on given name

`GET /bf1942/servers/`

## Request

- Base URL: `https://api.gametools.network`
- URL: `https://api.gametools.network/bf1942/servers/`
- Auth: none declared

## Query parameters

- `name` string, required: IP:port or hostname/servername of the server you want to search for
- `type` 'ip' | 'hostname': Type of server property you want to search for

## Response `200`

serverlist based on given name

- OlderTitleSearch
  - `servers` OlderTitleServerList[], required
    - `prefix` string, required
    - `mode` string, required
    - `smallMode` string, required
    - `playerAmount` integer, required
    - `maxPlayers` integer, required
    - `map` string, required
    - `mapImage` string, required
    - `ip` string, required
    - `port` string, required
    - `serverLink` string, required

## Other responses

- `404`: if something went wrong getting the serverlist
- `422`: Validation Error

## Changes

- **2026-10-12** `b2afa0359da3`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2024-12-09** `50a8d1931dbd`: 1 breaking, 3 info
  - the `query` request parameter `type` was restricted to a list of enum values
  - added the new enum value `hostname` to the `query` request parameter `type`
  - added the new enum value `ip` to the `query` request parameter `type`
  - for the `query` request parameter `type`, the type was generalized from no type to `string`

[Operation history](https://skmtc.dev/gametools/apis/stats-api-for-the-battlefield-series/changes/bf1942/servers/get.md)

---

[API](https://skmtc.dev/gametools/apis/stats-api-for-the-battlefield-series.md) - [All operations](https://skmtc.dev/gametools/apis/stats-api-for-the-battlefield-series/llms.txt) - [OpenAPI document](https://skmtc.dev/gametools/apis/stats-api-for-the-battlefield-series/revisions/3d36a829b247?raw)
