The GroopBuy API for Developers
The Public GroopBuy API
The GroopBuy API is designed as a simple set of REST API calls that can be called directly from third-party applications. Responses can be in XML or JSON format and can be specified in realtime with the API request being made. For now, access is public and so no API key is required.
How Our API Works
At this time, there are two API calls that work together to retrieve active deals for a given city.
Getting Cities
To get a list of cities currently tracked by GroopBuy, use the call below:
http://api.groopbuy.com/get/cities?format={json,xml}&v=1.0
The default response format is xml so if you intend to use the xml format, you can just leave the format parameter off. The v parameter which specifies the version of the API (currently at 1.0) is important and required.
The response will be in the following format:
Getting Deals
You can get the active deals for a given city using the following API call:
http://api.groopbuy.com/get/deals/{cityCode}?format={json,xml}&v=1.0
The cityCode value is populated by parsing and retrieving the appropriate cityCode value for the desired city from the response to the Cities API call as described above. For example, the cityCode for San Francisco is SFO.
The response (if the XML format is passed) will look like the following:

