GET /metagenomics/api/v1/studies/MGYS00000562/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/MGYS00000562/samples?format=api&page=1",
        "last": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00000562/samples?format=api&page=1",
        "next": null,
        "prev": null
    },
    "data": [
        {
            "type": "samples",
            "id": "SRS429584",
            "attributes": {
                "latitude": null,
                "biosample": "SAMN02144230",
                "longitude": null,
                "sample-metadata": [
                    {
                        "key": "environment (biome)",
                        "value": "sheep rumen",
                        "unit": null
                    },
                    {
                        "key": "phenotype",
                        "value": "low methane producing",
                        "unit": null
                    },
                    {
                        "key": "NCBI sample classification",
                        "value": "749906",
                        "unit": null
                    },
                    {
                        "key": "instrument model",
                        "value": "Illumina HiSeq 2000",
                        "unit": null
                    },
                    {
                        "key": "host",
                        "value": "Ovis aries",
                        "unit": null
                    },
                    {
                        "key": "isolation source",
                        "value": "sheep rumen",
                        "unit": null
                    }
                ],
                "accession": "SRS429584",
                "analysis-completed": "2015-11-09",
                "collection-date": null,
                "geo-loc-name": null,
                "sample-desc": "rumen from low methane producing sheep",
                "environment-biome": null,
                "environment-feature": null,
                "environment-material": null,
                "sample-name": "Generic sample from sheep gut microbiome from low methane producing sheep",
                "sample-alias": "low_methane",
                "host-tax-id": 9940,
                "species": "Ovis aries",
                "last-update": "2015-11-09T09:44:13"
            },
            "relationships": {
                "runs": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS429584/runs?format=api"
                    }
                },
                "biome": {
                    "data": {
                        "type": "biomes",
                        "id": "root:Host-associated:Mammals:Digestive system:Stomach:Rumen"
                    },
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Host-associated:Mammals:Digestive%20system:Stomach:Rumen?format=api"
                    }
                },
                "studies": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS429584/studies?format=api"
                    },
                    "data": [
                        {
                            "type": "studies",
                            "id": "MGYS00000562",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00000562?format=api"
                            }
                        },
                        {
                            "type": "studies",
                            "id": "MGYS00002066",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00002066?format=api"
                            }
                        }
                    ]
                }
            },
            "links": {
                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS429584?format=api"
            }
        },
        {
            "type": "samples",
            "id": "SRS429585",
            "attributes": {
                "latitude": null,
                "biosample": "SAMN02144231",
                "longitude": null,
                "sample-metadata": [
                    {
                        "key": "environment (biome)",
                        "value": "sheep rumen",
                        "unit": null
                    },
                    {
                        "key": "phenotype",
                        "value": "high methane producing",
                        "unit": null
                    },
                    {
                        "key": "NCBI sample classification",
                        "value": "749906",
                        "unit": null
                    },
                    {
                        "key": "instrument model",
                        "value": "Illumina HiSeq 2000",
                        "unit": null
                    },
                    {
                        "key": "host",
                        "value": "Ovis aries",
                        "unit": null
                    },
                    {
                        "key": "isolation source",
                        "value": "sheep rumen",
                        "unit": null
                    }
                ],
                "accession": "SRS429585",
                "analysis-completed": "2015-11-09",
                "collection-date": null,
                "geo-loc-name": null,
                "sample-desc": "rumen from high methane producing sheep",
                "environment-biome": null,
                "environment-feature": null,
                "environment-material": null,
                "sample-name": "Generic sample from sheep gut microbiome from high methane producing sheep",
                "sample-alias": "high_methane",
                "host-tax-id": 9940,
                "species": "Ovis aries",
                "last-update": "2015-11-09T09:44:13"
            },
            "relationships": {
                "runs": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS429585/runs?format=api"
                    }
                },
                "biome": {
                    "data": {
                        "type": "biomes",
                        "id": "root:Host-associated:Mammals:Digestive system:Stomach:Rumen"
                    },
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Host-associated:Mammals:Digestive%20system:Stomach:Rumen?format=api"
                    }
                },
                "studies": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS429585/studies?format=api"
                    },
                    "data": [
                        {
                            "type": "studies",
                            "id": "MGYS00000562",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00000562?format=api"
                            }
                        },
                        {
                            "type": "studies",
                            "id": "MGYS00002066",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00002066?format=api"
                            }
                        }
                    ]
                }
            },
            "links": {
                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS429585?format=api"
            }
        }
    ],
    "meta": {
        "pagination": {
            "page": 1,
            "pages": 1,
            "count": 2
        }
    }
}