GET /metagenomics/api/v1/samples/ERS746798?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "data": {
        "type": "samples",
        "id": "ERS746798",
        "attributes": {
            "latitude": 51.5,
            "longitude": -0.12,
            "sample-metadata": [
                {
                    "key": "investigation type",
                    "value": "metagenome",
                    "unit": null
                },
                {
                    "key": "project name",
                    "value": "KCL_twins",
                    "unit": null
                },
                {
                    "key": "geographic location (longitude)",
                    "value": "-0.12",
                    "unit": null
                },
                {
                    "key": "geographic location (country and/or sea,region)",
                    "value": "United Kingdom",
                    "unit": null
                },
                {
                    "key": "collection date",
                    "value": "2010-01-01",
                    "unit": null
                },
                {
                    "key": "environment (biome)",
                    "value": "human gut",
                    "unit": null
                },
                {
                    "key": "environment (feature)",
                    "value": "human-associated habitat",
                    "unit": null
                },
                {
                    "key": "environment (material)",
                    "value": "faeces",
                    "unit": null
                },
                {
                    "key": "environmental package",
                    "value": "human-gut",
                    "unit": null
                },
                {
                    "key": "sequencing method",
                    "value": "Illumina",
                    "unit": null
                },
                {
                    "key": "host taxid",
                    "value": "9606",
                    "unit": null
                },
                {
                    "key": "geographic location (latitude)",
                    "value": "51.5",
                    "unit": null
                },
                {
                    "key": "ENA checklist",
                    "value": "ERC000015",
                    "unit": null
                },
                {
                    "key": "host scientific name",
                    "value": "Homo sapiens",
                    "unit": null
                }
            ],
            "biosample": "SAMEA3449236",
            "accession": "ERS746798",
            "analysis-completed": null,
            "collection-date": "2010-01-01",
            "geo-loc-name": null,
            "sample-desc": "Stool sample from british twins",
            "environment-biome": "human gut",
            "environment-feature": "human-associated habitat",
            "environment-material": "faeces",
            "sample-name": "YSZC12003_37194",
            "sample-alias": "YSZC12003_37194",
            "host-tax-id": 9606,
            "species": "Homo sapiens",
            "last-update": "2020-05-21T14:48:26"
        },
        "relationships": {
            "biome": {
                "data": {
                    "type": "biomes",
                    "id": "root:Host-associated:Human:Digestive system:Large intestine:Fecal"
                },
                "links": {
                    "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Host-associated:Human:Digestive%20system:Large%20intestine:Fecal?format=api"
                }
            },
            "studies": {
                "links": {
                    "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/ERS746798/studies?format=api"
                },
                "data": [
                    {
                        "type": "studies",
                        "id": "MGYS00005375",
                        "links": {
                            "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00005375?format=api"
                        }
                    },
                    {
                        "type": "studies",
                        "id": "MGYS00005376",
                        "links": {
                            "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00005376?format=api"
                        }
                    }
                ]
            },
            "runs": {
                "links": {
                    "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/ERS746798/runs?format=api"
                }
            }
        },
        "links": {
            "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/ERS746798?format=api"
        }
    }
}