Requesting a list of available items
GET url: http://www.kongregate.com/api/items.json
required params:
api_key: The api key assigned to your game
response fields:
success: true/false depending on if the request was successful
error: error code integer, if any
error_description: error code description string, if any
only if successful:
items: An array of item objects-
id: Unique integer id for the item
identifier: String identifier for the item, given by the developer
name: Name of the item
description: Description of the item
price: An integer containing the price of the item in kreds
tags: An array of strings containing the tags for the item
Example: Request all items
GET http://www.kongregate.com/api/items.json?api_key=MyApiKey
{success:true,
items:[
{id:1,identifier:"sharp-sword",name:"Sharp Sword",
description:"A sharp sword",price:10,tags:["sword","awesome"]},
{id:2,identifier:"dull-sword",name:"Dull Sword",
description:"A dull sword",price:1,tags:["sword","awesome"]},
{id:3,identifier:"axe",name:"Axe",
description:"An Axe",price:10,tags:["axe"]}
]}
Comments