← Home

API Documentation

Learn how to integrate with the Comet Hub API

Getting Started

The Comet Hub API allows you to programmatically generate alt accounts, check Roblox cookies, and fetch user information. This documentation will guide you through making your first API request.

Base URL

All API requests should be sent to:

https://api.comethub.net

Available Actions

The API supports multiple actions, specified via the action header:

genalt Generate a new Roblox alt account (counts towards daily limit)

check-cookie Validate a Roblox cookie (does NOT count towards daily limit)

user-info Get detailed Roblox user information (does NOT count towards daily limit)

Authentication

API requests require authentication using a developer token provided in the request headers.

⚠️ Important

To get a developer token, please contact us in our Discord server by making a ticket. Developer tokens are only provided to approved users. (Certain use cases are paid, or require you to have a lifetime Comet Hub key)

ℹ️ Rate Limiting

The API is rate limited to 100 requests per 15 minutes per IP address.

Generate Alt Account

Create a new Roblox alt account using the Comet Hub API.

Endpoint

POST https://api.comethub.net

Headers

Header Value Description
Content-Type application/json Specifies the content type
action genalt The API action to perform
token Your developer token Your authentication token

Example Request (Python)

This example shows how to make a request using Python with the requests library:

import requests token = "YOUR_DEV_TOKEN_HERE" response = requests.post( "https://api.comethub.net", headers={ "Content-Type": "application/json", "action": "genalt", "token": token } ) print(response.json())

Example Request (JavaScript/Node.js)

This example shows how to make a request using Node.js with fetch:

const token = "YOUR_DEV_TOKEN_HERE"; fetch("https://api.comethub.net", { method: "POST", headers: { "Content-Type": "application/json", "action": "genalt", "token": token } }) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error("Error:", error));

Example Request (cURL)

Test the API directly from your command line:

curl -X POST https://api.comethub.net \ -H "Content-Type: application/json" \ -H "action: genalt" \ -H "token: YOUR_DEV_TOKEN_HERE"

💡 Try it out!

Copy the cURL command above, replace YOUR_DEV_TOKEN_HERE with your actual developer token, and run it in your terminal to test the API!

Success Response

The API will return a JSON response containing the generated account details:

{ "success": true, "username": "CoolUsername123", "password": "SecurePass456", "cookie": "_|WARNING:-DO-NOT-SHARE...", "profileUrl": "https://www.roblox.com/users/123456789/profile", "combo": "CoolUsername123:SecurePass456:_|WARNING..." }

ℹ️ Response Fields

username: The Roblox account username
password: The account password
cookie: The .ROBLOSECURITY cookie (null if invalid/unavailable)
profileUrl: Direct link to the Roblox profile (null if user lookup failed)
combo: Full account combo in format username:password:cookie

Error Responses

// No Access / Invalid Token { "success": false, "error": "You do not have access to use this!" } // Daily Limit Reached { "success": false, "error": "Daily limit reached", "dailyLimit": 50, "usedToday": 50, "resetAt": 1735689600 } // Rate Limit Exceeded { "success": false, "error": "Too many requests, please try again later." } // No Accounts Available { "success": false, "error": "No accounts available" } // Missing Headers { "success": false, "error": "Missing action header. Use: checkkey, resethwid, or genalt" }

Limits

Developer tokens have daily limits based on the limits we gave you. Limits reset at midnight EST.

Your rates/limits will be sent to you when your developer token is given to you.

HTTP Status Codes

The API returns appropriate HTTP status codes:

Status Code Description
200 Success - Alt generated successfully
400 Bad Request - Missing required headers
403 Forbidden - Invalid token or no access
429 Too Many Requests - Rate limit or daily limit exceeded
500 Internal Server Error
503 Service Unavailable - No accounts in stock

Support

Need help with the API? Have questions or found a bug?

Join our Discord server and create a ticket. Our support team is ready to assist you!