metro.getList [HTTP GET]
Retrieve a list of metros for a particular state.
Arguments
api_key (Required)
Your API application key. If you don't have one,
create one.
state_id (Required)
The state_id number of the state to look within. To find state_id's, use metro.getStateList.
Example Response
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok" version="1.0">
<metro id="1" name="Los Angeles" code="la" state_id="5"
state_name="California" state_code="ca" country_id="1"
country_name="United States" country_code="us"/>
<metro id="19" name="Orange County" code="oc" state_id="5"
state_name="California" state_code="ca" country_id="1"
country_name="United States" country_code="us"/>
</rsp>
Error Codes
404 Not Found:
- Missing valid api_key - Please create an API key using the above link.
- Your api_key is inactive or not found - Please contact us for support.
- Missing valid state_id parameter - Your state_id may be improperly formatted or non-numeric. Only numeric state_id's are allowed.