GET /metagenomics/api/v1/studies/MGYS00006230/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/MGYS00006230/samples?format=api&page=1",
        "last": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00006230/samples?format=api&page=1",
        "next": null,
        "prev": null
    },
    "data": [
        {
            "type": "samples",
            "id": "SRS9446498",
            "attributes": {
                "biosample": "SAMN20157758",
                "longitude": 119.3,
                "sample-metadata": [
                    {
                        "key": "geographic location (longitude)",
                        "value": "119.3",
                        "unit": null
                    },
                    {
                        "key": "geographic location (country and/or sea,region)",
                        "value": "China: Fuzhou",
                        "unit": null
                    },
                    {
                        "key": "collection date",
                        "value": "2020-05-10",
                        "unit": null
                    },
                    {
                        "key": "environmental package",
                        "value": "Metagenome or environmental",
                        "unit": null
                    },
                    {
                        "key": "geographic location (latitude)",
                        "value": "26.07",
                        "unit": null
                    },
                    {
                        "key": "host scientific name",
                        "value": "Plant",
                        "unit": null
                    }
                ],
                "latitude": 26.07,
                "accession": "SRS9446498",
                "analysis-completed": null,
                "collection-date": null,
                "geo-loc-name": null,
                "sample-desc": "Metagenome or environmental sample from soil metagenome",
                "environment-biome": null,
                "environment-feature": null,
                "environment-material": null,
                "sample-name": "MS metagenome",
                "sample-alias": "MS metagenome",
                "host-tax-id": null,
                "species": null,
                "last-update": "2023-06-15T13:46:24"
            },
            "relationships": {
                "biome": {
                    "data": {
                        "type": "biomes",
                        "id": "root:Host-associated:Plants:Rhizosphere"
                    },
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Host-associated:Plants:Rhizosphere?format=api"
                    }
                },
                "studies": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS9446498/studies?format=api"
                    },
                    "data": [
                        {
                            "type": "studies",
                            "id": "MGYS00006230",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00006230?format=api"
                            }
                        }
                    ]
                },
                "runs": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS9446498/runs?format=api"
                    }
                }
            },
            "links": {
                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS9446498?format=api"
            }
        }
    ],
    "meta": {
        "pagination": {
            "page": 1,
            "pages": 1,
            "count": 1
        }
    }
}