GET StateCounty/GetStateCounty?state={state}
Returns a list of States and Counties.
Request Information
URI Parameters
| Name | Description | Type | Additional Information |
|---|---|---|---|
| state |
Two-Letter State or Territory Abbreviation (optional) |
string |
Default value is string.Empty |
Body Parameters
Response Information
Resource Description
Returns a list of States and Counties.
AgvStateCounty| Name | Description | Type | Additional Information |
|---|---|---|---|
| Status |
Status of the API call. |
string | |
| Message |
Message of the API call. |
string | |
| Count |
Count of how many State County JSON Objects. |
string | |
| StateCountyList |
JSON Object of StateCountyList. |
Collection of clsCounty |
Response Formats
application/json, text/json
Sample:
{
"Status": "sample string 1",
"Message": "sample string 2",
"Count": "2",
"StateCountyList": [
null,
{
"StateAbbreviation": "sample string 1",
"StateName": "sample string 2",
"StateFIPS": "sample string 3",
"CountyList": [
{
"UniqueId": 1,
"County": "sample string 2",
"CountyFIPS": "sample string 3",
"TTCode": "sample string 4"
},
{
"UniqueId": 1,
"County": "sample string 2",
"CountyFIPS": "sample string 3",
"TTCode": "sample string 4"
}
]
}
]
}
application/xml, text/xml
Sample:
<AgvStateCounty xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.StateCounty">
<Message>sample string 2</Message>
<StateCountyList xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI.Agv">
<d2p1:StateCounty i:nil="true" />
<d2p1:StateCounty>
<d2p1:CountyList>
<d2p1:StateCountyList>
<d2p1:County>sample string 2</d2p1:County>
<d2p1:CountyFIPS>sample string 3</d2p1:CountyFIPS>
<d2p1:TTCode>sample string 4</d2p1:TTCode>
<d2p1:UniqueId>1</d2p1:UniqueId>
</d2p1:StateCountyList>
<d2p1:StateCountyList>
<d2p1:County>sample string 2</d2p1:County>
<d2p1:CountyFIPS>sample string 3</d2p1:CountyFIPS>
<d2p1:TTCode>sample string 4</d2p1:TTCode>
<d2p1:UniqueId>1</d2p1:UniqueId>
</d2p1:StateCountyList>
</d2p1:CountyList>
<d2p1:StateAbbreviation>sample string 1</d2p1:StateAbbreviation>
<d2p1:StateFIPS>sample string 3</d2p1:StateFIPS>
<d2p1:StateName>sample string 2</d2p1:StateName>
</d2p1:StateCounty>
</StateCountyList>
<Status>sample string 1</Status>
</AgvStateCounty>