Overview

What the API does, and the base URL every path starts with.

Read the catalogue and live stock, buy accounts, replace faulty ones and keep your own records in sync, straight from your own code.

Base URL
https://www.nfa.pub/api/v1

Stock is public. Products works without a key, and with one shows your own prices. Everything else needs a key, and buying spends your balance.

What you can do

  • Read the catalogue with your prices from /products, and live stock from /stock.
  • Buy with /cs2`, `/rust` or `/extra. The accounts come back in the same response, and you pay only for what was delivered.
  • Sold out? Add preorder=1 to a buy for a pre-order: paid now, filled when stock returns, cancellable until then.
  • Replace a faulty account yourself, inside the warranty. No ticket, no staff.
  • Follow up with /order, /orders and the ledger, or let webhooks tell you when an order changes.
  • Buys are limited to 30 a minute per account, shared by every key on it. Reads are limited per IP address. See Rate limits.
Overview · API reference · nfa.pub