Below are the available API commands you can use
Made with 💚 by zmtlabs
Endpoint: /api/get_server_info
Method: POST
Description: Retrieve basic information about a server using its invite code.
Request Body: { "invite_code": "your_invite_code" }
Response Fields:
Example Request:
curl -X POST http://zmtlabs.li/api/get_server_info -H "Content-Type: application/json" -d "{\"invite_code\": \"your_invite_code_here\"}"
Example Response:
{ "server_name": "Example Server", "server_id": "123456789012345678", "approximate_member_count": 150, "approximate_online_member_count": 25, "invite_channel": "general", "icon_url": "https://example.com/icon.png", "banner_url": "https://example.com/banner.png", "vanity_url": "https://discord.gg/example" }
Endpoint: /api/get_detailed_server_info
Method: POST
Description: Retrieve extensive information about a server using its invite code.
Request Body: { "invite_code": "your_invite_code" }
Response Fields:
Example Request:
curl -X POST http://zmtlabs.li/api/get_detailed_server_info -H "Content-Type: application/json" -d "{\"invite_code\": \"your_invite_code_here\"}"
Example Response:
{ "server_name": "Example Server", "server_id": "123456789012345678", "approximate_member_count": 150, "approximate_online_member_count": 25, "invite_channel": "general", "invite_code": "examplecode", "boost_count": 5, "server_description": "A friendly server for discussions", "nsfw_level": "safe", "afk_timeout": 300, "afk_channel_id": "987654321098765432", "system_channel_id": "987654321098765432", "server_features": ["COMMUNITY", "NEWS"], "icon_url": "https://example.com/icon.png", "banner_url": "https://example.com/banner.png", "vanity_url": "https://discord.gg/example" }
Endpoint: /api/get_user_info
Method: POST
Description: Retrieve detailed information about a user using their user ID.
Request Body: { "user_id": "user_id_here" }
Response Fields:
Example Request:
curl -X POST http://zmtlabs.li/api/get_user_info -H "Content-Type: application/json" -d "{\"user_id\": \"USER_ID_HERE\"}"
Example Response:
{ "username": "ExampleUser#1234", "user_id": "123456789012345678", "avatar": "https://example.com/avatar.png", "banner": "https://example.com/banner.png", "public_flags": ["EARLY_VERIFIED_BOT", "HYPESQUAD_ONLINE_HOUSE_1"], "bot": false, "created_at": "2021-06-01T12:34:56Z" }
Endpoint: /api/get_random_joke
Method: GET
Description: Retrieve a random joke.
Example Response:
{ "setup": "Why did the chicken cross the road?", "punchline": "To get to the other side!" }
Endpoint: /api/get_random_advice
Method: GET
Description: Retrieve random advice.
Example Request:
curl -X GET http://zmtlabs.li/api/get_random_advice
Example Response:
{ "advice": "Don't forget to take breaks!" }
Endpoint: /api/get_useless_fact
Method: GET
Description: Retrieve a random useless fact.
Example Request:
curl -X GET http://zmtlabs.li/api/get_useless_fact
Example Response:
{ "fact": "A crocodile cannot stick its tongue out." }
Endpoint: /api/generate_sha256
Method: POST
Request Body: { "text": "your_text_here" }
Example Request:
curl -X POST http://zmtlabs.li/api/generate_sha256 -H "Content-Type: application/json" -d "{\"text\": \"hello\"}"
Example Response:
{ "text": "hello", "sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824" }
Endpoint: /api/convert_unix_to_date
Method: POST
Request Body: { "timestamp": 1625598485 }
Example Request:
curl -X POST http://zmtlabs.li/api/convert_unix_to_date -H "Content-Type: application/json" -d "{\"timestamp\": \"1625598485\"}"
Example Response:
{ "timestamp": 1625598485, "date": "2021-07-06 17:28:05 UTC" }
Endpoint: /api/generate_uuid
Method: GET
Example Request:
curl -X GET http://zmtlabs.li/api/generate_uuid
Example Response:
{ "uuid": "123e4567-e89b-12d3-a456-426614174000" }
Endpoint: /api/generate_random_color
Method: GET
Description: Generates a random RGB color and hex value.
Example Request:
curl -X GET http://zmtlabs.li/api/generate_random_color
Example Response:
{ "rgb": { "red": 123, "green": 45, "blue": 67 }, "hex": "#7B2D43" }
Endpoint: /api/flip_coin
Method: GET
Description: Simulates a coin flip.
Example Request:
curl -X GET http://zmtlabs.li/api/flip_coin
Example Response:
{ "result": "Heads" }
Endpoint: /api/days_until
Method: POST
Description: Calculates the number of days until a specified date.
Request Body: { "date": "YYYY-MM-DD" }
Example Request:
curl -X POST http://zmtlabs.li/api/days_until -H "Content-Type: application/json" -d "{\"date\": \"2024-12-31\"}"
Example Response:
{ "target_date": "2024-12-31", "days_until": 365 }
Endpoint: /api/generate_random_password
Method: GET
Description: Generates a random password of specified length.
Example Request:
curl -X GET http://zmtlabs.li/api/generate_random_password
Example Response:
{ "password": "aB1!xY4%zQ" }
Endpoint: /api/roll_dice
Method: POST
Description: Simulates multiple dice rolls with a specified number of sides and dice count.
Parameters:
sides
(integer) - Number of sides on each die (default: 6)count
(integer) - Number of dice to roll (default: 1)Example Request:
curl -X POST http://zmtlabs.li/api/roll_dice -H "Content-Type: application/json" -d "{\"sides\": 6, \"count\": 3}"
Example Response:
{ "sides": 6, "count": 3, "results": [4, 2, 6], "total": 12 }
Endpoint: /api/get_time_in_timezone
Method: POST
Description: Returns the current time in the specified timezone offset.
Request Body: { "timezone_offset": 2 }
Example Request:
curl -X POST http://zmtlabs.li/api/get_time_in_timezone -H "Content-Type: application/json" -d "{\"timezone_offset\": \"2\"}"
Example Response:
{ "timezone_offset": 2, "time": "2024-01-01 12:00:00" }
Endpoint: /api/days_until_birthday
Method: POST
Description: Calculates the days remaining until the next occurrence of the specified birthday.
Request Body: { "birthday": "YYYY-MM-DD" }
Example Request:
curl -X POST http://zmtlabs.li/api/days_until_birthday -H "Content-Type: application/json" -d "{\"birthday\": \"2024-05-01\"}"
Example Response:
{ "birthday": "2024-05-01", "days_until_birthday": 150 }
Endpoint: /api/calculate_bmi
Method: POST
Description: Calculates the BMI and category based on weight and height.
Request Body: { "weight": 70, "height": 1.75 }
Example Request:
curl -X POST http://zmtlabs.li/api/calculate_bmi -H "Content-Type: application/json" -d "{\"weight\": 70, \"height\": 1.75}"
Example Response:
{ "bmi": 22.86, "category": "Normal weight" }
Endpoint: /api/fibonacci_sequence
Method: POST
Description: Generates the Fibonacci sequence up to the specified count.
Request Body: { "count": 10 }
Example Request:
curl -X POST http://zmtlabs.li/api/fibonacci_sequence -H "Content-Type: application/json" -d "{\"count\": 10}"
Example Response:
{ "fibonacci_sequence": [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] }