Hey there đź‘‹ Register today, and start using this service.
Lets get started!
Using the API couldn't be simpler! Once you have authorized an Xbox LIVE Account, you can use that to get the data direct from Microsoft.
Authentication
To connect to the API we need an Authentication header. This is sent as a “Bearer Token”.
An example of this is below. Note that in the examples, this is shown as “<token>”.
If for any reason your Xbox LIVE account isn't working, and you are getting a “401: Unauthorized” with a valid API token.
Then you can refresh your logins, if the login is older than one hour. To do this, you need to send “fresh-login” in the query string.
Account Selection
If your team has a subscription that allows the use of multiple accounts, please use the “x-account” header, with the email address of the account you wish to use.
If this is a valid active account for your team, then you request will be made using this account. Otherwise you will get a “422: Unprocessable Entity” error response.
If this header is not sent, then your first active account will be used.
Rate Limiting
Example Rate limit headers (*per minute) shown below
x-ratelimit-remaining: 13
If you exceed your rate limit, you will get a “429: Too Many Requests” response, and the following additional headers telling you when you can try again.
*Please respect these headers, or your IP address will be blocked from the server for SPAM.
x-ratelimit-reset: 1701634726
Additional Headers
Example Additional Headers shown below
x-team-plan: SuperSpecialFakePlan
x-account-name: MajorNelson
x-account-email: [email protected]
Content Language
By default, the language used for the API is en-US.
To change the language of the data returned, you need to send the “Accept Language” header. This is set by default to your browsers' language in the examples.
Content Variables
In the examples anything that is shown surrounded by an angle bracket “< >” is a variable. These need to swapped out to provide the relative information for the request. An example of this is below, this is asking for a users XUID.
Available Endpoints
Profile Specific
These endpoints only work for the signed in account
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/conversations/<xuid>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/conversations/<xuid>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/conversations/<xuid>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/conversationsnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/conversations
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/conversations"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/messagesnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/messages
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/messages"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/profilenull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/profile
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/profile"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/activity-feednull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/activity-feed
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/activity-feed"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodPUTURL/api/<xuid>/add-as-friendBody—null
curl -s -X PUT \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/add-as-friend
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/add-as-friend"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodPATCHURL/api/<xuid>/add-as-favouriteBody—null
curl -s -X PATCH \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/add-as-favourite
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/add-as-favourite"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodDELETEURL/api/conversations/<xuid>Body—null
curl -s -X DELETE \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/conversations/<xuid>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/conversations/<xuid>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/followersnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/followers
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/followers"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodPOSTURL/api/activity-feedBody{ "text": "<message>" }
null
curl -s -X POST \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ --data {"text":"<message>"} \ https://xapi.us/api/activity-feed
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/activity-feed"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query({"text":"<message>"}); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/recent-playersnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/recent-players
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/recent-players"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodDELETEURL/api/<xuid>/remove-friendBody—null
curl -s -X DELETE \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/remove-friend
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/remove-friend"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodPOSTURL/api/messagesBody{ "to": [ "<xuid>" ], "message": "<message>" }
null
curl -s -X POST \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ --data {"to":["<xuid>"],"message":"<message>"} \ https://xapi.us/api/messages
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/messages"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query({"to":["<xuid>"],"message":"<message>"}); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
Profile
Use these to get profile information
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/activitynull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/activity
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/activity"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/gamercardnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/gamercard
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/gamercard"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/presencenull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/presence
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/presence"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-US
Content-Type: application/jsonMethodPOSTURL/api/presenceBody{ "users": [ "<xuid>", "<xuid>" ] }
null
curl -s -X POST \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ -H "Content-Type: application/json" \ --data {"users":["<xuid>","<xuid>"]} \ https://xapi.us/api/presence
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/presence"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", "Content-Type: application/json", ]); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query({"users":["<xuid>","<xuid>"]}); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-US
Content-Type: application/jsonMethodPOSTURL/api/profileBody{ "users": [ "<xuid>", "<xuid>" ] }
null
curl -s -X POST \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ -H "Content-Type: application/json" \ --data {"users":["<xuid>","<xuid>"]} \ https://xapi.us/api/profile
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/profile"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", "Content-Type: application/json", ]); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query({"users":["<xuid>","<xuid>"]}); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/profilenull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/profile
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/profile"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<gamertag>/profile-for-gamertagnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<gamertag>/profile-for-gamertag
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<gamertag>/profile-for-gamertag"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/title-historynull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/title-history
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/title-history"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/xbox360gamesnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/xbox360games
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/xbox360games"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/xboxonegamesnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/xboxonegames
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/xboxonegames"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
Achievements
Its all about that gamerscore!
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/titlehub-achievement-listnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/titlehub-achievement-list
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/titlehub-achievement-list"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/achievements-360/<titleId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/achievements-360/<titleId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/achievements-360/<titleId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/achievements/<titleId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/achievements/<titleId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/achievements/<titleId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/achievements-alt/<titleId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/achievements-alt/<titleId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/achievements-alt/<titleId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
Social
All social content is in this group
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/friendsnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/friends
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/friends"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/friends-playing/<titleId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/friends-playing/<titleId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/friends-playing/<titleId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/xbox-activity-feednull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/xbox-activity-feed
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/xbox-activity-feed"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
Content
Screenshots and Gameclips live here
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/alternative-game-clipsnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/alternative-game-clips
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/alternative-game-clips"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/alternative-screenshotsnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/alternative-screenshots
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/alternative-screenshots"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/game-clip-details/<gameClipId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/game-clip-details/<gameClipId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/game-clip-details/<gameClipId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/game-clips/<titleId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/game-clips/<titleId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/game-clips/<titleId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/screenshot-details/<screenshotId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/screenshot-details/<screenshotId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/screenshot-details/<screenshotId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/screenshots/<titleId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/screenshots/<titleId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/screenshots/<titleId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/game-clipsnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/game-clips
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/game-clips"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/new-game-clipsnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/new-game-clips
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/new-game-clips"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/game-clips/<titleId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/game-clips/<titleId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/game-clips/<titleId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/screenshotsnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/screenshots
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/screenshots"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/new-screenshotsnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/new-screenshots
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/new-screenshots"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/screenshots/<titleId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/screenshots/<titleId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/screenshots/<titleId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
Stats
Get your stats for games here
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/<xuid>/game-stats/<titleId>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/<xuid>/game-stats/<titleId>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/<xuid>/game-stats/<titleId>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
Marketplace
See whats available in the marketplace, and get details about a game from there
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/browse-marketplace/xbox360/<page>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/browse-marketplace/xbox360/<page>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/browse-marketplace/xbox360/<page>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/marketplace/featured-gamesnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/marketplace/featured-games
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/marketplace/featured-games"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/marketplace/games-coming-soonnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/marketplace/games-coming-soon
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/marketplace/games-coming-soon"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/marketplace/latest-gamesnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/marketplace/latest-games
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/marketplace/latest-games"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/marketplace/latest-xbox360-gamesnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/marketplace/latest-xbox360-games
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/marketplace/latest-xbox360-games"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/marketplace/deals-with-goldnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/marketplace/deals-with-gold
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/marketplace/deals-with-gold"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/marketplace/games-with-goldnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/marketplace/games-with-gold
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/marketplace/games-with-gold"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/marketplace/search/<query>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/marketplace/search/<query>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/marketplace/search/<query>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/marketplace/show/<id>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/marketplace/show/<id>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/marketplace/show/<id>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/marketplace/most-played-gamesnull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/marketplace/most-played-games
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/marketplace/most-played-games"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
Clubs
Clubs, lets be honest... Does anyone really use these?
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/clubs/details/<club_id>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/clubs/details/<club_id>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/clubs/details/<club_id>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/clubs/ownednull
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/clubs/owned
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/clubs/owned"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/clubs/joined/<xuid>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/clubs/joined/<xuid>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/clubs/joined/<xuid>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/clubs/search/name/<query>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/clubs/search/name/<query>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/clubs/search/name/<query>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/clubs/search/tags/<query>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/clubs/search/tags/<query>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/clubs/search/tags/<query>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));
-
HeadersAuthorization: Bearer <token>
Accept-Language: en-USMethodGETURL/api/clubs/search/titles/<query>null
curl -s \ -H "Authorization: Bearer <token>" \ -H "Accept-Language: en-US" \ https://xapi.us/api/clubs/search/titles/<query>
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://xapi.us/api/clubs/search/titles/<query>"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Accept-Language: en-US", ]); $response = curl_exec($ch); if (!$response) { print "Error: " . curl_error($ch) . PHP_EOL; print "Code: " . curl_errno($ch) . PHP_EOL; curl_close($ch); exit; } curl_close($ch); print_r(json_decode($response));