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

{
    "links": {
        "first": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00005821/samples?format=api&page=1",
        "last": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00005821/samples?format=api&page=1",
        "next": null,
        "prev": null
    },
    "data": [
        {
            "type": "samples",
            "id": "SRS3481351",
            "attributes": {
                "latitude": 34.07,
                "longitude": -118.44,
                "biosample": "SAMN09489426",
                "sample-metadata": [
                    {
                        "key": "geographic location (longitude)",
                        "value": "-118.44",
                        "unit": null
                    },
                    {
                        "key": "geographic location (country and/or sea,region)",
                        "value": "USA: UCLA School of Dentistry",
                        "unit": null
                    },
                    {
                        "key": "collection date",
                        "value": "2017-01-01",
                        "unit": null
                    },
                    {
                        "key": "host taxid",
                        "value": "9606",
                        "unit": null
                    },
                    {
                        "key": "geographic location (latitude)",
                        "value": "34.07",
                        "unit": null
                    }
                ],
                "accession": "SRS3481351",
                "analysis-completed": null,
                "collection-date": "2017-01-01",
                "geo-loc-name": null,
                "sample-desc": "Bacterial DNA sequence reads from human saliva",
                "environment-biome": null,
                "environment-feature": null,
                "environment-material": null,
                "sample-name": "Metagenome",
                "sample-alias": "Metagenome",
                "host-tax-id": 9606,
                "species": null,
                "last-update": "2021-10-22T17:36:31"
            },
            "relationships": {
                "biome": {
                    "data": {
                        "type": "biomes",
                        "id": "root:Host-associated:Arthropoda:Digestive system:Oral"
                    },
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Host-associated:Arthropoda:Digestive%20system:Oral?format=api"
                    }
                },
                "runs": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS3481351/runs?format=api"
                    }
                },
                "studies": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS3481351/studies?format=api"
                    },
                    "data": [
                        {
                            "type": "studies",
                            "id": "MGYS00005821",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00005821?format=api"
                            }
                        }
                    ]
                }
            },
            "links": {
                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS3481351?format=api"
            }
        }
    ],
    "meta": {
        "pagination": {
            "page": 1,
            "pages": 1,
            "count": 1
        }
    }
}