FragmentAPI
๐งฉ Fast and Secure API for Fragment (fragment.com): Purchase of Telegram Stars and Premium without KYC โญ
Install / Use
/learn @NightStrang6r/FragmentAPIREADME
๐ 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.
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot ๅฏๅชไฝๆถๅ่ฝๅใไฝฟ็จ <qqmedia> ๆ ็ญพ๏ผ็ณป็ปๆ นๆฎๆไปถๆฉๅฑๅ่ชๅจ่ฏๅซ็ฑปๅ๏ผๅพ็/่ฏญ้ณ/่ง้ข/ๆไปถ๏ผใ
Security Score
Audited on Feb 24, 2026
