Project Zomboid

Project Zomboid

Not enough ratings
JSON API [B42]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
15.500 KB
May 16 @ 11:46am
Aug 5 @ 6:53am
15 Change Notes ( view )

Subscribe to download
JSON API [B42]

In 1 collection by JAHNOOSKA
Klickalack Core
22 items
Description
JSON API
A file-based request/response API for Project Zomboid. External tools write request files, the mod processes them and writes responses.
How It Works
External tools write to Lua/jsonapi-queue.json, the mod processes them and writes responses to Lua/jsonapi-resp-<id>.json. All responses include a timestamp envelope.
Built-in Endpoints
  • sessions - Connected players with username, character name, and position
  • status - Player count and server name
  • servermsg - Send a message to all players in global chat
  • save - Trigger a world save (includes all player data)
  • additem - Give an item to a connected player (instant sync)
  • playerstats - Get survival time, zombie kills, and skill levels for a player (or all players)
Installation
  1. Subscribe to this mod
  2. Add \\jsonapi to your server Mods= line
  3. Add the Workshop ID to WorkshopItems=
  4. Restart the server
Configuration
Sandbox Options > JSON API:
  • Poll Interval - How often to check for requests (default: 2 seconds)
  • Verbose Logging - Log each request/response to console
Extensibility
Other mods can register custom handlers via JsonAPI.addHandler(). See the GitHub page for full documentation and examples.
Compatibility
  • Project Zomboid Build 42.20+
  • Dedicated servers and singleplayer
  • Includes server and client components
  • No dependencies
  • Works with or without players connected
Source Code
Source Code and Documentation[github.com]
License
Copyright (c) 2026 RoboJanus LLC. All rights reserved. You may use, copy, and distribute this mod for any purpose, including commercial use, provided that: the copyright notice is included, the mod is not modified, and the mod is not sold as a standalone product.
Support
Want to say thanks financially? Donate here[klickalack.com].
  • Workshop ID: 3727256572
  • Mod ID: jsonapi
3 Comments
May 27 @ 9:08pm 
Hehe don't worry
JAHNOOSKA  [author]
May 25 @ 8:37pm 
Helps if I make the repo public. Whoops! Thanks for letting me know.
May 23 @ 9:16pm 
github link is not working