Skip to content

🧩 Fast and Secure API for Fragment (fragment.com): Purchase of Telegram Stars and Premium without KYC ⭐

License

Notifications You must be signed in to change notification settings

NightStrang6r/FragmentAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⚑️ Fragment API ⚑️

🧩 API for Fragment (fragment.com): purchase of Telegram Stars and Premium 🧩

Fragment API

Fragment API

Fragment API

πŸš€ Features

  • πŸ’Έ Purchase Telegram Stars & Premium

  • ⚑️ Works with or without KYC

  • πŸ”‚ Bypass Fragment purchase limits

  • πŸ” Full end-to-end encryption

  • 🧩 No API key or registration required

  • πŸ’™ No TON API required

  • πŸ“ˆ Multi-transaction support

  • πŸ” Simple integration

  • πŸ“ˆ Optimized for automation

  • 🧠 Developer-friendly

🌐 Documentation & Endpoints

Online documentation is available here: https://fragment-api.net

πŸ“Œ Requirements

  • βœ… TON Wallet v4r2 πŸͺ™

  • βœ… TON Wallet should be Active (send any transaction from it) πŸͺ™

  • βœ… Seed should be base64-encoded πŸ”

πŸ“Œ Requirements if you use your own Fragment account

  • βœ… Fragment account with linked TON wallet and Telegram account πŸ”—

  • βœ… KYC verification on Fragment πŸ†”

  • βœ… Export cookies from Fragment πŸͺ (as Header String using Cookie Editor extension)

  • βœ… Fragment cookies should be base64-encoded πŸ”

β˜‘οΈ Examples

✨ Purchase Telegram Stars

import requests
import base64

url = "https://api.fragment-api.net/buyStars"
headers = {
    "Content-Type": "application/json"
}

username = "@durov"  # Replace with the Telegram username
amount = 100  # Replace with the number of stars to purchase
fragment_cookies = base64.b64encode(b"your_fragment_cookies").decode("utf-8")  # Replace with Fragment cookies (Copy from Cookie Editor extension as "Header String")
seed = base64.b64encode(b"your_seed").decode("utf-8")  # Replace with TON seed

# Request payload
data = {
    "username": username,
    "amount": amount,
    "fragment_cookies": fragment_cookies,
    "seed": seed
}

try:
    # Sending POST request
    response = requests.post(url, headers=headers, json=data)

    # Handling success responses
    if response.status_code == 200:
        result = response.json()
        if result.get("success"):
            print("\nπŸŽ‰ Purchase completed successfully!")
            print(f"πŸ‘€ Username: {username}")
            print(f"✨ Stars purchased: {amount}")
        else:
            print("\n⚠️ Purchase failed.")
            print(f"❌ Reason: {result.get('message', 'Unknown error')}")

    # Handling other responses
    elif response.status_code == 400:
        print("\n⚠️ Bad Request.")
        print(f"Message: {response.json().get('message', 'Invalid request data')}")
    elif response.status_code == 422:
        print("\n⚠️ Validation Error.")
        print(f"Message: {response.json().get('message', 'Validation failed')}")
    elif response.status_code == 500:
        print("\nπŸ’₯ Server Error.")
        print(f"Message: {response.json().get('message', 'Internal server error')}")
    else:
        print("\n❓ Unexpected status code:", response.status_code)
        print("Response:", response.json())

# Handling request exceptions
except requests.RequestException as e:
    print("\n🚨 Request failed:", str(e))

▢️ Quickstart & Fees

Fees depend on your daily turnover and needs. To get more information, contact the developer: https://t.me/NightStrang6r

πŸŽ‰ Like it? Star it!

Please rate this repository by giving it a star rating in the top right corner of the GitHub page (you must be logged in to your account). Thank you ❀️

πŸ“„ License

Β© Leonid Tsaruk 2025

This repository is licensed under GNU GENERAL PUBLIC LICENSE.

About

🧩 Fast and Secure API for Fragment (fragment.com): Purchase of Telegram Stars and Premium without KYC ⭐

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published