API

Our API

API endpoints

Explore the available endpoints, check their parameters and use the cURL examples to integrate them into your application.

Rust statistics

All players

Player statistics, indexed by Steam ID. Includes playtime, votes and combat statistics.

GET Response: JSON
/api/rust/stats

No parameters required.

curl -X GET "https://xopsys.ro/api/rust/stats"

Single player

Statistics for one player: playtime, votes, kills, deaths and other server data.

GET Response: JSON
/api/rust/stats?id={steamid}

Required parameter: id — Numeric Steam ID, passed in the URL.

curl -X GET "https://xopsys.ro/api/rust/stats?id={steamid}"

Blog articles

All articles

Active blog articles, indexed by ID, with titles and content in Romanian and English.

GET Response: JSON
/api/blog/posts

No parameters required.

curl -X GET "https://xopsys.ro/api/blog/posts"

Single article

One active blog article, including Romanian and English versions and its creation date.

GET Response: JSON
/api/blog/posts?id={postid}

Required parameter: id — Numeric article ID, passed in the URL.

curl -X GET "https://xopsys.ro/api/blog/posts?id={postid}"

Notifications

Subscribe to notifications

Subscribes a device to community notifications through Firebase Cloud Messaging.

POST Response: JSON
/api/firebase/subscribe

Required parameter: token — Device Firebase registration token, sent in the request body.

curl -X POST "https://xopsys.ro/api/firebase/subscribe" -H "Content-Type: application/x-www-form-urlencoded" -d "token={token}"

Unsubscribe from notifications

Stops community notifications for the device identified by its Firebase registration token.

POST Response: JSON
/api/firebase/unsubscribe

Required parameter: token — Device Firebase registration token, sent in the request body.

curl -X POST "https://xopsys.ro/api/firebase/unsubscribe" -H "Content-Type: application/x-www-form-urlencoded" -d "token={token}"

Online

0 Players

Online from

April 30, 2019

Email

contact@xopsys.ro