Skip to content

Search API Docs

Brandon Davis edited this page Mar 8, 2022 · 20 revisions

Some resources:

Search payload construction:

POST to https://data.microbiomedata.org/api/biosample/search?offset=0&limit=15

Example 1:

{"conditions":[{"value":"gold:Gs0114675","table":"study","op":"==","field":"study_id"}],"data_object_filter":[]}

Example 2:

{"conditions":[{"op":"==","field":"omics_type","value":"Organic Matter Characterization","table":"omics_processing"}],"data_object_filter":[]}

Response payload structure

The response JSON structure for most endpoints can be inferred from looking at the TypeScript interfaces.

For example, study search returns a SearchResponse<StudySearchResults>, which can be interpreted as a SearchResponse where the generic result slot is typed as StudySearchResults.

Clone this wiki locally