Public
Get metadata for a version
Get all metadata relevant to a version
get/datasets/{id}/editions/{edition}/versions/{version}/metadata
Request
- Base URLhttps://api.beta.ons.gov.uk/v1
- Auth
- none
- or API key in header Authorization
Path parameters
editionstring required
An edition of a dataset
idstring required
ID that represents a dataset
versionstring required
A version of a dataset
Response
Json object containing all metadata for a version
Example response
{
"alerts": [
{
"description": "This is a description of the changes made as part of the correction or other important notice about this version.",
"type": "correction"
}
],
"canonical_topic": "7779",
"contacts": [
{
"email": "example@ons.gov.uk",
"name": "Expert Statistical Team",
"telephone": "+44 1234 111111"
}
],
"dataset_id": "my-dataset",
"dataset_links": {
"editions": {
"href": "https://api.beta.ons.gov.uk/v1/datasets/my-dataset/editions"
},
"latest_version": {
"href": "https://api.beta.ons.gov.uk/v1/datasets/my-dataset/editions/july-september-2017/versions/5",
"id": "5"
},
"latest_edition": {
"href": "https://api.beta.ons.gov.uk/v1/datasets/my-dataset/editions/july-september-2017"
},
"self": {
"href": "https://api.beta.ons.gov.uk/v1/datasets/my-dataset"
},
"taxonomy": {
"href": "https://www.ons.gov.uk/theme/topic"
}
},
"description": "This dataset contains some very interesting data about the UK.",
"dimensions": [
{
"links": {
"version": {
"href": "https://api.beta.ons.gov.uk/v1/datasets/my-dataset/editions/july-september-2017/versions/5",
"id": "5"
}
}
}
],
"distribution": [
"csv"
],
"distributions": [
{
"title": "Full Dataset (CSV)",
"download_url": "https://download.ons.gov.uk/my-dataset-download.csv",
"byte_size": 4300000
}
],
"downloads": {
"csv": {
"href": "https://download.ons.gov.uk/my-dataset-download.csv",
"size": "123456"
},
"csvw": {
"href": "https://download.ons.gov.uk/my-dataset.metadata.json",
"size": "123456"
},
"txt": {
"href": "https://download.ons.gov.uk/my-dataset.metadata.txt",
"size": "123456"
},
"xls": {
"href": "https://download.ons.gov.uk/my-dataset.xls",
"size": "123456"
}
},
"edition": "july-september-2017",
"edition_title": "July to September 2017",
"headers": [
"cantabular_table",
"ltla",
"ethnic_group_tb_8a"
],
"keywords": [
"Inflation"
],
"latest_changes": [
{
"description": "Some estimates for the periods between April 2011 and March 2019 have been updated. This is because of changes in guidance on suppressing data, where estimates are no longer required to be suppressed solely based on their co-efficient of variation (CV) values.",
"name": "Data Suppression Changes"
}
],
"links": {
"self": {
"href": "https://api.beta.ons.gov.uk/v1/datasets/my-dataset/editions/july-september-2017/versions/5/metadata"
},
"version": {
"href": "https://api.beta.ons.gov.uk/v1/datasets/my-dataset/editions/july-september-2017/versions/5",
"id": "5"
},
"website_version": {
"href": "https://www.ons.gov.uk/datasets/my-dataset/editions/july-september-2017/versions/5"
}
},
"methodologies": [
{
"href": "https://www.ons.gov.uk/my-related-page",
"title": "Related Link Title",
"description": "This is a description of the linked resource."
}
],
"next_release": "To be announced",
"publications": [
{
"href": "https://www.ons.gov.uk/my-related-page",
"title": "Related Link Title",
"description": "This is a description of the linked resource."
}
],
"state": "published",
"qmi": {
"href": "https://www.ons.gov.uk/businessindustryandtrade/retailindustry/methodologies/retailsalesindexrsiqmi"
},
"related_content": [
{
"href": "https://www.ons.gov.uk/my-related-page",
"title": "Related Link Title",
"description": "This is a description of the linked resource."
}
],
"related_datasets": [
{
"href": "https://www.ons.gov.uk/my-related-page",
"title": "Related Link Title",
"description": "This is a description of the linked resource."
}
],
"release_frequency": "Monthly",
"subtopics": [
"7755"
],
"survey": "census",
"title": "Consumer Prices Index",
"topics": [
"7779",
"7755"
],
"type": "static",
"unit_of_measure": "Number of people",
"usage_notes": [
{
"title": "Data Suppression",
"note": "Individual estimates suppressed with \"[c]\" relate to statistics based on a small number of respondents (< 5). Such values have been suppressed on quality grounds and to maintain confidentiality."
}
],
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.