Adgooroo API v2.0
Client Login
Home / Utilities / GetRegions
Description
This method retrieves region names and IDs.

Info
Version:2
Quota Point Cost:1

Parameters
InputNameRequiredTypeDescription
outputnoStringThis parameter specifies the output format of the API call. Possible values are XML, CSV or JSON. Default is XML.
Note: Calling this API method will count against your monthly usage quota

Example Request
http://api.adgooroo.com/v2/Utilities/GetRegions.api

Example Output
// XML Output
<?xml version="1.0"?>
<api_result>
  <api_class>Utilities</api_class>
  <api_method>GetRegions</api_method>
  <quota_cost>0</quota_cost>
  <status>SUCCESS</status>
  <message />
  <value>
    <row>
      <id>2</id>
      <name>Japan</name>
    </row>
    <row>
      <id>1</id>
      <name>United States</name>
    </row>
  </value>
</api_result>


// JSON Output
{
  "api_class": "Utilities",
  "api_method": "GetRegions",
  "quota_cost": 0,
  "status": 0,
  "message": null,
  "value": {
    "row": [
      {
        "id": 2.0,
        "name": "Japan"
      },
      {
        "id": 1.0,
        "name": "United States"
      }
    ]
  }
}


// CSV Output
id,name
2,Japan
1,United States