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:

Active Accounts Only

We provide exclusively Active Telegram accounts - normal, fully functional accounts without restrictions or limitations. No spam accounts, no restricted accounts, just premium quality active accounts.

Premium Quality

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:

  1. Register on the Fox API bot
  2. Complete the verification process
  3. Generate API key from your profile settings
  4. Use it in all your API requests

API Endpoints

GET /balance

Get user balance and account information

Headers:

X-API-Key: your_api_key_here

Response:

{
    "balance": 150.50,
    "currency": "USD"
}
POST /purchase

Purchase an Active Telegram account

Note: Fox API only provides Active accounts, so no status parameter is needed.

Request Body:

{
    "country_code": "SA"
}

Response Success:

{
    "success": true,
    "phone": "+966501234567",
    "operation_id": "abc123def456",
    "price": 4.99,
    "status": "active",
    "message": "Active account reserved successfully"
}
POST /get-code

Get activation code for purchased account

Request Body:

{
    "operation_id": "abc123def456"
}

Response:

{
    "success": true,
    "phone": "+966501234567",
    "activation_code": "12345",
    "status": "active",
    "message": "Activation code retrieved"
}

Quick Start

Get started with Fox API in just 5 minutes. Follow these simple steps:

Step-by-Step Guide:

  1. Obtain your API key from the Fox API bot
  2. Check your balance: GET /balance
  3. Browse available countries: GET /countries
  4. Purchase an Active account: POST /purchase
  5. Get activation code: POST /get-code
View Code Examples

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