Game Server Query avatar
Game Server Query
Under maintenance

Pricing

Pay per event

Go to Apify Store
Game Server Query

Game Server Query

Under maintenance

Query game and voice or video chat servers.

Pricing

Pay per event

Rating

0.0

(0)

Developer

ramencode

ramencode

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

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

  1. Get the input where the game ID, host, and port are defined.
  2. Use node-gamedig to query the game server.
  3. 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:

  1. Go to Actor creation page
  2. 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.

  1. Log in to Apify. You will need to provide your Apify API Token to complete this action.

    $apify login
  2. 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

Documentation reference