GlobalTypeAhead International - Spectrum_OnDemand - main

Spectrum OnDemand Web Services (REST)

Product type
Software
Portfolio
Verify
Product family
Product
Spectrum OnDemand
Version
main
Language
English
Product name
Spectrum OnDemand
Title
Spectrum OnDemand Web Services (REST)
First publish date
2006

Resource URL

JSON endpoint:

https://OnDemandServer/rest/GlobalTypeAheadInternational/results.json

XML endpoint:

https://OnDemandServer/rest/GlobalTypeAheadInternational/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://spectrum.precisely.com/rest/GlobalTypeAheadInternational/results.json?​Data.AddressLine1=Victori&Data.Country=UK&Option.OutputCasing=M

The JSON returned by this request would be:

                {
  "Output": [
    {
      "AddressLine1": "23 Victoria Street",
      "StateProvince": "North Yorkshire",
      "PostalCode": "YO12 7SS",
      "City": "Scarborough",
      "ProcessedBy": "INTS",
      "InstanceKey": "ACUjMDMTU5NDU1MjQ5NDM2NAMD01MD",
      "FirmName": "Todd Bros Decorating",
      "FormattedAddress": "Todd Bros Decorating, 23 Victoria Street, Scarborough, North Yorkshire, YO12 7SS",
      "Country": "GBR",
      "Ranges": [
        
      ],
      "user_fields": [
        
      ]
    },
    {
      "AddressLine1": "Flat 1",
      "StateProvince": "North Yorkshire",
      "PostalCode": "YO12 7SS",
      "City": "Scarborough",
      "ProcessedBy": "INTS",
      "InstanceKey": "ACUjMDMTU5NDU1MjQ5NDM2NAMD01MD",
      "FormattedAddress": "Flat 1, 51 Victoria Street, Scarborough, North Yorkshire, YO12 7SS",
      "Country": "GBR",
      "AddressLine2": "51 Victoria Street",
      "Ranges": [
        
      ],
      "user_fields": [
        
      ]
    }
  ]
}

Example with XML Response

The following example requests an XML response:

https://spectrum.precisely.com/rest/GlobalTypeAheadInternational/results.xml?Data.AddressLine1=Victori&Data.Country=UK

The XML returned by this request would be:

<xml.GlobalTypeAheadInternationalResponse xmlns="http://www.pb.com/spectrum/services/GlobalTypeAheadInternational">
   <Output>
      <Row>
         <AddressLine1>23 Victoria Street</AddressLine1>
         <StateProvince>North Yorkshire</StateProvince>
         <PostalCode>YO12 7SS</PostalCode>
        <City>Scarborough</City>
         <ProcessedBy>INTS</ProcessedBy>
         <InstanceKey>ACUjMTMTU5NDY0NzY4MTk4MAMj01Mj</InstanceKey>
         <FirmName>Todd Bros Decorating</FirmName>
         <FormattedAddress>Todd Bros Decorating, 23 Victoria Street, Scarborough, North Yorkshire, YO12 7SS</FormattedAddress>
         <Country>GBR</Country>
         <Ranges/>
         <user_fields/>
      </Row>
      <Row>
         <AddressLine1>Flat 1</AddressLine1>
         <StateProvince>North Yorkshire</StateProvince>
         <PostalCode>YO12 7SS</PostalCode>
         <City>Scarborough</City>
         <ProcessedBy>INTS</ProcessedBy>
         <InstanceKey>ACUjMTMTU5NDY0NzY4MTk4MAMj01Mj</InstanceKey>
         <FormattedAddress>Flat 1, 51 Victoria Street, Scarborough, North Yorkshire, YO12 7SS</FormattedAddress>
         <Country>GBR</Country>
         <AddressLine2>51 Victoria Street</AddressLine2>
         <Ranges/>
         <user_fields/>
      </Row>
   </Output>
</xml.GlobalTypeAheadInternationalResponse>