---
title: "Get a specific file from a data package version."
method: GET
path: "/dataPackages/{dataPackageId}/versions/{versionId}/downloads"
tags: ["Data Packages"]
---

# Get a specific file from a data package version.

`GET /dataPackages/{dataPackageId}/versions/{versionId}/downloads`

## Request

- Base URL: `https://api.os.uk/downloads/v1`
- URL: `https://api.os.uk/downloads/v1/dataPackages/{dataPackageId}/versions/{versionId}/downloads`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.os.uk/oauth2/token/v1`
  - API key in query parameter `key`
  - API key in header `key`

## Path parameters

- `dataPackageId` string, required
- `versionId` string, required

## Query parameters

- `fileName` string, required

## Other responses

- `307`: A redirect to the actual file data.
- `401`: The API key or OAuth 2 access token is missing or invalid.
- `404`: The request does not match any known content. The response will contain a human readable message, and may also contain links to help you navigate to other API endpoints.

---

[API](https://skmtc.dev/ordnance-survey/apis/ordnance-survey-download-api.md) - [All operations](https://skmtc.dev/ordnance-survey/apis/ordnance-survey-download-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ordnance-survey/apis/ordnance-survey-download-api/revisions/c2df1360dd0b?raw)
