You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

CountryCode List and Search Web Service API

URL

description

status

notes

ws/ref/country/list

Return entire list of country names and codes

not coded

 

ws/ref/country/find?match=<string to match>

Return list of country names and their codes that match

not coded

What wildcards be used in the match string?

parameter

required

default

value options

description

status

match

yes, for /find

n/a

 

String to match against "country" names. What kind of wildcards can be used?

not coded

locale

no

en_US

Java standard locale codes

locale in which to perform matching, and in which to provide names in response (when possible)

not coded

format

no

csv

  • csv
  • xml

format to use for response

not coded

noCSV Result Format

<country code>, <name associated with country code>
<country code>, <name associated with country code>
<country code>, <name associated with country code>

XML Result Format
<response>
  <header>
    <locale country="US" language="en"/>
    <timestamp>2008-02-21T12:37:32.546-05:00</timestamp>
    <criteria>
      <property name="match" value="something"/>
    </criteria>
    <comment>
    </comment>
  </header>
  <result>
    <location countryCode="" >name of the country </location>
    <location countryCode="" >name of the country </location>
    <location countryCode="" >name of the country </location>
</response>
  • No labels