Welcome, Guest Sign In | Sign Up | Help
Upcoming API Documentation
Currently, the use of these APIs are restricted to non-commercial use only. If you'd like to use it for commercial purposes, please contact us first.
state.getInfo [HTTP GET]
Retrieve the details about a 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. State ID's are referenced in other methods, such as metro.getStateList and metro.getInfo. To run getInfo on multiple states, simply pass a comma-separated list of state_id numbers.

Example Response
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok" version="1.0">
	<state id="1" name="Alabama" code="al" country_id="1"/>
	<state id="2" name="Alaska" code="ak" country_id="1"/>
	<state id="3" name="Arizona" code="az" country_id="1"/>
	<state id="4" name="Arkansas" code="ar" country_id="1"/>
</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.
Tools
Upcoming Badges for Your Blog/Website | Invite Friends | Groups | Developers API
Help
News Blog | Community Guidelines | FAQ | Contact Us | Suggestion Board