# Microbiome Repo — instructions for LLMs and agents > Evidence-linked metadata for public human microbiome sequencing data — shotgun metagenomes and metatranscriptomes from every body site, all ages: 5,086 projects (INSDC BioProjects), 813,356 samples. Release R2026.44 (package 1.35.0). Use ONLY the files below; fetch them, do not guess accessions or counts. All files are plain JSON / CSV at stable URLs. ## How to search (do this in order) 1. Choose the most specific selection and fetch it: - by intervention the project administered: https://microbiome-repo.colorado.edu/api/by-intervention/.json (codes: fmt, probiotic, prebiotic_or_fibre, synbiotic, live_biotherapeutic, antibiotic, diet_intervention, dietary_supplement, drug_therapy, surgery, bowel_preparation, exercise, vaccine, phage_therapy, other_intervention) - by health condition: https://microbiome-repo.colorado.edu/api/by-condition/.json (codes in https://microbiome-repo.colorado.edu/api/vocabularies.json, e.g. ulcerative_colitis, crohns_disease, ibd_unspecified, colorectal_cancer, type2_diabetes, obesity, healthy_control) - by condition term (EFO / MONDO): https://microbiome-repo.colorado.edu/api/by-condition/.json (anchor = the condition id with the colon written as an underscore, e.g. MONDO_0005011.json; 783 of the 785 conditions of the Condition explorer — the rows with no project of their own have no file — listed as endpoints.by_condition_id in https://microbiome-repo.colorado.edu/api/index.json and in the `anchor` column of https://microbiome-repo.colorado.edu/data/conditions/condition_explorer.csv) The two are not the same selection: `` counts the catalog's own health-condition code, `` counts the samples whose label was mapped to that ontology term. Every count inside a project record is the project's own totals, over all its samples, not only the samples of the selection. - by age category: https://microbiome-repo.colorado.edu/api/by-age/.json - everything (large, ~2 MB): https://microbiome-repo.colorado.edu/api/projects.json 2. Filter the selection's `projects` on the other keys: `health_conditions` (code -> samples), `interventions`, `intervention_design`, `trial_population_condition`, `sample_intervention_arms`, `has_cases_and_healthy_controls`, `has_treated_and_control_arms`, `n_samples`, `countries`, `age_categories`, `gbp_per_sample_median`. 3. For each candidate fetch `urls.samples_csv` (https://microbiome-repo.colorado.edu/api/samples/.csv): one row per sample with sample_key, study_accession, subject_id, timepoint_label, age_category, age_at_collection_days, sex, country, health_condition, intervention (this sample's arm), antibiotic_exposure, collection_date, n_runs, seq_gbp. 4. Answer with accessions, sample counts per group/arm, and links (`urls.page`, `urls.ena`). Say when a value is missing rather than inferring it. ## Meaning of the key fields - `interventions` = what the investigators ADMINISTERED (FMT, probiotic, diet, drug …), project level, read from the abstract / BioProject description. [] = none stated. - `sample_intervention_arms` / sample column `intervention` = the arm recorded in the archive for that sample; `placebo` and `no_intervention` are the controls / baselines. - `health_conditions` counts each sample's own condition; `trial_population_condition` is the condition of a trial's participants (e.g. ulcerative_colitis for a UC FMT trial). - An "IBD + FMT project" = by-intervention/fmt.json filtered to projects whose health_conditions or trial_population_condition include ulcerative_colitis, crohns_disease or ibd_unspecified. ## Worked examples - "Probiotic trials where both treated and control samples have metagenomes": fetch https://microbiome-repo.colorado.edu/api/by-intervention/probiotic.json; keep projects with intervention_design in (randomized_controlled_trial, crossover, non_randomized_controlled) OR has_treated_and_control_arms = true. has_treated_and_control_arms = true means the archive labels each sample's arm (best case); for the others read the samples_csv (intervention, timepoint_label, subject_id) and the paper to split arms. - "Ulcerative colitis FMT projects": fetch https://microbiome-repo.colorado.edu/api/by-intervention/fmt.json; keep trial_population_condition = ulcerative_colitis or health_conditions containing ulcerative_colitis. - "Adult colorectal-cancer case-control cohorts with healthy controls": fetch https://microbiome-repo.colorado.edu/api/by-condition/colorectal_cancer.json; keep has_cases_and_healthy_controls = true and age_categories containing adult. - "Infant gut samples from Finland": fetch https://microbiome-repo.colorado.edu/api/by-age/infant.json; keep countries containing Finland; then read samples_csv. ## For code-running agents DuckDB can query the full per-sample table over HTTP: INSTALL httpfs; LOAD httpfs; SELECT study_accession, intervention, count(*) FROM read_parquet('https://microbiome-repo.colorado.edu/data/catalog_sample_metadata_wide.parquet') WHERE release_retired IS NULL AND health_condition IN ('ulcerative_colitis','crohns_disease') GROUP BY ALL; The table keeps the rows retired in earlier releases beside the current ones; `release_retired IS NULL` is the current catalog. Project-level columns (interventions, intervention_design, population_condition …): https://microbiome-repo.colorado.edu/data/catalog_studies.parquet. Field definitions: https://microbiome-repo.colorado.edu/fields/index.html. ## Caveats Values are evidence-linked claims (the archive record wins over the supplementary table, then the paper text, then the abstract), not ground truth; project-level interventions come from abstracts and may miss arms; every value's evidence is on the project page. Licence: curated values CC-BY-4.0; archive metadata under INSDC terms; Sandpiper community profiles CC-BY. Cite the primary study of each project as well. Cite: Microbiome Repo, release R2026.44 (data package 1.35.0), Olm Lab, University of Colorado Boulder, 2026-11-25. DOI 10.5281/zenodo.23087712