GET /metagenomics/api/v1/studies/MGYS00000392/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/MGYS00000392/samples?format=api&page=1",
        "last": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00000392/samples?format=api&page=1",
        "next": null,
        "prev": null
    },
    "data": [
        {
            "type": "samples",
            "id": "ERS463915",
            "attributes": {
                "latitude": -35.1069,
                "longitude": 139.2724,
                "biosample": "SAMEA2553414",
                "sample-metadata": [
                    {
                        "key": "investigation type",
                        "value": "metagenome",
                        "unit": null
                    },
                    {
                        "key": "project name",
                        "value": "Pre-investigation",
                        "unit": null
                    },
                    {
                        "key": "environmental package",
                        "value": "soil",
                        "unit": null
                    },
                    {
                        "key": "sequencing method",
                        "value": "Illumina Miseq",
                        "unit": null
                    },
                    {
                        "key": "depth",
                        "value": "0.8",
                        "unit": null
                    },
                    {
                        "key": "geographic location (elevation)",
                        "value": "50",
                        "unit": "m"
                    },
                    {
                        "key": "NCBI sample classification",
                        "value": "410658",
                        "unit": null
                    },
                    {
                        "key": "instrument model",
                        "value": "Illumina MiSeq",
                        "unit": null
                    },
                    {
                        "key": "ENA checklist",
                        "value": "ERC000022",
                        "unit": null
                    },
                    {
                        "key": "geographic location (latitude)",
                        "value": "-35.10688",
                        "unit": null
                    },
                    {
                        "key": "geographic location (longitude)",
                        "value": "139.2724",
                        "unit": null
                    },
                    {
                        "key": "collection date",
                        "value": "2012-09-26",
                        "unit": null
                    },
                    {
                        "key": "geographic location (country and/or sea,region)",
                        "value": "Australia",
                        "unit": null
                    },
                    {
                        "key": "environment (feature)",
                        "value": "Farmland",
                        "unit": null
                    },
                    {
                        "key": "environment (biome)",
                        "value": "Grassland",
                        "unit": null
                    },
                    {
                        "key": "environment (material)",
                        "value": "Clay",
                        "unit": null
                    },
                    {
                        "key": "elevation",
                        "value": "50.0",
                        "unit": null
                    }
                ],
                "accession": "ERS463915",
                "analysis-completed": "2014-05-29",
                "collection-date": "2012-09-26",
                "geo-loc-name": "Australia",
                "sample-desc": "Injection site",
                "environment-biome": "Grassland",
                "environment-feature": "Farmland",
                "environment-material": "Clay",
                "sample-name": "MLa 01",
                "sample-alias": "MLa 01",
                "host-tax-id": null,
                "species": null,
                "last-update": "2020-05-15T15:27:35"
            },
            "relationships": {
                "biome": {
                    "data": {
                        "type": "biomes",
                        "id": "root:Environmental:Terrestrial:Soil:Grasslands"
                    },
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Environmental:Terrestrial:Soil:Grasslands?format=api"
                    }
                },
                "studies": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/ERS463915/studies?format=api"
                    },
                    "data": [
                        {
                            "type": "studies",
                            "id": "MGYS00000392",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00000392?format=api"
                            }
                        },
                        {
                            "type": "studies",
                            "id": "MGYS00002688",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00002688?format=api"
                            }
                        }
                    ]
                },
                "runs": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/ERS463915/runs?format=api"
                    }
                }
            },
            "links": {
                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/ERS463915?format=api"
            }
        },
        {
            "type": "samples",
            "id": "ERS463914",
            "attributes": {
                "latitude": -35.1054,
                "longitude": 139.2728,
                "biosample": "SAMEA2553413",
                "sample-metadata": [
                    {
                        "key": "investigation type",
                        "value": "metagenome",
                        "unit": null
                    },
                    {
                        "key": "project name",
                        "value": "Pre-investigation",
                        "unit": null
                    },
                    {
                        "key": "environmental package",
                        "value": "soil",
                        "unit": null
                    },
                    {
                        "key": "sequencing method",
                        "value": "Illumina Miseq",
                        "unit": null
                    },
                    {
                        "key": "depth",
                        "value": "0.8",
                        "unit": null
                    },
                    {
                        "key": "geographic location (elevation)",
                        "value": "50",
                        "unit": "m"
                    },
                    {
                        "key": "NCBI sample classification",
                        "value": "410658",
                        "unit": null
                    },
                    {
                        "key": "instrument model",
                        "value": "Illumina MiSeq",
                        "unit": null
                    },
                    {
                        "key": "ENA checklist",
                        "value": "ERC000022",
                        "unit": null
                    },
                    {
                        "key": "geographic location (latitude)",
                        "value": "-35.105362",
                        "unit": null
                    },
                    {
                        "key": "geographic location (longitude)",
                        "value": "139.27281",
                        "unit": null
                    },
                    {
                        "key": "collection date",
                        "value": "2012-09-26",
                        "unit": null
                    },
                    {
                        "key": "geographic location (country and/or sea,region)",
                        "value": "Australia",
                        "unit": null
                    },
                    {
                        "key": "environment (feature)",
                        "value": "Farmland",
                        "unit": null
                    },
                    {
                        "key": "environment (biome)",
                        "value": "Grassland",
                        "unit": null
                    },
                    {
                        "key": "environment (material)",
                        "value": "Clay",
                        "unit": null
                    },
                    {
                        "key": "elevation",
                        "value": "50.0",
                        "unit": null
                    }
                ],
                "accession": "ERS463914",
                "analysis-completed": "2014-05-29",
                "collection-date": "2012-09-26",
                "geo-loc-name": "Australia",
                "sample-desc": "Control site",
                "environment-biome": "Grassland",
                "environment-feature": "Farmland",
                "environment-material": "Clay",
                "sample-name": "MCa 01",
                "sample-alias": "MCa 01",
                "host-tax-id": null,
                "species": null,
                "last-update": "2020-05-15T15:23:44"
            },
            "relationships": {
                "biome": {
                    "data": {
                        "type": "biomes",
                        "id": "root:Environmental:Terrestrial:Soil:Grasslands"
                    },
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Environmental:Terrestrial:Soil:Grasslands?format=api"
                    }
                },
                "studies": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/ERS463914/studies?format=api"
                    },
                    "data": [
                        {
                            "type": "studies",
                            "id": "MGYS00000392",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00000392?format=api"
                            }
                        },
                        {
                            "type": "studies",
                            "id": "MGYS00002688",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00002688?format=api"
                            }
                        }
                    ]
                },
                "runs": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/ERS463914/runs?format=api"
                    }
                }
            },
            "links": {
                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/ERS463914?format=api"
            }
        }
    ],
    "meta": {
        "pagination": {
            "page": 1,
            "pages": 1,
            "count": 2
        }
    }
}