Unofficial Ghosts App API

#1 Posted by deweym (6 posts) -

This API is the backend that I use for my ghosts emulation app. All of the information from the app can be obtained from this API, including some information that I didn't include in the app, like clan wars information. There are other API functions that I reversed from the android app, which I will release in time.

I'm running on a shared hosting service, so the load times may vary from 0.5 seconds, to 10 seconds at the worst. If you try to get a resource and it seems like it is stalling, most likely it is because the server is experiencing a heavy load. Everything on how to use the API will be explained in the documentation.My site that is hosting this service is:http://ghost-app.com/You can find the documentation here:http://ghost-app.com/api/docsMy application pre-made with these built in functions:http://www.se7ensins.com/forums/threads/release-ghosts-app-for-pc-no-password-required.1047473/For your convenience, here is the documentation from my website.Ghost app API documentationKey things to know

  • UCDID = Universal Call of Duty Identification Number. Used extensively.
  • DWID = Xbox Live Identification Number. Used for some API.
  • Clan ID = Number given to a clan for identification. Used for all clan API.

User API

  1. search
    • Example URL: http://ghost-app.com/api/search?gt=pro_wheely
    • Parameters: gt = gamer tag
    • Description: The first part of the search gets the player’s UCDID, DWID, platform, network, and avatar picture. This will get the first 230-260 players with names starting with the gt parameter. The second part of the search is for clans, and gets the teamId, name, tag, and member count. This will get the first 100 clans with names starting with the gt parameter. This is the key function to use all of the other functions, because of the UCDID and clan ID values.
  2. user_stats
    • Example URL: http://ghost-app.com/api/user_stats?id=3006fb6701bae9f8585bbac549e4242bcf9011c484f04693
    • Parameters: id = UCDID
    • Description: This function gets summarized information of the user specified by the id parameter. The information from this is comprehensive, and summarized it includes information of the player’s profile, squadmembers, career history, accounts, and clan.
  3. user_squadMembers
    • Example URL: http://ghost-app.com/api/user_squadMembers?id=3006fb6701bae9f8585bbac549e4242bcf9011c484f04693&network=xbl
    • Parameters: id = UCDID, network = {xbl,psn,steam}
    • Description: This function gets all information about the squadmembers of the user specified by the id parameter. Note that network needs to match the user’s network, or an error will occur.
  4. user_friends
    • Example URL: http://ghost-app.com/api/user_friends?id=3006fb6701bae9f8585bbac549e4242bcf9011c484f04693
    • Parameters: id = UCDID
    • Description: This function gets the friends of the user specified by the id parameter.
  5. user_home
    • Example URL: http://ghost-app.com/api/user_home?id=3006fb6701bae9f8585bbac549e4242bcf9011c484f04693
    • Parameters: id = UCDID
    • Description: This function gets the front page news of the call of duty app.
  6. user_notifications
    • Example URL: http://ghost-app.com/api/user_notifications?id=3006fb6701bae9f8585bbac549e4242bcf9011c484f04693
    • Parameters: id = UCDID
    • Description: This function gets the device information and notification settings of the user specified by the id parameter.

Clan API

  1. clan_emblem
    • Example URL: http://ghost-app.com/api/clan_emblem?clan_id=500&size=2000
    • Parameters: clan_id = clan’s id number, size = width of image
    • Description: This function gets the clan emblem of the clan specified by the clan id parameter. All emblems are png, square images.
  2. clan_entitlements
    • Example URL: http://ghost-app.com/api/clan_entitlements?clan_id=500
    • Parameters: clan_id = clan’s id number
    • Description: This function gets the locked and unlocked entitlements/rewards/unlocks of the clan specified by the clan id parameter.
  3. clan_info
    • Example URL: http://ghost-app.com/api/clan_info?clan_id=500
    • Parameters: clan_id = clan’s id number
    • Description: This function gets summarized information of the clan specified by the clan id parameter.
  4. clan_members
    • Example URL: http://ghost-app.com/api/clan_members?clan_id=500
    • Parameters: clan_id = clan’s id number
    • Description: This function gets each member of the clan specified by the clan id parameter.
  5. clan_player
    • Example URL: http://ghost-app.com/api/clan_player?id=3006fb6701bae9f8585bbac549e4242bcf9011c484f04693
    • Parameters: id = UCDID
    • Description: This function gets the clan that is associated with the user specified by the id parameter.
  6. clan_profile
    • Example URL: http://ghost-app.com/api/clan_profile?clan_id=500
    • Parameters: clan_id = clan’s id number
    • Description: This function gets the main information of the clan specified by the clan id parameter.
  7. clan_recommendations
    • Example URL: http://ghost-app.com/api/clan_recommendations
    • Parameters: none
    • Description: This function gets 15 random clan objects.

Clan Wars API

  1. clanwars_diamondLeaderboard
    • Example URL: http://ghost-app.com/api/clanwars_diamondLeaderboard?clan_id=500
    • Parameters: clan_id = clan’s id number
    • Description: This function gets the diamond leaderboard information of the clan specified by the clan id parameter. This will show the rankings of all clans in your division.
  2. clanwars_global
    • Example URL: http://ghost-app.com/api/clanwars_global?clan_id=500
    • Parameters: clan_id = clan’s id number
    • Description: This function gets the base information of the clan war, achievements, and of the clan that is associated with the clan specified by the clan id parameter.
  3. clanwars_regions
    • Example URL: http://ghost-app.com/api/clanwars_regions?clan_id=500
    • Parameters: clan_id = clan’s id number
    • Description: This function gets the region of the clan wars that is associated with the clan specified by the clan id parameter.
  4. clanwars_scoreboard
    • Example URL: http://ghost-app.com/api/clanwars_scoreboard?clan_id=500
    • Parameters: clan_id = clan’s id number
    • Description: This function gets the scoreboard of the regular clan war that is associated with the clan specified by the clan id parameter.
  5. clanwars_wari
    • Example URL: http://ghost-app.com/api/clanwars_wari?clan_id=500
    • Parameters: clan_id = clan’s id number
    • Description: This function gets the clan war information that is associated with the clan specified by the clan id parameter. This information is more relevant to the clan, compared to the clanwars global function.

Other

  1. Code
    • Example URL: http://ghost-app.com/api/code
    • Parameters: none
    • Description: This function gets the code that is used by the unity cac portion of the call of duty app. The most recent updates to guns, playlists, dlc, and more can be found here.