Fragment API for Telegram Stars & Premium
A production-ready API on top of Fragment.com — automate Stars, Premium, and NFT gift purchases.
Building directly on Fragment.com means handling TON wallets, signing, and delivery yourself. TGTools does that for you and exposes a simple Fragment API instead. Sign up for free — no KYC required — generate an API key, and start sending orders in minutes. POST to buy Telegram Stars or gift Premium through Fragment with instant delivery, or auto-buy Telegram gift NFTs from the marketplace. You get predictable JSON responses, wallet and price endpoints, and a dashboard to watch every transaction — without maintaining any blockchain plumbing.
How to get a Fragment API key in Telegram
Open @ifragmentapibot and tap Start or send /start. Getting a key is free and requires no identity verification (KYC) or subscription. Add funds to your TGTools wallet before placing paid orders.
API endpoints preview
Free API key · No KYCNo identity verification required — sign up, generate an API key, and start sending orders in minutes.
API access is free. You only pay for Stars, Premium, or NFT purchases from your TON wallet balance.
Authenticate with X-Api-Key: tgt_… or Authorization: Bearer tgt_…
Base URL: https://api.tg-tools.shopTelegram Stars & Premium (Fragment)
- POST
/api/purchase/starsBuy Telegram Stars for any username — instant Fragment delivery.
- POST
/api/purchase/premiumGift Telegram Premium (3, 6, or 12 months) programmatically.
- GET
/api/purchase/pricesPublicLive Stars & Premium prices in TON.
- GET
/api/purchase/user/{username}Look up a Telegram user before placing an order.
NFT gifts & marketplace
- POST
/api/marketplace/buy/autoAuto-buy a Telegram gift NFT and deliver to a TON wallet.
- GET
/api/marketplace/collectionsBrowse gift NFT collections, supply, and floor prices.
- GET
/api/marketplace/nft?address=…Fetch NFT details, sale status, and pricing.
- GET
/api/marketplace/quote?address=…Get a buy quote with fees before purchase.
Wallet & orders
- GET
/api/walletCheck TON balance and deposit address.
- GET
/api/transactionList Stars, Premium, and NFT order history.
- GET
/api/marketplace/orders/{id}Track NFT buy order status.
Why build with TGTools
- Free API key — no KYC to get started
- Buy Stars & Premium via Fragment instantly
- Auto-buy Telegram gift NFTs by API
- Wallet, history, prices & order tracking
Platform features
- POST /api/purchase/stars — buy Telegram Stars for any username
- POST /api/purchase/premium — gift Premium (3, 6, or 12 months)
- POST /api/marketplace/buy/auto — purchase NFT gifts and deliver to a TON wallet
- GET /api/purchase/prices — public live price list (no auth required)
How it works
- 1
Get your API key
Create an account and generate an API key from your dashboard.
- 2
Integrate
Call our REST API — or use the panel — to buy Stars and Premium.
- 3
Monitor
Track every order, wallet balance and history in real time.
Frequently asked questions
What is the Fragment API?
A REST wrapper over Fragment.com that lets you buy Stars, gift Premium, and purchase NFT gifts programmatically — without building TON infrastructure.
Is KYC required?
No. TGTools does not require identity verification. Create a free account, generate an API key, deposit TON, and start ordering.
Is the API free?
Yes — API access is free. You only pay for Stars, Premium, or NFT purchases from your TGTools wallet balance.
Can I buy NFT gifts via API?
Yes. Use GET /api/marketplace/collections and /api/marketplace/quote, then POST /api/marketplace/buy/auto to purchase and deliver a gift NFT.
Do I need my own TON wallet?
No. Fund your TGTools wallet with TON and the API handles Fragment delivery and NFT purchases for you.
Where are the docs?
Full API documentation with curl examples is at /api-docs.
Ready to get started?
Sign up in seconds. No hidden fees. Instant delivery.
