Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data package version ID

API test authentication

Get a specific data package version, including details of the files that are available to download.

get
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
dataPackageIdstringRequired

The id of the data package.

versionIdstringRequired

The id of the data package version, or the string 'latest'.

Responses
200

A data package version, including download details.

application/json

Summary information about a data package version.

idstringRequiredExample: 110012
urlstring · uriRequiredExample: https://api.os.uk/downloads/v1/dataPackages/0040046952/versions/110012
createdOnstring · dateRequiredExample: 2021-04-01
reasonstring · enumRequiredPossible values:
supplyTypestring · enumRequiredPossible values:
productVersionstringRequiredExample: E37 December 2015 Update
formatstringOptionalExample: CSV
dataPackageUrlstring · uriOptionalExample: https://api.os.uk/downloads/v1/dataPackages/0040046952
nextVersionUrlstring · uriOptional

Only populated if there is a newer version of the data package.

Example: https://api.os.uk/downloads/v1/dataPackages/0040046952/versions/110013
previousVersionUrlstring · uriOptional

Only populated if there is an older version of the data package.

Example: https://api.os.uk/downloads/v1/dataPackages/0040046952/versions/110011
get/dataPackages/{dataPackageId}/versions/{versionId}
GET /downloads/v1/dataPackages/{dataPackageId}/versions/{versionId} HTTP/1.1
Host: api.os.uk/
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "id": "110012",
  "url": "https://api.os.uk/downloads/v1/dataPackages/0040046952/versions/110012",
  "createdOn": "2021-04-01",
  "reason": "INITIAL",
  "supplyType": "FULL",
  "productVersion": "E37 December 2015 Update",
  "format": "CSV",
  "dataPackageUrl": "https://api.os.uk/downloads/v1/dataPackages/0040046952",
  "nextVersionUrl": "https://api.os.uk/downloads/v1/dataPackages/0040046952/versions/110013",
  "previousVersionUrl": "https://api.os.uk/downloads/v1/dataPackages/0040046952/versions/110011",
  "downloads": [
    {
      "url": "https://example.com",
      "fileName": "data.zip",
      "size": 1234,
      "md5": "2f9dd13abd56140afa3b5621e8864f59"
    }
  ]
}

Last updated

Was this helpful?