GET /metagenomics/api/v1/studies/MGYS00006186/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/MGYS00006186/samples?format=api&page=1",
        "last": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00006186/samples?format=api&page=1",
        "next": null,
        "prev": null
    },
    "data": [
        {
            "type": "samples",
            "id": "SRS655891",
            "attributes": {
                "latitude": 42.2839,
                "longitude": -71.3034,
                "sample-metadata": [
                    {
                        "key": "geographic location (longitude)",
                        "value": "-71.3034",
                        "unit": null
                    },
                    {
                        "key": "geographic location (country and/or sea,region)",
                        "value": "USA: Wellesley, Massachusetts",
                        "unit": null
                    },
                    {
                        "key": "collection date",
                        "value": "2011-01-07",
                        "unit": null
                    },
                    {
                        "key": "environment (biome)",
                        "value": "terrestrial",
                        "unit": null
                    },
                    {
                        "key": "environment (feature)",
                        "value": "organic feature",
                        "unit": null
                    },
                    {
                        "key": "environment (material)",
                        "value": "organ",
                        "unit": null
                    },
                    {
                        "key": "host taxid",
                        "value": "44477",
                        "unit": null
                    },
                    {
                        "key": "geographic location (latitude)",
                        "value": "42.28393",
                        "unit": null
                    }
                ],
                "biosample": "SAMN02905565",
                "accession": "SRS655891",
                "analysis-completed": null,
                "collection-date": "2011-01-07",
                "geo-loc-name": null,
                "sample-desc": "Total RNA extracted from three individual honey bee guts",
                "environment-biome": "terrestrial",
                "environment-feature": "organic feature",
                "environment-material": "organ",
                "sample-name": "Bee Gut Total RNA",
                "sample-alias": "Bee Gut Total RNA",
                "host-tax-id": 44477,
                "species": null,
                "last-update": "2023-04-19T21:15:47"
            },
            "relationships": {
                "biome": {
                    "data": {
                        "type": "biomes",
                        "id": "root:Host-associated:Insecta:Digestive system"
                    },
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Host-associated:Insecta:Digestive%20system?format=api"
                    }
                },
                "studies": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS655891/studies?format=api"
                    },
                    "data": [
                        {
                            "type": "studies",
                            "id": "MGYS00006186",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00006186?format=api"
                            }
                        }
                    ]
                },
                "runs": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS655891/runs?format=api"
                    }
                }
            },
            "links": {
                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS655891?format=api"
            }
        },
        {
            "type": "samples",
            "id": "SRS655893",
            "attributes": {
                "latitude": 42.2839,
                "longitude": -71.3034,
                "sample-metadata": [
                    {
                        "key": "geographic location (longitude)",
                        "value": "-71.3034",
                        "unit": null
                    },
                    {
                        "key": "geographic location (country and/or sea,region)",
                        "value": "USA: Wellesley, Massachusetts",
                        "unit": null
                    },
                    {
                        "key": "collection date",
                        "value": "2011-01-07",
                        "unit": null
                    },
                    {
                        "key": "environment (biome)",
                        "value": "terrestrial",
                        "unit": null
                    },
                    {
                        "key": "environment (feature)",
                        "value": "organic feature",
                        "unit": null
                    },
                    {
                        "key": "environment (material)",
                        "value": "organ",
                        "unit": null
                    },
                    {
                        "key": "host taxid",
                        "value": "44477",
                        "unit": null
                    },
                    {
                        "key": "geographic location (latitude)",
                        "value": "42.28393",
                        "unit": null
                    }
                ],
                "biosample": "SAMN02905566",
                "accession": "SRS655893",
                "analysis-completed": null,
                "collection-date": "2011-01-07",
                "geo-loc-name": null,
                "sample-desc": "RNA from three individual honey bee guts subjected to Invitrogens MICROBEnrich protocol",
                "environment-biome": "terrestrial",
                "environment-feature": "organic feature",
                "environment-material": "organ",
                "sample-name": "Bee Gut Microbe-enriched RNA",
                "sample-alias": "Bee Gut Microbe-enriched RNA",
                "host-tax-id": 44477,
                "species": null,
                "last-update": "2023-04-19T21:14:45"
            },
            "relationships": {
                "biome": {
                    "data": {
                        "type": "biomes",
                        "id": "root:Host-associated:Insecta:Digestive system"
                    },
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/biomes/root:Host-associated:Insecta:Digestive%20system?format=api"
                    }
                },
                "studies": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS655893/studies?format=api"
                    },
                    "data": [
                        {
                            "type": "studies",
                            "id": "MGYS00006186",
                            "links": {
                                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00006186?format=api"
                            }
                        }
                    ]
                },
                "runs": {
                    "links": {
                        "related": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS655893/runs?format=api"
                    }
                }
            },
            "links": {
                "self": "https://www.ebi.ac.uk/metagenomics/api/v1/samples/SRS655893?format=api"
            }
        }
    ],
    "meta": {
        "pagination": {
            "page": 1,
            "pages": 1,
            "count": 2
        }
    }
}