{"source":"eurostat","operation":"get_table_data","description":"Query a dataset and return it as labeled rows. Signature: get_table_data(table_id: string, required; selections: JSON object, required; last_periods: integer, optional, default None; since: string, optional, default None; until: string, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"get_table_data(table_id: string, required; selections: JSON object, required; last_periods: integer, optional, default None; since: string, optional, default None; until: string, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"table_id","type":"string","schema":{"type":"string"},"required":true,"default":null,"description":"Eurostat dataset code, e.g. \"nama_10_gdp\".","unit":null},{"name":"selections","type":"object","schema":{"additionalProperties":true,"type":"object"},"required":true,"default":null,"description":"Dict of {dimension_id: [codes]} using ids and codes from get_table_metadata(), e.g. {\"geo\": [\"NO\", \"SE\", \"EU27_2020\"], \"na_item\": [\"B1GQ\"], \"unit\": [\"CP_MEUR\"]}. Codes are case-insensitive. An omitted dimension returns all its values, so filter at least one non-time dimension; unfiltered datasets run to tens or hundreds of MB and are refused. Explicit periods go in \"time\" (e.g. {\"time\": [\"2022\", \"2023\"]}) instead of the options below.","unit":null},{"name":"last_periods","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"Return only the latest N periods (e.g. 5).","unit":null},{"name":"since","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"First period to include, e.g. \"2015\" or \"2024-Q1\".","unit":null},{"name":"until","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Last period to include (may be combined with since).","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"display_type":"integer","required":false,"default":25,"description":"Maximum list items returned by the gateway (default 25, maximum 100).","unit":"items"},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/eurostat/get_table_data?table_id={table_id}&selections={selections}&last_periods={last_periods}&since={since}&until={until}&limit=25&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"updated":{"type":["string","null"]},"unit":{"type":["string","null"]},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","null"]}}},"total_cells":{"type":"integer"},"returned":{"type":"integer"},"truncated":{"type":"boolean"},"flag_legend":{"type":"object","additionalProperties":{"type":"string"}},"note":{"type":["string","null"]}},"additionalProperties":false,"required":["id","rows","total_cells","returned","truncated","flag_legend"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"intentionally_none","entity_types":[],"description":"No stable cross-source entity projection is defined for this operation; entities is intentionally empty."},"error_contract":{"scope":"top-level HTTP error response; never part of a success payload","schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"details":{"type":"object"}},"additionalProperties":false,"required":["code","message","retryable"]},"suggestion":{"type":"string"},"_meta":{"type":"object","properties":{"retrieved_at":{"type":"string","format":"date-time"},"language":{"type":"string","const":"en"},"content_languages":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"object"}}},"required":["retrieved_at","language","content_languages","sources"]},"_links":{"type":"object","properties":{"self":{"type":"string","format":"uri"},"api_index":{"type":"string","format":"uri"},"feedback":{"type":"string","format":"uri"}},"required":["self","api_index","feedback"],"additionalProperties":false}},"additionalProperties":false,"required":["error","suggestion","_meta","_links"]},"statuses":{"400":{"codes":["MISSING_PARAMETER","INVALID_PARAMETER","INVALID_REQUEST"],"retryable":false},"404":{"codes":["SOURCE_NOT_FOUND","OPERATION_NOT_FOUND","ENTITY_NOT_FOUND"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"502":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":true}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/eurostat/get_table_data/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/eurostat/get_table_data","source":"https://allemannsdata.com/wiki/api/v1/kilder/eurostat","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["id","title","updated","unit","rows","total_cells","returned","truncated","flag_legend","note"],"output_fields_truncated":false,"canonical_field_aliases":{"identifier":["id"],"name":["title"]},"response_example":{"source":"eurostat","operation":"get_table_data","parameters":{"table_id":"example-id","selections":{},"last_periods":1,"since":"example value","until":"example value"},"data":{"id":"example-id","title":"Example","updated":"2026-01-15T12:00:00Z","unit":"example value","rows":[{"example_key":"example value"}],"total_cells":1,"returned":1,"truncated":true,"flag_legend":{"example_key":"example value"},"note":"example value"},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"eurostat","name":"Eurostat","description":"Search Eurostat's ~6,600 EU datasets (Norway included) and fetch dimensions, codes and statistics flattened from JSON-stat 2.0.","cache_ttl_seconds":300,"documentation":"https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access"}]},"_provenance":{"data":{"source":"eurostat","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/eurostat"},"entities":{"source":"eurostat","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/eurostat","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/eurostat/get_table_data","source":"https://allemannsdata.com/wiki/api/v1/kilder/eurostat","wiki":"https://allemannsdata.com/wiki/kilder/eurostat/get_table_data/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
