Zillow API Network
GetDemographics API
For a specified region, the GetDemographics API returns a set of affordability, real estate, and demographic data, including:
- A URL linking to the corresponding demographics pages at Zillow.com
- Affordability data (e.g., Zindex, 1-Yr change, property tax, etc.)
- Homes and Real Estate data (e.g., percent owners & renters, median home size, average year built, etc.)
- People data from US Census (e.g., median household income, median age, average commute time, average household size, etc.)
- Who Lives Here (if available for the region)
- What's Unique About the People (if available for the region)
A region can be specified either through its respective Region ID or by providing one to three parameters: state, city, neighborhood. The neighborhood parameter can be omitted if only city data is desired. The state and city parameter are always required.
Demographic data is only available for cities and neighborhoods.
The GetDemographics API Web Service is located at: http://www.zillow.com/webservice/GetDemographics.htm
The parameters of the API are:
| Parameter | Description | Required |
|---|---|---|
| zws-id | The Zillow Web Service Identifier. Each subscriber to Zillow Web Services is uniquely identified by an ID sequence and every request to Web services requires this ID. Click here to get yours. | Yes |
| regionid | The regionid of the region to retrieve data from. | No* |
| state | The state of the region to retrieve data from. | No |
| city | The city of the region to retrieve data from. | No |
| neighborhood | The neighborhood of the region to retrieve data from. | No* |
| *At least rid or state/city is required | ||
The API result set:
| Parameter | Description |
|---|---|
| Region |
Region information:
|
| URLs | Corresponding demographic, affordability, and real estate charts and graphs |
| Charts | Links to corresponding demographic charts and graphs |
| Affordability Information | Affordability statistics relating to the city or neighborhood |
| Homes and Real Estate Data | Attributes of homes in the city or neighborhood |
| People Data (from US Census) |
Census data attributes:
|
| Who Lives Here | The primary groups of people who live in this neighborhood. |
| What's Unique About the People |
Characteristics that people living in this neighborhood are more likely to have than in surrounding neighborhoods:
|
| Limit-warning | If this field is set to "true," it means you are approaching your call limit. It appears under the "message" element in the API result set:
<message>
This output field will not be returned if it is false.
|
Messages and Codes
The following table summarizes possible return codes from the API:
| Error code | Description | Resolution |
|---|---|---|
| 0 | Request successfully processed | |
| 1 | Service error-there was a server-side error while processing the request | Check to see if your url is properly formed: delimiters, character cases, etc. |
| 2 | The specified ZWSID parameter was invalid or not specified in the request | Check if you have provided a ZWSID in your API call. If yes, check if the ZWSID is keyed in correctly. If it still doesn't work, contact Zillow to get help on fixing your ZWSID. |
| 3 | Web services are currently unavailable | The Zillow Web Service is currently not available. Please come back later and try again. |
| 4 | The API call is currently unavailable | The Zillow Web Service is currently not available. Please come back later and try again. |
| 500 | Invalid rid parameter | The rid parameter you input is not valid. Please check to make sure the specified Region ID is correct. |
| 501 | Missing parameters | Make sure to provide at least either an rid parameter or city or state parameter. Neighborhood and state parameters without a city parameter will not work. Also check to make sure all parameter names are lowercase (i.e. City=Seattle is invalid, city=Seattle is valid) |
| 502 | Region not found | The region specified was not found. Check spelling. Case does not matter, and the API will correct common spelling mistakes. |
| 503 | No available census data | Unfortunately there is no census data available for this region. |
Sample API Call
Below is an example of calling the API for the demographic data for the Ballard neighborhood in Seattle, WA:
http://www.zillow.com/webservice/GetDemographics.htm?zws-id=<ZWSID>&state=WA&city=Seattle&neighborhood=Ballard
Sample API Output
<?xml version="1.0" encoding="utf-8" ?> <Demographics:demographics xsi:schemaLocation="http://www.zillow.com/static/xsd/Demographics.xsd /vstatic/c98eeded5ea402bfdaa7fab8259c2397/static/xsd/Demographics.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Demographics="http://www.zillow.com/static/xsd/Demographics.xsd"> <request> <state>wa</state> <city>seattle</city> <neighborhood>university district</neighborhood> </request> <message> <text>Request successfully processed</text> <code>0</code> </message> <response> <region> <id>272001</id> <state>Washington</state> <city>Seattle</city> <neighborhood>University District</neighborhood> </region> <links> <affordability>http://www.zillow.com/real-estate/WA-Seattle/University-District-facts</affordability> <homesandrealestate>http://www.zillow.com/real-estate/WA-Seattle/University-District-real-estate</homesandrealestate> <people>http://www.zillow.com/real-estate/WA-Seattle/University-District-neighbors</people> </links> <charts> <chart> <name>Average Condo Value</name> <url>http://www.zillow.com/app?chartType=affordability_avgCondoValue&graphType=barChart®ionid=272001®ionType=8&service=chart</url> </chart> <chart> <name>Average Home Value</name> <url>http://www.zillow.com/app?chartType=affordability_avgHomeValue&graphType=barChart®ionid=272001®ionType=8&service=chart</url> </chart> <chart> <name>Dollars Per Square Feet</name> <url>http://www.zillow.com/app?chartType=affordability_pricePerSqft&graphType=barChart®ionid=272001®ionType=8&service=chart</url> </chart> <chart> <name>Zindex Distribution</name> <url>http://www.zillow.com/app?chartType=affordability_ZindexByDistribution&graphType=barChart®ionid=272001®ionType=8&service=chart</url> </chart> <chart> <name>Home Type</name> <url>http://www.zillow.com/app?chartType=home_homeType&graphType=barChart®ionid=272001®ionType=8&service=chart</url> </chart> <chart> <name>Owners vs. Renters</name> <url>http://www.zillow.com/app?chartType=home_ownVsRent&graphType=barChart®ionid=272001®ionType=8&service=chart</url> </chart> <chart> <name>Home Size in Square Feet</name> <url>http://www.zillow.com/app?chartType=home_homeSize&graphType=barChart®ionid=272001®ionType=8&service=chart</url> </chart> <chart> <name>Year Built</name> <url>http://www.zillow.com/app?chartType=home_yearBuilt&graphType=barChart®ionid=272001®ionType=8&service=chart</url> </chart> </charts> <pages> <page> <name>Affordability</name> <tables> <table> <name>Affordability Data</name> <data> <attribute> <name>Zindex</name> <values> <neighborhood> <value currency="USD">553336</value> </neighborhood> <city> <value currency="USD">470066</value> </city> <nation> <value currency="USD">256206</value> </nation> </values> </attribute> <attribute> <name>1-yr change</name> <values> <neighborhood> <value currency="USD">0.05709141962479345</value> </neighborhood> <city> <value currency="USD">0.06297653787790358</value> </city> <nation> <value currency="USD">-0.028684701492537313</value> </nation> </values> </attribute> <attribute> <name>$ per Sq. Ft.</name> <values> <neighborhood> <value currency="USD">336.61865284974095</value> </neighborhood> <city> <value currency="USD">346.26651583710407</value> </city> <nation> <value currency="USD">163.75159574468086</value> </nation> </values> </attribute> <attribute> <name>Flips (Re-sold Within 1 Yr.)</name> <values> <neighborhood> <value type="percent">0.06060606060606061</value> </neighborhood> <city> <value type="percent">0.05166051660516605</value> </city> <nation> <value type="percent">0.05077464913997047</value> </nation> </values> </attribute> <attribute> <name>Turnover (Sold Within Last Yr.)</name> <values> <neighborhood> <value type="percent">0.055784134300899735</value> </neighborhood> <city> <value type="percent">0.06102459136311719</value> </city> <nation> <value type="percent">0.03878582940743922</value> </nation> </values> </attribute> <attribute> <name>Property Tax</name> <values> <neighborhood> <value currency="USD">3860.6135</value> </neighborhood> <city> <value currency="USD">3728.3531</value> </city> <nation> <value currency="USD">3016.1642</value> </nation> </values> </attribute> <attribute> <name>Condo Price</name> <values> <neighborhood> <value currency="USD">368733</value> </neighborhood> <city> <value currency="USD">342862</value> </city> <nation> <value currency="USD">248352</value> </nation> </values> </attribute> <attribute> <name>Single Family Price</name> <values> <neighborhood> <value currency="USD">321096</value> </neighborhood> <city> <value currency="USD">312514</value> </city> <nation> <value currency="USD">192723</value> </nation> </values> </attribute> <attribute> <name>2-Bedroom Price</name> <values> <neighborhood> <value currency="USD">438317</value> </neighborhood> <city> <value currency="USD">422994</value> </city> <nation> <value currency="USD">211912</value> </nation> </values> </attribute> <attribute> <name>3-Bedroom Price</name> <values> <neighborhood> <value currency="USD">546908</value> </neighborhood> <city> <value currency="USD">498950</value> </city> <nation> <value currency="USD">250816</value> </nation> </values> </attribute> <attribute> <name>4-Bedroom Price</name> <values> <neighborhood> <value currency="USD">638577</value> </neighborhood> <city> <value currency="USD">586539</value> </city> <nation> <value currency="USD">385646</value> </nation> </values> </attribute> </data> </table> <table> <name>Average Condo and Single-family Home Values</name> <data> <attribute> <name>Condo-1bedroom</name> <value currency="USD">314663</value> </attribute> <attribute> <name>Condo-2bedroom</name> <value currency="USD">394289</value> </attribute> <attribute> <name>Condo-3bedroom</name> <value currency="USD">463457</value> </attribute> <attribute> <name>SFR-1bedroom</name> <value currency="USD">388764</value> </attribute> <attribute> <name>SFR-2bedroom</name> <value currency="USD">466599</value> </attribute> <attribute> <name>SFR-3bedroom</name> <value currency="USD">570351</value> </attribute> <attribute> <name>SFR-4bedroom</name> <value currency="USD">643770</value> </attribute> </data> </table> <table> <name>Zindex</name> <data> <attribute> <name>AllHomes</name> <value currency="USD">553336</value> </attribute> </data> </table> <table> <name>Dollars per Square Feet</name> <data> <attribute> <name>$100-200</name> <value type="percent">0.046860356138706656</value> </attribute> <attribute> <name>$200-300</name> <value type="percent">0.2802249297094658</value> </attribute> <attribute> <name>$300-400</name> <value type="percent">0.4245548266166823</value> </attribute> <attribute> <name>$400-500</name> <value type="percent">0.1696344892221181</value> </attribute> <attribute> <name>$500-600</name> <value type="percent">0.061855670103092786</value> </attribute> <attribute> <name>$600-800</name> <value type="percent">0.007029053420805998</value> </attribute> <attribute> <name><$100</name> <value type="percent">0.004686035613870665</value> </attribute> <attribute> <name>>$800k</name> <value type="percent">0.005154639175257732</value> </attribute> </data> </table> <table> <name>Zindex Distribution</name> <data> <attribute> <name>$100-200k</name> <value type="percent">9.293680297397769E-4</value> </attribute> <attribute> <name>$200-300k</name> <value type="percent">0.05297397769516728</value> </attribute> <attribute> <name>$300-400k</name> <value type="percent">0.13986988847583642</value> </attribute> <attribute> <name>$400-500k</name> <value type="percent">0.21468401486988847</value> </attribute> <attribute> <name>$500-600k</name> <value type="percent">0.16682156133828996</value> </attribute> <attribute> <name>$600-800k</name> <value type="percent">0.27927509293680297</value> </attribute> <attribute> <name>>$800k</name> <value type="percent">0.1454460966542751</value> </attribute> </data> </table> </tables> </page> <page> <name>Homes & Real Estate</name> <tables> <table> <name>Homes & Real Estate Data</name> <data> <attribute> <name>Owners</name> <values> <neighborhood> <value type="percent">0.2782266</value> </neighborhood> <city> <value type="percent">0.48412441</value> </city> <nation> <value type="percent">0.66268764</value> </nation> </values> </attribute> <attribute> <name>Renters</name> <values> <neighborhood> <value type="percent">0.7217734</value> </neighborhood> <city> <value type="percent">0.51587559</value> </city> <nation> <value type="percent">0.33731236</value> </nation> </values> </attribute> <attribute> <name>Median Home Size (Sq. Ft.)</name> <values> <neighborhood> <value>1700</value> </neighborhood> <city> <value>1460</value> </city> <nation> <value>1548</value> </nation> </values> </attribute> <attribute> <name>Avg. Year Built</name> <values> <neighborhood> <value>1922</value> </neighborhood> <city> <value>1948</value> </city> <nation> <value>1974</value> </nation> </values> </attribute> <attribute> <name>Single-Family Homes</name> <values> <neighborhood> <value type="percent">0.5190520446096655</value> </neighborhood> <city> <value type="percent">0.7606991687356031</value> </city> <nation> <value type="percent">0.7866848290049298</value> </nation> </values> </attribute> <attribute> <name>Condos</name> <values> <neighborhood> <value type="percent">0.25092936802973975</value> </neighborhood> <city> <value type="percent">0.17935175082098562</value> </city> <nation> <value type="percent">0.10635880824351963</value> </nation> </values> </attribute> </data> </table> <table> <name>Home Type</name> <data> <attribute> <name>Condo</name> <value type="percent">0.25092936802973975</value> </attribute> <attribute> <name>Other</name> <value type="percent">0.2300185873605948</value> </attribute> <attribute> <name>SingleFamily</name> <value type="percent">0.5190520446096655</value> </attribute> </data> </table> <table> <name>Owners vs. Renters</name> <data> <attribute> <name>Own</name> <value type="percent">0.2782266</value> </attribute> <attribute> <name>Rent</name> <value type="percent">0.7217734</value> </attribute> </data> </table> <table> <name>Home Size in Square Feet</name> <data> <attribute> <name><1000sqft</name> <value type="percent">0.1942615239887112</value> </attribute> <attribute> <name>>3600sqft</name> <value type="percent">0.06444026340545625</value> </attribute> <attribute> <name>1000-1400sqft</name> <value type="percent">0.19143932267168393</value> </attribute> <attribute> <name>1400-1800sqft</name> <value type="percent">0.15663217309501412</value> </attribute> <attribute> <name>1800-2400sqft</name> <value type="percent">0.19332079021636878</value> </attribute> <attribute> <name>2400-3600sqft</name> <value type="percent">0.19990592662276577</value> </attribute> </data> </table> <table> <name>Year Built</name> <data> <attribute> <name>>2000</name> <value type="percent">0.10408921933085502</value> </attribute> <attribute> <name>1900-1919</name> <value type="percent">0.43029739776951675</value> </attribute> <attribute> <name>1920-1939</name> <value type="percent">0.2746282527881041</value> </attribute> <attribute> <name>1940-1959</name> <value type="percent">0.02741635687732342</value> </attribute> <attribute> <name>1960-1979</name> <value type="percent">0.08364312267657993</value> </attribute> <attribute> <name>1980-1999</name> <value type="percent">0.07992565055762081</value> </attribute> </data> </table> </tables> </page> <page> <name>People</name> <tables> <table> <name>People Data</name> <data> <attribute> <name>Median Income</name> <values> <neighborhood> <value currency="USD">36936.4891832131</value> </neighborhood> <city> <value currency="USD">45736</value> </city> <nation> <value currency="USD">44512.0130806292</value> </nation> </values> </attribute> <attribute> <name>Single Males</name> <values> <neighborhood> <value type="percent">0.369131099892917</value> </neighborhood> <city> <value type="percent">0.230033266826908</value> </city> <nation> <value type="percent">0.146462187349365</value> </nation> </values> </attribute> <attribute> <name>Single Females</name> <values> <neighborhood> <value type="percent">0.307340658154037</value> </neighborhood> <city> <value type="percent">0.187486853578992</value> </city> <nation> <value type="percent">0.124578258618535</value> </nation> </values> </attribute> <attribute> <name>Median Age</name> <values> <neighborhood> <value>31</value> </neighborhood> <city> <value>37</value> </city> <nation> <value>36</value> </nation> </values> </attribute> <attribute> <name>Homes With Kids</name> <values> <neighborhood> <value type="percent">0.118506120506633</value> </neighborhood> <city> <value type="percent">0.181808339938523</value> </city> <nation> <value type="percent">0.313623902816284</value> </nation> </values> </attribute> <attribute> <name>Household Size</name> <values /> </attribute> <attribute> <name>Avg. Commute Time (Minutes)</name> <values> <neighborhood> <value>25</value> </neighborhood> <city> <value>27</value> </city> <nation> <value>26</value> </nation> </values> </attribute> </data> </table> <table> <name>Relationship Status</name> <data> <attribute> <name>Divorced-Female</name> <value type="percent">0.0354004805226358</value> </attribute> <attribute> <name>Divorced-Male</name> <value type="percent">0.0308617012660962</value> </attribute> <attribute> <name>Married-Female</name> <value type="percent">0.111839843785151</value> </attribute> <attribute> <name>Married-Male</name> <value type="percent">0.125119185811084</value> </attribute> <attribute> <name>Single-Female</name> <value type="percent">0.307340658154037</value> </attribute> <attribute> <name>Single-Male</name> <value type="percent">0.369131099892917</value> </attribute> <attribute> <name>Widowed-Female</name> <value type="percent">0.0177064492616689</value> </attribute> <attribute> <name>Widowed-Male</name> <value type="percent">0.00260058130640967</value> </attribute> </data> </table> <table> <name>Homes With Kids</name> <data> <attribute> <name>NoKids</name> <value type="percent">0.881493879493367</value> </attribute> <attribute> <name>WithKids</name> <value type="percent">0.118506120506633</value> </attribute> </data> </table> <table> <name>Age Distribution</name> <data> <attribute> <name>0s</name> <value type="percent">0.0439328863837096</value> </attribute> <attribute> <name>10s</name> <value type="percent">0.123449611408239</value> </attribute> <attribute> <name>20s</name> <value type="percent">0.472428008746414</value> </attribute> <attribute> <name>30s</name> <value type="percent">0.155751499999956</value> </attribute> <attribute> <name>40s</name> <value type="percent">0.0947991967749185</value> </attribute> <attribute> <name>50s</name> <value type="percent">0.0692842973568556</value> </attribute> <attribute> <name>60s</name> <value type="percent">0.029758812344761</value> </attribute> </data> </table> <table> <name>Commute Time</name> <data> <attribute> <name><10min</name> <value type="percent">0.0969116825242883</value> </attribute> <attribute> <name>>=60min</name> <value type="percent">0.0464475734977107</value> </attribute> <attribute> <name>10-20min</name> <value type="percent">0.343027233922857</value> </attribute> <attribute> <name>20-30min</name> <value type="percent">0.249038433053571</value> </attribute> <attribute> <name>30-45min</name> <value type="percent">0.185863204249101</value> </attribute> <attribute> <name>45-60min</name> <value type="percent">0.078711872752473</value> </attribute> </data> </table> </tables> <segmentation> <liveshere> <title>College Life</title> <name>College Life</name> <description>People in college or graduate school.</description> </liveshere> <liveshere> <title>Non-native Newbies</title> <name>Foreign-born individuals who just moved to U.S.</name> <description>A significant proportion of people who have moved to the U.S. from Puerto Rico, the U.S. Island Areas, or a foreign country. Wide age range. Some have a high school or college education, and they work in a variety of occupations.</description> </liveshere> <liveshere> <title>Bright Lights, Big City</title> <name>Very mobile singles living in the city.</name> <description>Singles ranging in age from early 20s to mid-40s who have moved to an urban setting. Most rent their apartment or condo. Some have a college education and work in services and the professional sector.</description> </liveshere> </segmentation> <uniqueness> <category type="Education"> <characteristic>Bachelor's degrees</characteristic> <characteristic>Doctorate degrees</characteristic> <characteristic>Females in college or graduate school</characteristic> <characteristic>Males in college or graduate school</characteristic> <characteristic>Master's degrees</characteristic> <characteristic>Professional school degrees</characteristic> </category> <category type="Employment"> <characteristic>Males working for non-profits</characteristic> <characteristic>Work for the government</characteristic> <characteristic>Work in arts, design, entertainment, sports, or media occupations</characteristic> <characteristic>Work in computer or mathematical occupations</characteristic> <characteristic>Work in education, training, or library occupations</characteristic> <characteristic>Work in life, physical, or social science occupations</characteristic> <characteristic>Work in management-level occupations</characteristic> <characteristic>Work in office and administrative support occupations</characteristic> </category> <category type="Income"> <characteristic>High rent compared to income</characteristic> </category> <category type="People & Culture"> <characteristic>Born in the Midwest</characteristic> <characteristic>Born in the Northeast</characteristic> <characteristic>Single females</characteristic> <characteristic>Single males</characteristic> <characteristic>Speak Chinese</characteristic> </category> <category type="Transportation"> <characteristic>Get to work by bicycle</characteristic> <characteristic>Get to work by bus</characteristic> <characteristic>Walk to work</characteristic> </category> </uniqueness> </page> </pages> </response> </Demographics:demographics>
XML Schema Definition (XSD)
The XSD for the API is located at: http://www.zillow.com/static/xsd/SearchResults.xsd
<?xml version="1.0" encoding="utf-8" ?> <xsd:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ZillowTypes="http://www.zillow.com/static/xsd/ZillowTypes.xsd" xmlns="http://www.zillow.com/static/xsd/Demographics.xsd" targetNamespace="http://www.zillow.com/static/xsd/Demographics.xsd"> <xsd:import namespace="http://www.zillow.com/static/xsd/ZillowTypes.xsd" schemaLocation="/vstatic/4/static/xsd/ZillowTypes.xsd" /> <xsd:element name="demographics" type="demographicsResultType" /> <xsd:complexType name="demographicsResultType"> <xsd:sequence> <xsd:element name="request"> <xsd:complexType> <xsd:sequence> <xsd:element name="rid" type="xsd:string" minOccurs="0" /> <xsd:element name="state" type="xsd:string" minOccurs="0" /> <xsd:element name="city" type="xsd:string" minOccurs="0" /> <xsd:element name="neighborhood" type="xsd:string" minOccurs="0" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="message" type="ZillowTypes:Message" /> <xsd:element name="response" minOccurs="0"> <xsd:complexType> <xsd:sequence> <xsd:element name="region" type="ZillowTypes:RegionNames" /> <xsd:element name="links"> <xsd:complexType> <xsd:sequence> <xsd:element name="affordability" type="xsd:string" /> <xsd:element name="homesandrealestate" type="xsd:string" /> <xsd:element name="people" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="charts"> <xsd:complexType> <xsd:sequence> <xsd:element name="chart" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="name" type="xsd:string" /> <xsd:element name="url" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="pages"> <xsd:complexType> <xsd:sequence> <xsd:element name="page" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="name" type="xsd:string" /> <xsd:element name="tables"> <xsd:complexType> <xsd:sequence> <xsd:element name="table" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="name" type="xsd:string" /> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="attribute" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="name" type="xsd:string" /> <xsd:element name="values" minOccurs="0"> <xsd:complexType> <xsd:sequence> <xsd:element name="neighborhood" minOccurs="0"> <xsd:complexType> <xsd:sequence> <xsd:element name="value"> <xsd:complexType> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="currency" type="xsd:string" default="USD" /> </xsd:extension> </xsd:simpleContent> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="city" minOccurs="0"> <xsd:complexType> <xsd:sequence> <xsd:element name="value"> <xsd:complexType> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="currency" type="xsd:string" default="USD" /> </xsd:extension> </xsd:simpleContent> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="nation" minOccurs="0"> <xsd:complexType> <xsd:sequence> <xsd:element name="value"> <xsd:complexType> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="currency" type="xsd:string" default="USD" /> </xsd:extension> </xsd:simpleContent> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="value" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="currency" type="xsd:string" default="USD" /> </xsd:extension> </xsd:simpleContent> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="segmentation" minOccurs="0"> <xsd:complexType> <xsd:sequence> <xsd:element name="liveshere" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="title" type="xsd:string" /> <xsd:element name="name" type="xsd:string" /> <xsd:element name="description" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="uniqueness" minOccurs="0"> <xsd:complexType> <xsd:sequence> <xsd:element name="category" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="characteristic" type="xsd:string" maxOccurs="unbounded" /> </xsd:sequence> <xsd:attribute name="type" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:schema>
