{"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},"version":"1.0","contract_hash":"f42de2b3dc1ac754fe486ed4f15faf26b2f08c9d141f66040b94217dd62c9164","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T04:53:59.366Z","activated_at":"2026-12-06T04:53:59.366Z","active":true,"contract_hash":"f42de2b3dc1ac754fe486ed4f15faf26b2f08c9d141f66040b94217dd62c9164","fields_count":6}]}