GET /metagenomics/api/v1/studies/MGYS00006816/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/MGYS00006816/samples?format=api&page=1",
        "last": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00006816/samples?format=api&page=1",
        "next": null,
        "prev": null
    },
    "data": [
        {
            "type": "samples",
            "id": "SRS4294602",
            "attributes": {
                "biosample": "SAMN09094087",
                "longitude": -122.2981,
                "sample-metadata": [
                    {
                        "key": "geographic location (longitude)",
                        "value": "-122.2981",
                        "unit": null
                    },
                    {
                        "key": "geographic location (country and/or sea,region)",
                        "value": "USA: California",
                        "unit": null
                    },
                    {
                        "key": "collection date",
                        "value": "2017-11-01",
                        "unit": null
                    },
                    {
                        "key": "environmental package",
                        "value": "Metagenome or environmental",
                        "unit": null
                    },
                    {
                        "key": "host taxid",
                        "value": "4565",
                        "unit": null
                    },
                    {
                        "key": "geographic location (latitude)",
                        "value": "37.8864",
                        "unit": null
                    },
                    {
                        "key": "host scientific name",
                        "value": "Triticum aestivum",
                        "unit": null
                    }
                ],
                "latitude": 37.8864,
                "accession": "SRS4294602",
                "analysis-completed": null,
                "collection-date": null,
                "geo-loc-name": null,
                "sample-desc": "Leaf surface microbial communities from wheat plants in UC Gill Tract Community Farm, Albany, California, United States - DLSL W.R1",
                "environment-biome": null,
                "environment-feature": null,
                "environment-material": null,
                "sample-name": "SAMN09094087",
                "sample-alias": "SAMN09094087",
                "host-tax-id": 4565,
                "species": null,
                "last-update": "2025-06-04T17:25:26"
            },
            "relationships": {
                "biome": {
                    "data": {
                        "type": "biomes",
                        "id": "root:Host-associated:Plants:Phylloplane"
                    },
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Host-associated:Plants:Phylloplane?format=api"
                    }
                },
                "studies": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS4294602/studies?format=api"
                    },
                    "data": [
                        {
                            "type": "studies",
                            "id": "MGYS00006816",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00006816?format=api"
                            }
                        }
                    ]
                },
                "runs": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS4294602/runs?format=api"
                    }
                }
            },
            "links": {
                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS4294602?format=api"
            }
        }
    ],
    "meta": {
        "pagination": {
            "page": 1,
            "pages": 1,
            "count": 1
        }
    }
}