Overview
The WHALE TG API is a comprehensive solution for programmatically purchasing Telegram accounts. It supports three account statuses with automatic 2FA disabling and a smart retry system that ensures successful purchases.
Base URL: https://whaletg.com
API Version: 2.4.1
Content-Type: application/json
Required Header: X-API-Key: YOUR_API_KEY
Account Types
Choose from three different account statuses, each with different pricing:
Authentication
All API requests require authentication using an API key in the request header:
X-API-Key: your_api_key_here
To obtain your API key:
- Register on the WHALE TG bot
- Complete the verification process
- Generate API key from your profile settings
- Use it in all your API requests
API Endpoints
Quick Start
Get started with WHALE TG API in just 5 minutes. Follow these simple steps:
Step-by-Step Guide:
- Obtain your API key from the WHALE TG bot
- Check your balance:
GET /balance - Browse available countries:
GET /countries - Purchase an account:
POST /purchase-by-status - Get activation code:
POST /get-code
Code Examples
Python Example:
import requests
BASE_URL = " https://whaletg.com"
API_KEY = "your_api_key_here"
headers = {"X-API-Key": API_KEY}
# Check balance
response = requests.get(f"{BASE_URL}/balance", headers=headers)
balance = response.json()["balance"]
print(f"Balance: ${balance}")
# Purchase spam account
data = {"country_code": "SA", "status": "spam"}
response = requests.post(f"{BASE_URL}/purchase-by-status",
json=data, headers=headers)
result = response.json()
if result["success"]:
operation_id = result["operation_id"]
print(f"Account reserved: {result['phone']}")
# Get activation code
code_data = {"operation_id": operation_id}
response = requests.post(f"{BASE_URL}/get-code",
json=code_data, headers=headers)
code_result = response.json()
if code_result["success"]:
print(f"Activation code: {code_result['activation_code']}")
cURL Examples:
Get Balance:
curl -X GET " https://whaletg.com/balance" \
-H "X-API-Key: YOUR_API_KEY"
Error Codes
| Code | Description | Solution |
|---|---|---|
| 200 OK | Success | Operation completed successfully |
| 401 | Invalid API Key | Check your API key or get a new one |
| 403 | User not verified | Complete verification in the bot |