---
title: "Get all variant data by PGP-UK hex id"
method: GET
path: "/variant/{pgp_hex_id}"
tags: ["Variant Data"]
---

# Get all variant data by PGP-UK hex id

`GET /variant/{pgp_hex_id}`

## Request

- Base URL: `https://www.personalgenomes.org.uk/api/v1.3`
- URL: `https://www.personalgenomes.org.uk/api/v1.3/variant/{pgp_hex_id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/pgp-uk/apis/personal-genome-project-uk/docs/variant/:pgp_hex_id/get.ts> (a function with typed inputs; its response is checked against the schema)

This will return an object containing all the data associated with this PGP-UK participant

## Path parameters

- `pgp_hex_id` string, required: PGP-UK unique participant id

## Response `200`

Success

- object[]: Variant data
  - `test` string
  - `analysis_accession` string
  - `study_accession` string
  - `secondary_study_accession` string
  - `sample_accession` string
  - `secondary_sample_accession` string
  - `analysis_title` string
  - `analysis_type` string
  - `center_name` string
  - `first_public` string
  - `last_updated` string
  - `study_title` string
  - `tax_id` string
  - `scientific_name` string
  - `analysis_alias` string
  - `study_alias` string
  - `submitted_bytes` string
  - `submitted_md5` string
  - `submitted_ftp` string
  - `submitted_aspera` string
  - `submitted_galaxy` string
  - `sample_alias` string
  - `broker_name` string
  - `sample_title` string
  - `type` string
  - `meta_data_source` string

## Other responses

- `404`: Participant not found

## Changes

- **2018-12-12** `16553e3027b1`: 25 info
  - added the optional property `items/analysis_accession` to the response with the `200` status
  - added the optional property `items/analysis_alias` to the response with the `200` status
  - added the optional property `items/analysis_title` to the response with the `200` status
  - added the optional property `items/analysis_type` to the response with the `200` status
  - …21 more
- **2018-12-11** `b25b9654e3d4`: 25 warning
  - removed the optional property `items/analysis_accession` from the response with the `200` status
  - removed the optional property `items/analysis_alias` from the response with the `200` status
  - removed the optional property `items/analysis_title` from the response with the `200` status
  - removed the optional property `items/analysis_type` from the response with the `200` status
  - …21 more

[Operation history](https://skmtc.dev/pgp-uk/apis/personal-genome-project-uk/changes/variant/:pgp_hex_id/get.md)

---

[API](https://skmtc.dev/pgp-uk/apis/personal-genome-project-uk.md) - [All operations](https://skmtc.dev/pgp-uk/apis/personal-genome-project-uk/llms.txt) - [OpenAPI document](https://skmtc.dev/pgp-uk/apis/personal-genome-project-uk/revisions/26f2eb33c4d8?raw)
