Overview
The Fox API is a specialized marketplace API offering exclusively Active Telegram accounts. Unlike other services that offer various account statuses, we focus only on providing high-quality, fully functional Telegram accounts that are ready for immediate use.
Our API is built for reliability and speed, with automatic 2FA disabling and a robust retry system that ensures successful account purchases every time.
Base URL: https://foxtgg.com
API Version: 2.5.0
Content-Type: application/json
Required Header: X-API-Key: YOUR_API_KEY
Account Type
Fox API specializes in one type of account only:
Why Only Active Accounts?
We believe in quality over quantity. By focusing only on Active accounts, we ensure every account you purchase is fully functional, reliable, and ready for your specific needs. No surprises, no limitations.
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 Fox API 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 Fox API in just 5 minutes. Follow these simple steps:
Step-by-Step Guide:
- Obtain your API key from the Fox API bot
- Check your balance:
GET /balance - Browse available countries:
GET /countries - Purchase an Active account:
POST /purchase - Get activation code:
POST /get-code
Code Examples
Python Example:
import requests
BASE_URL = "https://foxtgg.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 Active account (Fox API only has Active accounts)
data = {"country_code": "SA"}
response = requests.post(f"{BASE_URL}/purchase",
json=data, headers=headers)
result = response.json()
if result["success"]:
operation_id = result["operation_id"]
print(f"Active 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://foxtgg.com/balance" \
-H "X-API-Key: YOUR_API_KEY"
Purchase Account:
curl -X POST "https://foxtgg.com/purchase" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"country_code": "SA"}'
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 |
| 404 | No Active accounts available | Try different country or check back later |