Counter-Strike
© Мозги рунета # Only hns_Floppytown için API
Geniş bir entegrasyon yöntemleri yelpazesi sunuyoruz. Bunlardan herhangi birini kullanabilir veya JSON API'sini kullanarak kendinizinkini oluşturabilirsiniz. Yeni bir entegrasyon yöntemi ekleme öneriniz varsa, lütfen bizimle iletişime geçin. Bizimle iletişime geçin
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/682json
{
"response": {
"steam_id": 0,
"domain": null,
"id": 682,
"ip": "46.174.53.213",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Moscow",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1773937321,
"score": null,
"last_online": 1775907620,
"icon": null,
"name": "© Мозги рунета # Only hns_Floppytown",
"connect": "46.174.53.213:27015",
"request": "46.174.53.213:27015",
"map": "hns_floppytown",
"gamemode": "[Ta6ypeT]",
"version": "1.1.2.7/Stdio",
"numplayers": 7,
"maxplayers": 21,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 44,
"add_date": 1501541130,
"last_update": 1775907620,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3031,
"language": "ru",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/682");
$data = json_decode($json, true);
var_dump($data);