The cheapest Fragment API for Telegram commerce

Fragment Stars API

The lowest-cost production API for Telegram Stars and Premium: KYC 0%, no-KYC 0.25%, backend-only wallet signing, and reliable queue status.

KYC 0% · NO-KYC 0.25% · Lowest-cost Fragment API

Production API Endpoint

https://api-fragment.duckdns.orgHTTPS · port 443
0%
KYC API commission forever
0.25%
no-KYC API commission
No token
No issued client token required
live flow
POST /api/v1/stars/buy202
{
  "username": "@client",
  "amount": 50,
  "kyc_commission": "0%"
}
01
Backend sends purchase request
02
TON wallet signs transaction
03
Stars queue or Premium flow runs
04
Final status returns to your shop
safety rail

Never expose seed or Fragment cookies in frontend code. Do not retry blindly after a transaction may have been signed or sent.

Example integration

Ready-made Telegram shop

Use the open-source Telegram bot/shop example to sell Stars and Premium through this API.

POSTStars queue
/api/v1/stars/buy
POSTPremium direct
/api/v1/premium/buy
GETRate check
/api/v1/commission/rates
Pricing policy

Commission Rates

KYC is always free. No-KYC costs only 0.25%. Both public rates can be verified before every purchase.

Verify 0% / 0.25% anytime via GET /api/v1/commission/rates

KYC Mode - Always Free
0%
0% API commission forever - user provides Fragment cookies
Non-KYC Mode
0.25%
Only 0.25% API commission — uses owner cookies
Production integration guide

A Telegram Stars API built for real shops

Fragment Stars API connects your backend, Telegram bot, marketplace, or reseller panel to the Telegram Stars and Premium purchase flow on Fragment.com. Use direct REST requests or the maintained Python SDK, check live prices before checkout, submit an order, and poll its queue status until the result is final. No issued API token is required: wallet signing and Fragment credentials stay in your own backend environment.

01

KYC mode with 0% API commission

KYC mode is designed for operators who already have valid Fragment cookies. Your backend supplies its wallet seed and Fragment session for the purchase, while the API handles recipient lookup, pricing, transaction preparation, queue processing, and final status. The API commission is permanently 0%, so you pay only the current Fragment price and blockchain costs.

02

No-KYC mode for simpler onboarding

No-KYC mode uses the service Fragment session and adds only 0.25% API commission. TON is the default payment method for backward compatibility; USDT-on-TON is available where supported. Read live commission rates immediately before creating an order instead of hard-coding pricing in your shop.

03

Queue safety and clear failures

Stars purchases return a request identifier for status polling. Treat completed and failed states as final, preserve your own idempotency key, and never resubmit blindly after signing or broadcasting may have happened. Actionable error messages distinguish invalid usernames, insufficient wallet balance, temporary Fragment connectivity, and transaction relay failures.

Four-step flow

From checkout to delivery

  1. 1.Fetch current Stars or Premium prices and public commission rates.
  2. 2.Submit a backend-only purchase request with an @username and amount.
  3. 3.Store the request_id and poll the queue endpoint without duplicate retries.
  4. 4.Mark the order complete only after the API returns a final success status.