Retrieve summary statistics on the metadata for each program that match the given query parameters.
const url = 'https://raw.githubusercontent.com/discovery/query?treatment=Bone%20marrow%20transplant%7CChemotherapy&primary_site=Adrenal%20gland%7CBladder&drug_name=FLUOROURACIL%7CLEUCOVORIN&gene=ZYG11A&assembly=hg38&exclude_programs=SYNTHETIC-1&genomic_data_types=genomes%7Cvariants';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://raw.githubusercontent.com/discovery/query?treatment=Bone%20marrow%20transplant%7CChemotherapy&primary_site=Adrenal%20gland%7CBladder&drug_name=FLUOROURACIL%7CLEUCOVORIN&gene=ZYG11A&assembly=hg38&exclude_programs=SYNTHETIC-1&genomic_data_types=genomes%7Cvariants'Retrieve summary statistics on the metadata for each program that match the given query parameters.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Acceptable requested fields for querying
A pipe-separated list of treatments to look for
Example
Bone marrow transplant|ChemotherapyAcceptable requested fields for querying
A pipe-separated list of affected primary sites to look for
Example
Adrenal gland|BladderAcceptable requested fields for querying
A pipe-separated list of drug names to look for
Example
FLUOROURACIL|LEUCOVORINAcceptable requested string for querying
A chromosome to search for variants within. This cannot be used with a geneParam, and must be of the format chr#:start-end
Acceptable requested fields for querying
A gene name to search for variants within. This cannot be used with chrParam
Example
ZYG11AAcceptable requested string for querying
A genomic assembly to search for variants within.
Example
hg38Acceptable requested fields for querying
A list of programs that will be excluded from results
Example
SYNTHETIC-1Acceptable requested fields for querying
A list of genomic data types to include in the query. If value includes ‘any’, return any genomic data type.
Example
genomes|variantsResponses
Section titled “ Responses ”Summary statistics
Discovery programs
object
Whole-site summary statistics
object
Per-program summary statistics
Example generated
{ "site": {}, "programs": [ "example" ]}Unspecified server error encountered
object
Error object container
object
Name/type of the error that occurred
Message explaining why the error occurred
Example
{ "query": { "error": "ServerError", "message": "An unspecified server error occurred" }}