The NewHaze OpenAPI is a read-only API library designed for people who don't want to build a games site using the NewHaze service. For this reason, it uses global IDs rather than assigning local IDs for your own site. You can get all public data for objects, without site localization.
The OpenAPI is optimized for people who want to build tools to offer other developers. Please share the tools you plan on building with us, and we can help you out with it a bit!
You can connect to the OpenAPI by simply sending requests to:
http://connect.newhaze.com/openapi/
The response is sent as JSON.
To access a particular method, you simply add to the end of the URL. For example, for all the comments on the game Snake, you would send a request to:
http://connect.newhaze.com/openapi/games/3904/comments/
The objects you can access, and all methods associated to those objects are outlined in this documentation.
We aim to add more objects to the site as soon as possible.
When using the OpenAPI, by adding query parameters to the end of the URL, you can adjust what data and how much you want to receive. Parameters you can use are:
© 2012 NewHaze Icons by Pixel Mixer Help