GET /metagenomics/api/v1/studies/MGYS00005739/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/MGYS00005739/samples?format=api&page=1",
        "last": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00005739/samples?format=api&page=1",
        "next": null,
        "prev": null
    },
    "data": [
        {
            "type": "samples",
            "id": "DRS049616",
            "attributes": {
                "biosample": "SAMD00045746",
                "longitude": null,
                "sample-metadata": [
                    {
                        "key": "project name",
                        "value": "Metagenome sequencing of a mock fungal community",
                        "unit": null
                    },
                    {
                        "key": "collection date",
                        "value": "2014-01-01",
                        "unit": null
                    },
                    {
                        "key": "environment (biome)",
                        "value": "fungal product",
                        "unit": null
                    },
                    {
                        "key": "environment (feature)",
                        "value": "fungal product",
                        "unit": null
                    },
                    {
                        "key": "environment (material)",
                        "value": "fungal product",
                        "unit": null
                    }
                ],
                "latitude": null,
                "accession": "DRS049616",
                "analysis-completed": null,
                "collection-date": "2014-01-01",
                "geo-loc-name": null,
                "sample-desc": "Metagenome sequencing of a mock fungal community consisting of 26 fungal species.",
                "environment-biome": "fungal product",
                "environment-feature": "fungal product",
                "environment-material": "fungal product",
                "sample-name": "SAMD00045746",
                "sample-alias": "SAMD00045746",
                "host-tax-id": null,
                "species": null,
                "last-update": "2021-06-03T10:57:47"
            },
            "relationships": {
                "biome": {
                    "data": {
                        "type": "biomes",
                        "id": "root:Engineered:Lab enrichment"
                    },
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Engineered:Lab%20enrichment?format=api"
                    }
                },
                "studies": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/DRS049616/studies?format=api"
                    },
                    "data": [
                        {
                            "type": "studies",
                            "id": "MGYS00005739",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00005739?format=api"
                            }
                        }
                    ]
                },
                "runs": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/DRS049616/runs?format=api"
                    }
                }
            },
            "links": {
                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/DRS049616?format=api"
            }
        }
    ],
    "meta": {
        "pagination": {
            "page": 1,
            "pages": 1,
            "count": 1
        }
    }
}