Game Server Query
Pricing
Pay per event
Pricing
Pay per event
Rating
0.0
(0)
Developer

ramencode
Actor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Share
Game Server Query Actor
This Apify Actor allows you to query game and voice servers. It is built using the node-gamedig library.
Input
The actor takes the following input:
type: The ID of the game to query (e.g.,csgo,minecraft). See the node-gamedig documentation for a full list of supported games.host: The hostname or IP address of the server to query.port(optional): The port of the server to query. If not specified, the default port for the game will be used.
Example input:
{"type": "minecraft","host": "mc.hypixel.net"}
Output
The actor will output the server state as a JSON object to the Apify dataset. The structure of the output will vary depending on the game being queried.
Resources
How it works
- Get the input where the game ID, host, and port are defined.
- Use
node-gamedigto query the game server. - Push the server state to the dataset.
Getting started
To run the Actor, use the following command:
$apify run
Deploy to Apify
Connect Git repository to Apify
If you have created a Git repository for the project, you can easily connect to Apify:
- Go to Actor creation page
- Click on Link Git Repository button
Push project on your local machine to Apify
You can also deploy the project on your local machine to Apify without the need for the Git repository.
-
Log in to Apify. You will need to provide your Apify API Token to complete this action.
$apify login -
Deploy your Actor. This command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under Actors -> My Actors.
$apify push