{"api":{"id":"api_9eaa6cf5df3194111276464f","slug":"switzerland-bfs-statistics","name":"Switzerland FSO Statistics API","description":"Official Swiss Federal Statistical Office tables, flattened into one row per period and category: table title, last update, category label, period and value. For analysts covering Swiss demographics, economy and society.","kind":"ready_made","visibility":"public","domain":"www.pxweb.bfs.admin.ch","source_url":"https://www.pxweb.bfs.admin.ch/api/v1/en","category":"government","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":6,"created_at":"2026-12-06T04:53:59.366Z","updated_at":"2026-12-06T04:53:59.366Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"table_id","type":"string","description":"FSO id of the table.","required":false,"coverage":1,"example":"px-x-0102020000_201"},{"name":"title","type":"string","description":"Title of the table.","required":false,"coverage":1,"example":"Demographic balance by institutional units"},{"name":"updated_at","type":"datetime","description":"When the FSO last updated the table (as published, Swiss time).","required":false,"coverage":1,"example":"2026-08-20T08:34:56.000Z"},{"name":"dimension","type":"string","description":"The category the value belongs to, such as 'Demographic component: Live birth'.","required":false,"coverage":1,"example":"Demographic component: Population on 1 January"},{"name":"period","type":"string","description":"The period of the value, such as 2024.","required":false,"coverage":1,"example":"2023"},{"name":"value","type":"number","description":"The published value.","required":false,"coverage":1,"example":8815385}],"inputs":[{"name":"table_id","type":"string","description":"FSO table id, such as px-x-0102020000_201.","example":"px-x-0102020000_201","required":true},{"name":"periods","type":"integer","description":"How many of the latest periods (years, months) to return, 1 to 100.","default":5,"example":5}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"dimension":{"description":"The category the value belongs to, such as 'Demographic component: Live birth'.","type":"string"},"period":{"description":"The period of the value, such as 2024.","type":"string"},"table_id":{"description":"FSO id of the table.","type":"string"},"title":{"description":"Title of the table.","type":"string"},"updated_at":{"description":"When the FSO last updated the table (as published, Swiss time).","format":"date-time","type":"string"},"value":{"description":"The published value.","type":"number"}},"required":[],"title":"Switzerland FSO Statistics API","type":"object"},"samples":[{"table_id":"px-x-0102020000_201","title":"Demographic balance by institutional units","updated_at":"2026-08-20T08:34:56.000Z","dimension":"Demographic component: Population on 1 January","period":"2023","value":8815385},{"table_id":"px-x-0102020000_201","title":"Demographic balance by institutional units","updated_at":"2026-08-20T08:34:56.000Z","dimension":"Demographic component: Live birth","period":"2023","value":80024},{"table_id":"px-x-0102020000_201","title":"Demographic balance by institutional units","updated_at":"2026-08-20T08:34:56.000Z","dimension":"Demographic component: Death","period":"2023","value":71822}],"validation":{"checked_at":"2026-12-06T04:53:59.363Z","field_coverage":{"dimension":1,"period":1,"table_id":1,"title":1,"updated_at":1,"value":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_9eaa6cf5df3194111276464f/run","openapi":"https://pullrow.dev/v1/apis/api_9eaa6cf5df3194111276464f/openapi.json","contract":"https://pullrow.dev/v1/apis/api_9eaa6cf5df3194111276464f/contract.json","page":"https://pullrow.dev/catalog/switzerland-bfs-statistics"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["You must give the table id (such as px-x-0102020000_201); the source lists ids without titles, so there is no keyword search across tables.","Only the latest periods are returned (default 5, at most 100 per run).","Categories that the table lets you total up (for example canton or sex) are returned as the table total; only the categories every table row needs are listed separately.","A table that would produce more than 5,000 cells for the chosen periods is refused; lower periods.","Values are numbers as published; periods or cells with no published value come back as null.","The source asks for modest use: this API keeps about one request every 1.5 seconds.","Open government data of the Swiss Federal Statistical Office (FSO); credit the FSO when you publish it."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"table_id","label":"Table ID","description":"FSO id of the table.","group":"Technical","shown":false,"written":false},{"name":"title","label":"Title","description":"Title of the table.","group":"Basics","shown":true,"written":false},{"name":"updated_at","label":"Updated","description":"When the FSO last updated the table (as published, Swiss time).","group":"Dates","shown":true,"written":false},{"name":"dimension","label":"Dimension","description":"The category the value belongs to, such as 'Demographic component: Live birth'.","group":"Basics","shown":true,"written":false},{"name":"period","label":"Period","description":"The period of the value, such as 2024.","group":"Basics","shown":true,"written":false},{"name":"value","label":"Value","description":"The published value.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"table_id","label":"Table ID","help":"FSO table id, such as px-x-0102020000_201.","example":"px-x-0102020000_201","written":false},{"name":"periods","label":"Periods","help":"How many of the latest periods (years, months) to return, 1 to 100.","example":"5","written":false}]}},"incidents":[]}