Knight Online GB Price API
Gold Bar buy and sell prices of Knight Online servers as JSON. Free, no API key needed.
- No API key needed
- Same prices as on the site
- 120 requests per minute
- Works from the browser too
Endpoint
GET
https://knightpin.com/ajax/gold-price-api.php
Parameters
| Parameter | Values | Default | Description |
|---|---|---|---|
format |
full, raw |
full |
Optional. raw returns numbers only. full also adds Turkish-formatted price strings (like 2,90). |
Sample response
JSON
{
"success": true,
"game": "ko",
"currency": "TRY",
"unit": "1M gold (1 GB = 100M)",
"price_note": "Fiyatlar 1 M içindir (1 GB = 100 M). sell_price: bizden GB alırken ödenen fiyat (indirim dahil), sell_price_list: indirimsiz satış fiyatı, buy_price: bize GB satarken ödediğimiz fiyat.",
"server_count": 8,
"generated_at": "2026-10-15T15:30:00+03:00",
"servers": [
{
"server_code": "ZERO",
"server_name": "Zero",
"sell_price": 2.9,
"sell_price_list": 2.9,
"buy_price": 2.76,
"change": 0.05,
"discount_active": false,
"discount_percent": 0,
"discount_label": null,
"updated_at": "2026-10-15 15:29:41",
"sell_price_text": "2,90",
"buy_price_text": "2,76"
},
{
"server_code": "PANDORA",
"server_name": "Pandora",
"sell_price": 2.37,
"sell_price_list": 2.37,
"buy_price": 2.2,
"change": -0.03,
"discount_active": false,
"discount_percent": 0,
"discount_label": null,
"updated_at": "2026-10-15 15:28:12",
"sell_price_text": "2,37",
"buy_price_text": "2,20"
}
]
}
Response fields
Prices are per 1M. Since 1 GB = 100M, the price of 1 GB = price × 100. Example: if sell_price is 2.90, 1 GB costs 290 TRY.
Top-level fields
| Field | Type | Description |
|---|---|---|
success |
boolean | true if the request succeeded. |
game |
string | Game code. ko = Knight Online. |
currency |
string | Currency. Always TRY. |
unit |
string | Price unit: 1M (1 GB = 100M). |
price_note |
string | Short description of the price fields (in Turkish). |
server_count |
number | Number of servers in the list. |
generated_at |
string | When the response was generated (Turkey time). |
servers |
array | Prices per server. Fields below. |
Each server in the servers list
| Field | Type | Description |
|---|---|---|
server_code |
string | Server code, e.g. ZERO. |
server_name |
string | Server name, e.g. Zero. |
sell_price |
number | Sell price: TRY paid per 1M when you buy GB from us. Discounted price if a discount is active. |
sell_price_list |
number | Sell price without discount. |
buy_price |
number | Buy price: TRY we pay per 1M when you sell GB to us. |
change |
number | Last change in the sell price (TRY). Positive when it rose, negative when it fell. |
discount_active |
boolean | true if the sell price is discounted. |
discount_percent |
number | Discount rate (%). 0 if there is no discount. |
discount_label |
string|null | Discount label. null if there is no discount. |
updated_at |
string | When the price was last updated (Turkey time). |
sell_price_text |
string | Sell price in Turkish format, e.g. 2,90. Only with format=full. |
buy_price_text |
string | Buy price in Turkish format, e.g. 2,76. Only with format=full. |
Code examples
curl "https://knightpin.com/ajax/gold-price-api.php"
fetch('https://knightpin.com/ajax/gold-price-api.php')
.then(r => r.json())
.then(data => {
data.servers.forEach(s => {
console.log(s.server_name, s.sell_price, s.buy_price);
});
});
$data = json_decode(file_get_contents('https://knightpin.com/ajax/gold-price-api.php'), true);
foreach ($data['servers'] as $s) {
echo $s['server_name'] . ': ' . $s['sell_price'] . ' / ' . $s['buy_price'] . PHP_EOL;
}
import requests
data = requests.get('https://knightpin.com/ajax/gold-price-api.php', timeout=10).json()
for s in data['servers']:
print(s['server_name'], s['sell_price'], s['buy_price'])
Usage rules
- Each IP address can make up to 120 requests per minute. Above the limit you get a 429 error. Fetching prices every 30–60 seconds is enough.
- When you show the prices on your site, bot or stream, credit knightpin.com with a link.
- Prices are for information only. The price on the site at the time of the order applies.
- On error, success is false and the message field says why.
See the prices on the site:
Knight Online GB