api.maponics.com logo

Documentation > Public Methods > Method Detail: getGeoListByState

This request requires you to submit a two-letter State abbreviation. The API will return a list of IDs for all objects of the selected type within that state.

To see the parameters that are required by a specific dataset when calling this method, please select the dataset from the list below:

  Required parameters for this dataset/method combination

Sample Request XML

Please remember that this is merely a static example of an API request. For a real-world API request, the dataset code would reflect the actual dataset called, and the paramters would then follow from that dataset. To see a list of the required parameters for any given dataset with this method, select the dataset in the drop down list above.

<?xml version="1.0" encoding="UTF-8" ?> <data> <auth> <loginname>your_username</loginname> <key>your_api_key</key> </auth> <request> <dataset>Z</dataset> <method>getGeoListByState</method> <parameters> <state>NY</state> <submatch>N</submatch> </parameters> </request> </data>

Sample Response XML

Please remember that this is merely sample XML and the returned items shown are in no way representative of real-world data.

<?xml version="1.0" encoding="UTF-8" ?> <data> <request> <item> <zip>14889</zip> </item> <item> <zip>14891</zip> </item> <item> <zip>14892</zip> </item> <item> <zip>14894</zip> </item> <item> <zip>14895</zip> </item> <item> <zip>14897</zip> </item> <item> <zip>14898</zip> </item> <item> <zip>14901</zip> </item> <item> <zip>14903</zip> </item> <item> <zip>14904</zip> </item> <item> <zip>14905</zip> </item> </request> </data>