Batch Fetch Variant Annotations
myvariant.variants.batchRetrieve annotations for up to 1000 genetic variants in a single request by providing a comma-separated list of dbSNP rsIDs or HGVS variant IDs. Returns ClinVar significance, CADD scores, gnomAD allele frequencies, and functional consequence predictions for each variant in one call. Ideal for annotating VCF files, enriching GWAS hit lists, building polygenic risk score pipelines, or bulk pharmacogenomics analysis. Variants not found in the database are marked with found=false. Mix rsIDs from different chromosomes freely — no grouping by position required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Comma-separated list of variant identifiers to retrieve in a single request. Accepts dbSNP rsIDs (e.g. "rs58991260,rs671,rs1801133") or HGVS genomic IDs. Mix of rsIDs is supported. Maximum 1000 IDs per call. Returns annotation for each variant including ClinVar significance, CADD score, gnomAD allele frequencies, and functional consequences. | |
| fields | No | Comma-separated annotation fields to return for each variant. Default: dbsnp,clinvar,cadd,gnomad_exome,gnomad_genome,snpeff,vcf,chrom,hg19. Limit fields for large batches to reduce response size. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |