{"_id":"56accf7513ac890d001c3c76","user":"56abbec30b9e0b0d00616274","category":{"_id":"56abca6bf9757e0d007c6650","pages":["56abcb4a678b58170031ec27","56accf7513ac890d001c3c76","56acd12a693f0a0d0085f099","56acd43d0ab3c00d00ce332d","56acd698d21f1b0d00fd2f65"],"project":"56abbf55f25f160d00e17f4e","__v":5,"version":"56abbf55f25f160d00e17f51","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-01-29T20:24:11.577Z","from_sync":false,"order":1,"slug":"api-overview","title":"API Languages"},"parentDoc":null,"version":{"_id":"56abbf55f25f160d00e17f51","project":"56abbf55f25f160d00e17f4e","__v":12,"createdAt":"2016-01-29T19:36:53.665Z","releaseDate":"2016-01-29T19:36:53.665Z","categories":["56abbf56f25f160d00e17f52","56abca6bf9757e0d007c6650","56acddfa0ab3c00d00ce3332","56af65da9d32e30d0006d30f","56af66cab34d210d003d9ad0","56af6afcd21e9c0d00b628d1","56af6d6ecc4cbd0d00ce2c88","5705b12221cfed0e00e8c580","570a5676ade45d0e00c1ad33","570d7d25d1e4b82000d9e385","570eac3c3160d10e0041df0e","575709000fd6a3200010dded"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":12,"project":"56abbf55f25f160d00e17f4e","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-30T14:57:57.274Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"### The Kongregate Client-side API\n\nThe Kongregate API allows you to integrate your game with Kongregate by submitting statistics, allowing players to earn badges, saving shared content, and much more. Our goal is to make the API simple but powerful. The API supports [ActionScript 2](doc:actionscript-2-api) & [ActionScript 3](doc:actionscript-3-api), [Unity](doc:unity-api), as well as [JavaScript](doc:javascript-api). Other web plugins (Java, etc.) are supported through the use of the JavaScript version of the API.\n\n### The Kongregate API Object\n\nThroughout the API documentation, you will see references to the \"Kongregate\" object or the \"Kongregate API\" object. In order to keep the API simple, function names, arguments, and return values are the same no matter what language is being used. The main difference when using a different language is how you go about obtaining the main Kongregate API object.\n\nThis is explained further in the language-specific documentation, but just keep in mind that when you see a variable named `kongregate` or a reference to a \"Kongregate\" object or \"Kongregate API\" object you will need to substitute in the appropriate language-specific construct. It can be useful to create your own `kongregate` variable which references the API so that your code exactly matches the documentation.\n\n### Language-specific Documentation\n\n*  [ActionScript 2](doc:actionscript-2-api) \n*  [ActionScript 3](doc:actionscript-3-api)\n*  [Javascript](doc:javascript-api) \n*  [Unity](doc:unity-api)\n\n### The Kongregate Server-side HTTP API\n\nIn addition to client-side links, Kongregate offers a [Server Side HTTP API](doc:server-side-http) to provide for secure communication and submissions between your game's server and Kongregate. These calls are used for verifying purchases and submitting high scores, as well as looking up user information and getting badge feeds.\n\n### Other Documentation\n\n*   [Flash IFRAME Integration](doc:concepts-flash-iframe-integration): Allows you to use the Kongregate API when your game is hosted in an iframe on another domain\n*   If you run into problems, please check out the [API integration forum](http://www.kongregate.com/forums/90-kongregate-apis).","excerpt":"","slug":"client-api-introduction","type":"basic","title":"Client API Introduction"}

Client API Introduction


### The Kongregate Client-side API The Kongregate API allows you to integrate your game with Kongregate by submitting statistics, allowing players to earn badges, saving shared content, and much more. Our goal is to make the API simple but powerful. The API supports [ActionScript 2](doc:actionscript-2-api) & [ActionScript 3](doc:actionscript-3-api), [Unity](doc:unity-api), as well as [JavaScript](doc:javascript-api). Other web plugins (Java, etc.) are supported through the use of the JavaScript version of the API. ### The Kongregate API Object Throughout the API documentation, you will see references to the "Kongregate" object or the "Kongregate API" object. In order to keep the API simple, function names, arguments, and return values are the same no matter what language is being used. The main difference when using a different language is how you go about obtaining the main Kongregate API object. This is explained further in the language-specific documentation, but just keep in mind that when you see a variable named `kongregate` or a reference to a "Kongregate" object or "Kongregate API" object you will need to substitute in the appropriate language-specific construct. It can be useful to create your own `kongregate` variable which references the API so that your code exactly matches the documentation. ### Language-specific Documentation * [ActionScript 2](doc:actionscript-2-api) * [ActionScript 3](doc:actionscript-3-api) * [Javascript](doc:javascript-api) * [Unity](doc:unity-api) ### The Kongregate Server-side HTTP API In addition to client-side links, Kongregate offers a [Server Side HTTP API](doc:server-side-http) to provide for secure communication and submissions between your game's server and Kongregate. These calls are used for verifying purchases and submitting high scores, as well as looking up user information and getting badge feeds. ### Other Documentation * [Flash IFRAME Integration](doc:concepts-flash-iframe-integration): Allows you to use the Kongregate API when your game is hosted in an iframe on another domain * If you run into problems, please check out the [API integration forum](http://www.kongregate.com/forums/90-kongregate-apis).