Helper functions and types for your Farming Simulator dedicated server API
npm install farming-simulator-typesExports are as follows:
- /2019 when interacting with an FS19 server
- /2022 when interacting with an FS22 server
- /2025 when interacting with an FS25 server
Additional exports will be added as new game versions release.
All types are generated manually through use of dedicated servers, as GIANTS unfortunately provides little to no detail about their REST APIs for dedicated servers.
ts
import {
DSSExtension,
type DSSResponse,
Feeds,
filterUnused
} from "farming-simulator-types/2025";const response = await fetch("https://example.com" + Feeds.dedicatedServerStats("a1b2c3d4", DSSExtension.JSON));
const json: DSSResponse = await response.json();
if (json.slots) {
for (const player of filterUnused(json.slots.players)) {
console.log(player.name + " is on the server!");
}
}
``