post https://cgc-api.sbgenomics.com/v2
QUERY DATASETS > About the Datasets API > Query via the Datasets API > Example query 5: Complex example...
Complex queries are well-suited to the Datasets API.
For instance, use the following query to obtain all cases that have a sample with a Primary tumor sample type of portion number 11, a new tumor anatomic site of the liver or pancreas, and a new tumor event type containing the word "recurrence".
Request
Response body
This request returns the response below. Note that it contains 79 cases objects: one for each case matching the query above.
For each case returned, the response lists:
- Its TCGA
label
- Its TCGA
id
- Its
href
: this is a path that can be used to obtain full information about the case.
Secondary request
Use a GET
request to the href
path obtain this information, as shown below.