Programatic Interface

BioSamples Database provides an interface that is suitable for programmatic queries. This consists of four entry point URLs ( descibed below), each of which returns an XML response.

If you have any problems or suggestions please contact us.

Sample Accession

Group Accession

Find Groups

Find Samples Within a Group

  • Returns sample accessions that match the specified search query and are in the specified group.
  • /biosamples/xml/groupsamples/ACCESSION/query=QUERY where ACCESSION is the group to query within and QUERY is the term to query for.
  • e.g. /biosamples/xml/groupsamples/SAMEG82620/query=leukemia
  • Results are returned in one or more pages and will always return result summary information.
  • Can use advanced query features.
  • If query is blank, all samples within that group are matched.
  • more information

Find Samples

  • Returns sample accessions that match the specified search query.
  • /biosamples/xml/sample/query=QUERY where QUERY is the term to query for.
  • e.g. /biosamples/xml/sample/query=leukemia
  • Results are returned in one or more pages and will always return result summary information.
  • Can use advanced query features.
  • If query is blank, all samples within that group are matched.
  • more information