★ API
API Telegram Stars: guida rapida in Node.js
Node 18+ include fetch: non servono pacchetti extra.
Consegna automaticala maggior parte degli ordini in pochi minuti
Controllo del nome utenteprima del pagamento
Prezzi pubblicigli stessi sul sito e via API
Registro pubblicoogni ordine riceve un TxId
const API = "https://paystars.uz/api/v1";
const H = { "X-API-Key": process.env.PAYSTARS_API_KEY, "Content-Type": "application/json" };
const chk = await (await fetch(`${API}/check-username`, { method: "POST", headers: H,
body: JSON.stringify({ username: "durov", kind: "stars" }) })).json();
const order = await (await fetch(`${API}/stars/buy`, { method: "POST",
headers: { ...H, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({ username: "durov", quantity: 50, verification_token: chk.verification_token }) })).json();
console.log(await (await fetch(`${API}/order/${order.order_id}`, { headers: H })).json());- Genera l'Idempotency-Key una sola volta per ordine commerciale e conservala.
- Usa currency: "USD" e max_usd per pagare dal saldo USD.
Domande frequenti
C'è un ambiente di prova?
Durante l'integrazione usa piccoli ordini reali (50 Stars); la chiave di idempotenza rende sicuri i tentativi ripetuti.
Quali linguaggi sono supportati?
Qualsiasi linguaggio con HTTPS. Vedi le guide rapide per Python, Node.js e PHP.
Le chiavi API scadono?
No. Le chiavi restano valide finché non le revochi nel pannello.
Posso pagare in USD?
Sì — ricarica il saldo USD con USDT (TON, BEP20 o TRC20) e invia currency=USD.
Related pages
Telegram Stars APIVendi Telegram Stars e Premium nel tuo bot, negozio o app.API Telegram Stars: guida rapida in PythonUn flusso minimo e sicuro per la produzione in Python con la libreria requests.API Telegram Stars: guida rapida in PHPUna funzione cURL compatta da inserire in qualsiasi progetto o bot PHP.API Fragment per Telegram Stars e Premium — 0% (sito: 5%)Fragment non ha un'API pubblica per rivendere Stars o Premium.Prezzi in USD per l'APIGestisci la tua attività Stars in dollari: un saldo USD finanziato con USDT, quotazioni in tempo reale e un tetto di preAcquista Telegram StarsInvia Stars a te stesso o a chiunque abbia un @username pubblico.
Pronto a ordinare?
Accedi con Telegram — il tuo saldo StarKerak funziona sul sito, nella WebApp e tramite l'API.
