farming-simulator-types
v3.0.0
Published
Helper functions and types for your Farming Simulator dedicated server API
Maintainers
Readme
farming-simulator-types
A package with helper functions and types for interacting with your Farming Simulator dedicated server.
Exports are as follows:
/2019when interacting with an FS19 server/2022when interacting with an FS22 server/2025when 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.
Example usage
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!");
}
}