Resource URL
JSON endpoint:
https://OnDemandServer/rest/GlobalTypeAheadUSAPremium/results.json
XML endpoint:
https://OnDemandServer/rest/GlobalTypeAheadUSAPremium/results.xml
For a list of Spectrum OnDemand servers, see Connecting to Spectrum OnDemand Servers.
Example with JSON Response
The following example requests a JSON response:
https://emea-staging.spectrum.precisely.com/rest/GlobalTypeAheadUSAPremium/results.json?Data.AddressLine1= po box 534, dayton, oh 45404
The JSON returned by this request would be:
{
"Output": [
{
"AddressLine1": "PO Box 534",
"StateProvince": "OH",
"PostalCode": "45404-0534",
"City": "Dayton",
"ProcessedBy": "GTAS",
"InstanceKey": "ACUjMDMTYxODU4MjQ0MDIwOQMD02Mz",
"FirmName": "",
"FormattedAddress": "PO Box 534, Dayton, OH, 45404-0534",
"Ranges": [],
"PostalCode.AddOn": "0534",
"HouseNumber": "",
"ApartmentLabel": "",
"AddressLine2": "",
"user_fields": []
}
]
}
Example with XML Response
The following example requests an XML response:
https://spectrum.precisely.com/rest/GlobalTypeAheadUSAPremium/results.xml?Data.AddressLine1=po box 534, dayton, oh 45404
The XML returned by this request would be:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xml.GlobalTypeAheadUSAPremiumResponse xmlns="http://www.pb.com/spectrum/services/GlobalTypeAheadUSAPremium">
<Output>
<Row>
<AddressLine1>PO Box 534</AddressLine1>
<StateProvince>OH</StateProvince>
<PostalCode>45404-0534</PostalCode>
<City>Dayton</City>
<ProcessedBy>GTAS</ProcessedBy>
<InstanceKey>ACUjMDMTYyMjM3ODU4NjE3NQMD02Mj</InstanceKey>
<FirmName></FirmName>
<FormattedAddress>PO Box 534, Dayton, OH, 45404-0534</FormattedAddress>
<Ranges/>
<PostalCode.AddOn>0534</PostalCode.AddOn>
<HouseNumber></HouseNumber>
<ApartmentLabel></ApartmentLabel>
<AddressLine2></AddressLine2>
<user_fields/>
</Row>
</Output>
</xml.GlobalTypeAheadUSAPremiumResponse>