{"id":"140e39cc-a006-4579-845b-458d7806a36b","type":"API","name":"Foreign background, 20+ - Statistical data for Malmö's areas","slug":"foreign-background-20-statistical-data-for-malmos-areas","description":"The variable indicates whether an individual is foreign-born, born in Sweden with two foreign parents or other Swedish-born population. Data from the Register of Total Population (RTB). Only persons 20 years or older. Available broken down by gender. Variable description You find it here API Using the API call https://opendata%2dapi.malmo.se/api/3/action/resourcesearch?query=description:malm%C3%B6%20statistics,_ you can retrieve all data sets that contain statistical data for Malmö's areas in JSON format. In each instance of result/results in the JSON result, there is an \"id\" property for each resource. The value of \"id\" can be used to retrieve the data for the respective statistics variable (according to the value of the \"name\" property). API call to retrieve the statistics data: https://opendata%2dapi.malmo.se/api/3/action/datastoresearch?resource_id=[id value]_ Feel free to use the numbers, but cite “City Office, Malmö City” as the source.","free_access_class":"UNKNOWN","auth_type":"UNKNOWN","homepage_url":null,"docs_url":null,"repo_url":"https://opendata-api.malmo.se/dataset/52c2ca0d-7930-457f-aaf4-42c939ebca2a/resource/69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c/download/utlandsk-bakgrund-20.csv","status":"ACTIVE","verification_state":"VERIFIED","tags":["housing"],"logo_url":"https://www.google.com/s2/favicons?sz=64&domain=opendata-api.malmo.se","primary_source_url":"https://opendata-api.malmo.se/dataset/52c2ca0d-7930-457f-aaf4-42c939ebca2a/resource/69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c/download/utlandsk-bakgrund-20.csv","extraction_confidence":"0.28","created_at":"2026-07-11T12:12:49.243Z","updated_at":"2026-12-01T03:58:15.798Z","last_verified_at":"2026-12-01T03:58:15.798Z","deprecated_at":null,"ranking_score":33,"last_ranked_at":"2026-11-18T13:08:51.383Z","last_seen_at":null,"last_validated_at":null,"last_uptime_at":"2026-11-28T02:38:51.177Z","popularity_score":"0.0000","maintenance_score":"0.6000","institution_id":null,"institution_type":null,"country_code":null,"official_confidence":null,"proof_summary":null,"source_seed_url":null,"is_public_sector":true,"published_at":"2026-07-12T12:20:43.877Z","geographic_scope":"LOCAL","name_en":null,"description_en":"This API provides statistical data on the foreign-background status of residents aged 20 and over in Malmö's areas, distinguishing between foreign-born individuals, Swedish-born individuals with two foreign-born parents, and other Swedish-born residents. The underlying source is the Register of Total Population (RTB), and figures can be broken down by gender. Data can be retrieved by querying Malmö's open data API for datasets tagged with Malmö statistics, then using the returned resource IDs to fetch the corresponding statistical variables via a dedicated datastore search endpoint. Users are asked to cite the City Office, City of Malmö as the source when reusing the figures.","native_lang":"en","access_level":"direct","formats":[],"capability_tier":"live","trust_score":36,"merged_into_entry_id":null,"identity_key":"API|https://opendata-api.malmo.se/dataset/52c2ca0d-7930-457f-aaf4-42c939ebca2a/resource/69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c/download/utlandsk-bakgrund-20.csv|foreign background, 20+ - statistical data for malmö's areas","upstream_ref":null,"content_changed_at":"2026-11-30T10:05:50.772Z","upstream_gone_checks":0,"upstream_gone_since":null,"description_en_local_failures":0,"institution":null,"title_qualifier":null,"access":{"level":"direct","primary":{"kind":"query","label":"List records","method":"GET","url":"https://opendata-api.malmo.se/api/3/action/datastore_search?resource_id=69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c&limit=20","source":"query_example","runnable":true,"direct":true},"actions":[{"kind":"query","label":"List records","method":"GET","url":"https://opendata-api.malmo.se/api/3/action/datastore_search?resource_id=69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c&limit=20","source":"query_example","runnable":true,"direct":true},{"kind":"query","label":"Filter records","method":"GET","url":"https://opendata-api.malmo.se/api/3/action/datastore_search?resource_id=69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c&limit=20&q=%7B%22Huvudkategori%22%3A%22%3Cvalue%3E%22%7D","source":"query_example","runnable":true,"direct":true},{"kind":"query","label":"Run verified request","method":"GET","url":"https://opendata-api.malmo.se","source":"probe","runnable":true},{"kind":"query","label":"Dataset metadata","method":"GET","url":"https://opendata-api.malmo.se/api/3/action/package_show?id=52c2ca0d-7930-457f-aaf4-42c939ebca2a","source":"query_example","runnable":true,"direct":false},{"kind":"landing","label":"Open source record","method":"GET","url":"https://opendata-api.malmo.se/dataset/52c2ca0d-7930-457f-aaf4-42c939ebca2a/resource/69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c/download/utlandsk-bakgrund-20.csv","source":"primary_source","runnable":false}],"formats":[]},"maturity":{"entry_id":"140e39cc-a006-4579-845b-458d7806a36b","granularity":"entry","granularity_label":"One unit = one catalog entry. A PROXY for the SCOPE.md §4 ladder, which governs source families, not entries: a family with 400 entries moves this reading 400 times as much as a family with one. Never compare or combine with the source_family reading.","level":"executable","level_index":4,"level_label":"Executable","meaning":"Queries run through Commodity","counts_as_coverage":true,"blocked_by":null,"rungs":[{"level":"discovered","level_index":1,"label":"Discovered","meaning":"Source and metadata recorded","evidence":"membership of the named population the ladder is taken over","counts_as_coverage":false,"met":true,"reached":true,"criterion":"TRUE"},{"level":"verified","level_index":2,"label":"Verified","meaning":"Access tested successfully","evidence":"entries.verification_state = 'VERIFIED'","counts_as_coverage":false,"met":true,"reached":true,"criterion":"entries.verification_state = 'VERIFIED'"},{"level":"profiled","level_index":3,"label":"Profiled","meaning":"Schema, dimensions and licence understood","evidence":"a data profile with at least one field (entry_data_profiles.field_count > 0)","counts_as_coverage":false,"met":true,"reached":true,"criterion":"EXISTS (SELECT 1 FROM entry_data_profiles p WHERE p.entry_id = entries.id AND COALESCE(p.field_count, 0) > 0)"},{"level":"executable","level_index":4,"label":"Executable","meaning":"Queries run through Commodity","evidence":"entries.capability_tier = 'live' — today's proxy for \"queryable through us\"","counts_as_coverage":true,"met":true,"reached":true,"criterion":"entries.capability_tier = 'live'"},{"level":"joinable","level_index":5,"label":"Joinable","meaning":"Canonical identifiers and concepts mapped","evidence":"a field link to a canonical identifier whose sampled VALUES match its format, on a field the current profile still has (entry_data_profiles.fields names it, field_count > 0)","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM entry_field_links efl JOIN entry_data_profiles jp ON jp.entry_id = efl.entry_id WHERE efl.entry_id = entries.id AND efl.identifier_id IS NOT NULL AND efl.value_status = 'match' AND COALESCE(jp.field_count, 0) > 0 AND COALESCE(jp.fields @> jsonb_build_array(jsonb_build_object('name', efl.field_name)), false))"},{"level":"reproducible","level_index":6,"label":"Reproducible","meaning":"Snapshots and transformation evidence retained","evidence":"at least one retained evidence manifest (migration 078) that names at least one column, every one of them a field of the current profile — except, on a grouped citation, the computed columns 'count' and '<fn>_<field>'","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM evidence_manifests em JOIN entry_data_profiles rp ON rp.entry_id = em.entry_id WHERE em.entry_id = entries.id AND COALESCE(rp.field_count, 0) > 0 AND jsonb_array_length(em.columns) > 0 AND (CASE WHEN em.query_params ? 'aggregate' THEN em.columns - 'count' - (COALESCE(em.query_params->'aggregate'->>'fn', '') || '_' || COALESCE(em.query_params->'aggregate'->>'field', '')) ELSE em.columns END) <@ COALESCE((SELECT jsonb_agg(f->'name') FROM jsonb_array_elements(CASE WHEN jsonb_typeof(rp.fields) = 'array' THEN rp.fields END) f), '[]'::jsonb))"},{"level":"guaranteed","level_index":7,"label":"Guaranteed","meaning":"Monitored against an operational reliability target","evidence":"an active reliability target with a named monitor (migration 096)","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM entry_reliability_targets rt WHERE rt.entry_id = entries.id AND rt.is_active = true)"}],"officialness":{"basis":"catalog_inherited","label":"Inherited from the upstream catalog: this item came from a trusted official government catalog, and that provenance — not per-item proof — is the warrant. Its own proof score is below 80 or it matched no registered institution (apps/worker/src/connectors/catalog/qualify-store.ts).","proof_confidence":null,"proven_threshold":80,"institution_id":null,"definition":"CASE WHEN COALESCE(entries.is_public_sector, false) IS NOT TRUE THEN 'not_official' WHEN COALESCE(entries.official_confidence, 0) >= 80 AND entries.institution_id IS NOT NULL THEN CASE WHEN EXISTS (SELECT 1 FROM api_candidates oc WHERE oc.merged_into_entry_id = entries.id AND oc.official_confidence >= 80 AND oc.proposed_institution_id IS NOT NULL) THEN 'per_item_proven' ELSE 'integrator_asserted' END ELSE 'catalog_inherited' END"},"source_family":{"key":"opendata-api.malmo.se","label":"One unit = one source family, approximated by the serving host of the entry's primary source URL (e.g. bdl.stat.gov.pl). A COMPUTED stand-in for the curated families of SCOPE.md §5, which no table holds yet. A family sits at the highest level any of its entries has reached, because a family is integrated to the depth of its deepest working integration. Never compare or combine with the entry reading."},"generated_at":"2026-12-01T07:52:42.011Z"},"update_schedule":{"last_update":"2026-11-27T08:57:59.848Z","declared_frequency":"continuous","next_update":null,"next_update_basis":null,"next_update_source_url":null,"predicted":false,"next_update_tentative":false,"confidence":null,"overdue":false,"overdue_since":null,"method":"The declared frequency \"continuous\" has no period, and too few changes have been observed to predict one."},"legal_basis":{"source":"data.europa.eu High-Value Dataset records (dcatap:applicableLegislation), matched to this entry by URL","legislation":[],"statements":[],"record_publishers":[],"harvested_at":null},"distribution_role":{"role":"undetermined","basis":"native_record_publisher_not_linked_institution","source_catalogue":null,"source_url":null},"publisher_organisation":null,"api_details":{"id":"a0109e3b-c749-4c03-8bed-e11856a3ab38","entry_id":"140e39cc-a006-4579-845b-458d7806a36b","base_url":"https://opendata-api.malmo.se","openapi_url":null,"graphql_url":null,"api_version":null,"spec_format":"rest","endpoints_count":null,"endpoints":[],"rate_limit_info":null,"free_tier_limits":null,"ping_url":null,"created_at":"2026-07-11T12:12:49.404Z","updated_at":"2026-07-11T12:12:49.404Z"},"dataset_details":{"id":"c0e94fce-8c9f-461c-b302-d417c0025f08","entry_id":"140e39cc-a006-4579-845b-458d7806a36b","upstream_issued":null,"upstream_modified":"2026-11-27T08:57:59.848Z","themes":[],"update_frequency":"continuous","temporal_start":null,"temporal_end":null,"spatial_coverage":null,"landing_page":null,"license_id":null,"license_raw":null,"has_documentation":false,"has_data_dictionary":false,"has_versioning":false,"source_portal":"ckan","source_portal_url":"https://opendata-api.malmo.se","created_at":"2026-07-11T12:14:32.851Z","updated_at":"2026-11-30T10:05:50.269Z","publisher":"Stadskontoret","publisher_url":"https://opendata-api.malmo.se/organization/stadskontoret","record_origin":"native","record_source_catalogue":null,"record_source_url":null,"publisher_register_scheme":null,"publisher_register_id":null,"distributions":[],"license":null},"license":{"id":"cc0-1.0","spdx_id":"CC0-1.0","name":"Creative Commons Zero 1.0 Universal","url":"https://creativecommons.org/publicdomain/zero/1.0/","is_open":true,"is_redistributable":true,"requires_attribution":false,"category":"public_domain","notes":null,"created_at":"2026-06-12T16:29:19.729Z"},"reuse":{"license_id":"cc0-1.0","license_name":"Creative Commons Zero 1.0 Universal","license_url":"https://creativecommons.org/publicdomain/zero/1.0/","commercial_use":{"status":"yes","value":true},"redistribution":{"status":"yes","value":true},"attribution_required":{"status":"no","value":false},"share_alike":{"status":"no","value":false},"personal_data_warning":{"status":"yes","value":true},"cache_and_mirror":{"status":"yes","value":true},"derivatives":{"status":"yes","value":true},"undetermined":[],"basis":"licence_text","confidence":0.95,"confidence_tier":"high","source_text":"Deed: \"You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.\" The deed adds that the work may still be subject to \"publicity, image, or privacy rights that allow a person to control how their voice, image or likeness is used\". No attribution term and no share-alike term appear.","source_url":"https://creativecommons.org/publicdomain/zero/1.0/","reviewed_at":null},"license_raw":"http://www.opendefinition.org/licenses/cc-zero","licence":{"licence_id":"cc0-1.0","status":"stated","basis":"licence_text","terms":[],"redistribution":"yes","commercial":"yes","licence_url":"https://creativecommons.org/publicdomain/zero/1.0/","licence_raw":"http://www.opendefinition.org/licenses/cc-zero","source_url":null,"notice":"licence: cc0-1.0 — publisher states: “http://www.opendefinition.org/licenses/cc-zero”"},"latest_check":{"id":"44aecffd-56d2-42a3-8f1c-670315ca1e1e","entry_id":"140e39cc-a006-4579-845b-458d7806a36b","status":"VERIFIED","last_checked_at":"2026-12-01T03:58:15.566Z","p50_latency_ms":3124,"p95_latency_ms":null,"last_error":null,"consecutive_failures":0,"created_at":"2026-07-11T12:14:27.105Z","updated_at":"2026-12-01T03:58:15.566Z","consecutive_successes":3,"probe_url":"https://opendata-api.malmo.se","probe_method":"GET","probe_http_status":200,"probe_content_type":"text/html; charset=utf-8","probe_succeeded_at":"2026-12-01T03:58:15.566Z"},"data_profile":{"id":"2adc2e69-72bd-4521-af0a-78b41abd5ea6","entry_id":"140e39cc-a006-4579-845b-458d7806a36b","profile_source":"ckan","profile_kind":"dataset","dataset_id":"52c2ca0d-7930-457f-aaf4-42c939ebca2a","fields":[{"name":"Huvudkategori","type":"text","label":null,"filterable":true,"description":null,"description_en":"Main category of the statistical variable.","description_en_by":"local:qwen-agent"},{"name":"Ar","type":"text","label":null,"filterable":true,"description":null,"description_en":"Calendar year for the statistical data.","description_en_by":"local:qwen-agent"},{"name":"Geografityp","type":"text","label":null,"filterable":true,"description":null,"description_en":"Type of geographical statistical area.","description_en_by":"local:qwen-agent"},{"name":"Geografikod","type":"text","label":null,"filterable":true,"description":null,"description_en":"Code identifying the geographical statistical area.","description_en_by":"local:qwen-agent"},{"name":"Omrade","type":"text","label":null,"filterable":true,"description":null,"description_en":"Name of the Malmö statistical area.","description_en_by":"local:qwen-agent"},{"name":"Underkategori","type":"text","label":null,"filterable":true,"description":null,"description_en":"Subcategory describing the foreign background group.","description_en_by":"local:qwen-agent"},{"name":"Kon","type":"text","label":null,"filterable":true,"description":null,"description_en":"Gender of the population group.","description_en_by":"local:qwen-agent"},{"name":"Antal","type":"text","label":null,"filterable":true,"description":null,"description_en":"Number of persons in the group.","description_en_by":"local:qwen-agent"}],"field_count":8,"sample_records":[{"Ar":"2025","Kon":"Män","_id":228463,"Antal":"4393","Omrade":"1: Västra hamnen, Gamla staden m fl","Geografikod":"GESO01","Geografityp":"Geografiska statistikområden","Huvudkategori":"Bakgrund","Underkategori":"Utrikes född"},{"Ar":"2025","Kon":"Män","_id":228464,"Antal":"5620","Omrade":"2: Kirsebergsstaden, Värnhem m fl","Geografikod":"GESO02","Geografityp":"Geografiska statistikområden","Huvudkategori":"Bakgrund","Underkategori":"Utrikes född"},{"Ar":"2025","Kon":"Män","_id":228465,"Antal":"3375","Omrade":"3: Riseberga, Jägersro m fl","Geografikod":"GESO03","Geografityp":"Geografiska statistikområden","Huvudkategori":"Bakgrund","Underkategori":"Utrikes född"},{"Ar":"2025","Kon":"Män","_id":228466,"Antal":"2428","Omrade":"4: Oxie Kyrkby, Oxievång m fl","Geografikod":"GESO04","Geografityp":"Geografiska statistikområden","Huvudkategori":"Bakgrund","Underkategori":"Utrikes född"},{"Ar":"2025","Kon":"Män","_id":228467,"Antal":"2268","Omrade":"5: Bunkeflostrand, Tygelsjö by m fl","Geografikod":"GESO05","Geografityp":"Geografiska statistikområden","Huvudkategori":"Bakgrund","Underkategori":"Utrikes född"}],"record_count":"38076","data_size_bytes":null,"dataset_count":null,"query_examples":[{"url":"https://opendata-api.malmo.se/api/3/action/package_show?id=52c2ca0d-7930-457f-aaf4-42c939ebca2a","curl":"curl -s 'https://opendata-api.malmo.se/api/3/action/package_show?id=52c2ca0d-7930-457f-aaf4-42c939ebca2a' -H 'Accept: application/json'","label":"Dataset metadata","method":"GET","description":"Full CKAN dataset record: resources, licence, organization, freshness."},{"url":"https://opendata-api.malmo.se/api/3/action/datastore_search?resource_id=69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c&limit=20","curl":"curl -s 'https://opendata-api.malmo.se/api/3/action/datastore_search?resource_id=69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c&limit=20' -H 'Accept: application/json'","label":"List records","method":"GET","description":"First 20 rows of the DataStore resource as JSON."},{"url":"https://opendata-api.malmo.se/api/3/action/datastore_search?resource_id=69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c&limit=20&q=%7B%22Huvudkategori%22%3A%22%3Cvalue%3E%22%7D","curl":"curl -s 'https://opendata-api.malmo.se/api/3/action/datastore_search?resource_id=69e32fb8-1403-41d9-a0f9-9a4c8d3d7b2c&limit=20&q=%7B%22Huvudkategori%22%3A%22%3Cvalue%3E%22%7D' -H 'Accept: application/json'","label":"Filter records","method":"GET","description":"Filter rows where Huvudkategori matches a value (CKAN DataStore q= JSON syntax; filters= takes exact matches)."}],"status":"ok","error_message":null,"profiled_at":"2026-11-30T10:05:48.911Z","run_id":"82285252-c839-441b-8cfe-d4829d8195c7","created_at":"2026-07-11T12:14:32.363Z","updated_at":"2026-11-30T12:44:03.124Z","license_raw":"http://www.opendefinition.org/licenses/cc-zero","license_id":"cc0-1.0","consecutive_failure_count":0,"last_error_at":null,"last_error_message":null,"fields_with_example_values":8,"example_values_counted_at":"2026-11-30T10:05:48.911Z","ods_features":null,"previewable":true,"declared_periods":null,"declared_areas":null,"declared_population":null,"personal_data":{"status":"none","basis":"no_person_column_cited","grain":"none","allowed":true,"columns":{"direct_identifiers":[],"family_names":[],"given_names":[],"attributes":[],"unresolved_names":[],"measures":[],"entity_identifiers":[]},"publication":null,"publication_evidence":null,"notice":"personal data: no cited column names a natural person (the cited columns are all this reads)"}},"datasets":[],"limits":[],"manifest":{"answer_sha256":"a0a3d6cd330be8f4135bdfb9bd0606e830cca30cc787051861ab0902167f1418","answer_sha256_rule":"sha256 (hex, UTF-8) of JSON.stringify(this body) after deleting the keys listed in manifest.stamped_keys from manifest, and deleting manifest itself if it is then empty. The hash was computed before the stamp existed, so no field of the stamp is inside it.","stamped_keys":["answer_sha256","answer_sha256_rule","stamped_keys","row_count","row_count_basis","live","live_basis","created_at","created_at_basis","durable_citation"],"row_count":28,"row_count_basis":"Objects that are elements of a JSON array anywhere in this body, excluding manifest. Not a claim about which collection is the answer. Largest single collection: data_profile.fields[] (8 rows).","live":false,"live_basis":"This body was replayed from the worker edge cache (x-edge-cache: hit); the bytes, and therefore answer_sha256, are those of the execution that filled the cache.","created_at":"2026-12-01T07:55:05.357Z","created_at_basis":"When this response body was assembled, deliberately OUTSIDE the hashed bytes so the same answer hashes identically on every request. Not the upstream read time — that is provenance[].retrieved_at. A zone-cached replay carries the assembly time, not your receipt time.","durable_citation":"This manifest is produced at response time and is NOT stored. A durable, replayable citation is persisted only on an explicit cite: GET /api/v1/entries/{id-or-slug}/evidence or the MCP cite_query tool for one entry, and POST /api/v1/answer/cite for a domain answer, which stores this same answer_sha256 with the sources the answer consulted."}}