Profile of a place
get_place_profileAn overview of one place in a single call: its latest official figures grouped in sections (people, work and income, economy, prices and housing, consumers, business and tourism, health, digital, energy and environment), each with its period, its change from a year earlier, its rank among similar places and its source, plus a one-sentence summary per section. Use it for "give me an overview of Travis County", "key statistics for Bavaria", "a profile of Mataró". For one figure use get_value; for a ranking use rank_places. Only sections the place has data for are returned, with at most 6 figures each. sections limits the answer to some of them: people, work_income, economy, prices_housing, consumers, business, health, digital, environment. Example: {"place": "Travis County, Texas"}. {"place": "Spain", "sections": ["economy", "work_income"]}. Returns {place, url, sections: [{id, title, summary, figures: [{indicator, value, text, period, status?, change?: {kind, value, unit, from_period, from_value}, change_note?, rank?: {rank, counted_from, of, tied, period, among, ranking_url}, source}]}], sources: [{id, name, publisher, title, url, retrieved, license, citation}], notes}. change.kind is percent, points (percentage points), difference or compare (a net balance, given with the earlier value). rank counts from the nearer end: {rank: 3, counted_from: "lowest"} is the 3rd lowest. Each figure names its source by id; cite sources[].citation and give the period. One call, whatever the number of figures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| place | Yes | Place name or id. Examples: "Mataró", "Barcelona", "provincia de Barcelona", "Cataluña", "España", "Germany", "EU", "es-mun-08121", "08121" (INE code), "ES51" (NUTS), "Texas", "Travis County, Texas", "us-county-48453", "fips:48453" (US county FIPS), "Austin, TX", "us-place-4805000", "fips:4805000" (US city GEOID). | |
| country | No | Optional ISO 3166-1 alpha-2 code to disambiguate the place, for example "ES" or "US". | |
| sections | No | Optional. Sections to return; all by default. |