★ Fragment Stars API

Fragment API for Telegram Stars & Premium — at a 5% fee

Fragment has no public API for reselling Stars or Premium. PayStars gives you a production REST API priced at Fragment + 5% — no TON wallet, no Toncoin exposure, no session juggling.

Automatic deliverymost orders in minutes
Username checkbefore you pay
Open pricessame on site, bot, API
Public ledgerevery order gets a TxId

Pricing: Fragment price + 5%

Every API order paid from the USD balance costs the live Fragment price plus 5%, rounded up to the cent. No hidden fees.

  • POST /api/v1/usd/quote returns the exact price up front, including "markup_percent": 5
  • Send it as max_usd — if the price moves up, nothing is charged and you get 409 price_changed
  • The price is locked when the order is placed

Example: if 100 Stars cost $1.50 on Fragment, you pay $1.575 → $1.58 after rounding.

Why not integrate Fragment yourself

  • No TON wallet or Toncoin purchases — just top up USDT
  • No scraping Fragment pages or refreshing sessions — a stable HTTPS API
  • Recipients are verified first: /check-username returns a 180-second verification_token
  • Idempotency-Key makes retries safe — no double charges
  • Every completed order gets a TxId on a public ledger

Integrate in 4 steps

  1. Create an API key in the dashboard (X-API-Key header).
  2. Top up the USD balance with USDT on TON or BEP20 (from 1 USDT).
  3. /check-username → /usd/quote → /stars/buy or /premium/buy with currency: "USD" and max_usd.
  4. Track status with GET /order/{id}.

Who it's for

Telegram bot and mini app builders, online shops and resellers selling Stars and Premium to their own customers. Rate limit: 3 requests per second per key.

Frequently asked questions

Is this the official Fragment API?

No. PayStars is an independent service: orders are fulfilled through Telegram's official Fragment flow and you integrate with our API.

What is the fee?

For API orders paid from the USD balance: Fragment price + 5%, rounded up to the cent.

Do I need a TON wallet?

No. Top up USDT on TON or BEP20; we handle Toncoin.

Do you accept USDT TRC20 (TRON)?

Not at the moment — only USDT on TON and BEP20 (BNB Smart Chain).

Can I sell Premium via the API?

Yes: POST /api/v1/premium/buy with months 3, 6 or 12.

Ready to order?

Sign in with Telegram — your StarKerak balance works on the site, in the WebApp and through the API.