Products
Every product, and the price you pay per account.
GETPOST
/api/v1/productspriceCents is the price per account in euro cents: exactly what a buy charges you right now. A key is optional. With one, a price agreed for your account or your volume discount is already in priceCents. Without one, you get list prices. listPriceCents is always the list price.
Request
curl "https://www.nfa.pub/api/v1/products?result=json" \ -H "X-Api-Key: rsk_..."Response
{ "ok": true, "count": 2, "products": [ { "id": "prime-ready", "name": "Prime Ready", "game": "CS2", "priceCents": 43, "listPriceCents": 45, "currency": "EUR", "available": 128, "inStock": true }, { "id": "rust-1000-plus-hours", "name": "Rust 1000+ Hours", "game": "Rust", "priceCents": 185, "listPriceCents": 185, "currency": "EUR", "available": null, "inStock": false } ]}Fields
idis the product id that/stock,/orderand/ordersuse. The buy endpoints take a shorttypeinstead; see Buy accounts.availableis how many we sell right now, ornullwhile stock is unknown.inStockis the yes or no.- In text (the default) you get one product per line, tab separated:
id, price in euros, available, andin_stockorout_of_stock. - A key we do not recognise is ignored, not refused, so you get list prices. If your prices look like list prices, check the key with
/me.
Errors
| Code | HTTP | Meaning |
|---|---|---|
E1002 | 429 | Too many requests. Wait for the minute to roll over and retry. See Rate limits. |
E1702 | 403 | You sent a valid key from an IP that is not on its allowlist. |
E1000 | 500 | Something went wrong on our side. Retry, and contact support if it keeps happening. |
Rate limit: 60 requests a minute per IP address.