Documentation

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>”.

Authorization: Bearer   ZicDhWt1lSIyJ4AN8rWTm8jivQJLTs42s1bQQTKG
This is an example token only.

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.

https://xapi.us/api/conversations/2533274932998651 ?fresh-login

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.

x-account: [email protected]

Rate Limiting

Example Rate limit headers (*per minute) shown below

x-ratelimit-limit: 25
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.

retry-after: 7
x-ratelimit-reset: 1732174399

Additional Headers

Example Additional Headers shown below

x-team-name: Microsoft
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.

Accept-Language: en-US

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.

/api/<xuid>/profile

Available Endpoints

Profile Specific

These endpoints only work for the signed in account

Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/conversations
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/messages
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/profile
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/activity-feed
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
PUT
URL
/api/<xuid>/add-as-friend
Body
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
PATCH
URL
/api/<xuid>/add-as-favourite
Body
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
DELETE
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/followers
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
POST
URL
/api/activity-feed
Body
{
    "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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/recent-players
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
DELETE
URL
/api/<xuid>/remove-friend
Body
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
POST
URL
/api/messages
Body
{
    "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_USERAGENT, 'XAPI PHP cURL Example Client');
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

Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/activity
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/gamercard
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/presence
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Content-Type: application/json
Method
POST
URL
/api/presence
Body
{
    "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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Content-Type: application/json
Method
POST
URL
/api/profile
Body
{
    "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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/profile
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<gamertag>/profile-for-gamertag
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/title-history
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/xbox360games
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/xboxonegames
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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!

Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/titlehub-achievement-list
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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

Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/friends
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/xbox-activity-feed
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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

Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/alternative-game-clips
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/alternative-screenshots
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/game-clips
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/new-game-clips
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/screenshots
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/<xuid>/new-screenshots
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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

Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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

Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/marketplace/featured-games
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/marketplace/games-coming-soon
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/marketplace/latest-games
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/marketplace/latest-xbox360-games
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/marketplace/deals-with-gold
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/marketplace/games-with-gold
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/marketplace/most-played-games
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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?

Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/api/clubs/owned
null
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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));
Headers
Authorization: Bearer <token>
Accept-Language: en-US
Method
GET
URL
/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_USERAGENT, 'XAPI PHP cURL Example Client');
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));