← Back to variant description

GeneBe API Showcase

This page demonstrates how to use the GeneBe API to query variant information. The API provides programmatic access to genomic annotations and variant data.

API presented here should be used for checking single variants. If you want to check many variants at once, please use other API endpoints that you will find in the documentation.

Documentation & Advanced Usage

Complete API documentation:docs.genebe.net/docs/api/overview/

Interactive endpoint tester:api.genebe.net/cloud/gb-api-doc/swagger-ui/

Python client for pandas:pypi.org/project/genebe/

Java CLI for VCF files:github.com/pstawinski/genebe-cli

All tools documented at:docs.genebe.net

API Request Examples for Variant: 20-64098224-C-G (hg38)

Bash / cURL Example

bash
curl "https://api.genebe.net/cloud/api-public/v1/variant?chr=20&pos=64098224&ref=C&alt=G&genome=hg38&allGenes=true"

API Response

json
{
  "variants": [
    {
      "chr": "20",
      "pos": 64098224,
      "ref": "C",
      "alt": "G",
      "effect": "intron_variant",
      "transcript": "ENST00000336866.7",
      "consequences": [
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 5,
          "intron_rank": 4,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.590-52C>G",
          "hgvs_p": null,
          "transcript": "NM_182647.4",
          "protein_id": "NP_872588.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 370,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1113,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3402,
          "mane_select": "ENST00000336866.7",
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": true,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 5,
          "intron_rank": 4,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.590-52C>G",
          "hgvs_p": null,
          "transcript": "ENST00000336866.7",
          "protein_id": "ENSP00000336843.2",
          "transcript_support_level": 5,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 370,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1113,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3402,
          "mane_select": "NM_182647.4",
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 6,
          "intron_rank": 5,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.590-52C>G",
          "hgvs_p": null,
          "transcript": "ENST00000349451.3",
          "protein_id": "ENSP00000336764.3",
          "transcript_support_level": 1,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 370,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1113,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3369,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 4,
          "intron_rank": 3,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.590-52C>G",
          "hgvs_p": null,
          "transcript": "ENST00000355631.8",
          "protein_id": "ENSP00000347848.4",
          "transcript_support_level": 1,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 370,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1113,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3147,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": false,
          "strand": false,
          "consequences": [
            "non_coding_transcript_exon_variant"
          ],
          "exon_rank": 2,
          "exon_rank_end": null,
          "exon_count": 2,
          "intron_rank": null,
          "intron_rank_end": null,
          "gene_symbol": "ENSG00000286999",
          "gene_hgnc_id": null,
          "hgvs_c": "n.2759G>C",
          "hgvs_p": null,
          "transcript": "ENST00000660961.1",
          "protein_id": null,
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": null,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": null,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3775,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 5,
          "intron_rank": 4,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.590-52C>G",
          "hgvs_p": null,
          "transcript": "NM_001318853.2",
          "protein_id": "NP_001305782.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 399,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1200,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3402,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 5,
          "intron_rank": 4,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.590-52C>G",
          "hgvs_p": null,
          "transcript": "ENST00000672146.3",
          "protein_id": "ENSP00000500894.2",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 399,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1200,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3402,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 4,
          "intron_rank": 3,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.590-52C>G",
          "hgvs_p": null,
          "transcript": "NM_000913.6",
          "protein_id": "NP_000904.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 370,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1113,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3251,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 6,
          "intron_rank": 5,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.590-52C>G",
          "hgvs_p": null,
          "transcript": "NM_001200019.2",
          "protein_id": "NP_001186948.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 370,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1113,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3376,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 3,
          "intron_rank": 2,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.575-52C>G",
          "hgvs_p": null,
          "transcript": "NM_001318854.1",
          "protein_id": "NP_001305783.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 365,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1098,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 2975,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 3,
          "intron_rank": 2,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.503-52C>G",
          "hgvs_p": null,
          "transcript": "NM_001318855.1",
          "protein_id": "NP_001305784.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 341,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1026,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3018,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 5,
          "intron_rank": 4,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.644-52C>G",
          "hgvs_p": null,
          "transcript": "XM_011528828.4",
          "protein_id": "XP_011527130.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 388,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1167,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3235,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 4,
          "intron_rank": 3,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.644-52C>G",
          "hgvs_p": null,
          "transcript": "XM_047440153.1",
          "protein_id": "XP_047296109.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 388,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1167,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 4420,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 6,
          "intron_rank": 5,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.590-52C>G",
          "hgvs_p": null,
          "transcript": "XM_047440154.1",
          "protein_id": "XP_047296110.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 370,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1113,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3370,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 5,
          "intron_rank": 4,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.575-52C>G",
          "hgvs_p": null,
          "transcript": "XM_047440155.1",
          "protein_id": "XP_047296111.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 365,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1098,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3397,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 4,
          "intron_rank": 3,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.575-52C>G",
          "hgvs_p": null,
          "transcript": "XM_047440156.1",
          "protein_id": "XP_047296112.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 365,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 1098,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 3246,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 4,
          "intron_rank": 3,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.347-52C>G",
          "hgvs_p": null,
          "transcript": "XM_011528830.4",
          "protein_id": "XP_011527132.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 289,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 870,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 2969,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        },
        {
          "aa_ref": null,
          "aa_alt": null,
          "canonical": false,
          "protein_coding": true,
          "strand": true,
          "consequences": [
            "intron_variant"
          ],
          "exon_rank": null,
          "exon_rank_end": null,
          "exon_count": 3,
          "intron_rank": 2,
          "intron_rank_end": null,
          "gene_symbol": "OPRL1",
          "gene_hgnc_id": 8155,
          "hgvs_c": "c.347-52C>G",
          "hgvs_p": null,
          "transcript": "XM_047440157.1",
          "protein_id": "XP_047296113.1",
          "transcript_support_level": null,
          "aa_start": null,
          "aa_end": null,
          "aa_length": 289,
          "cds_start": -4,
          "cds_end": null,
          "cds_length": 870,
          "cdna_start": null,
          "cdna_end": null,
          "cdna_length": 2995,
          "mane_select": null,
          "mane_plus": null,
          "biotype": null,
          "feature": null
        }
      ],
      "gene_symbol": "OPRL1",
      "gene_hgnc_id": 8155,
      "dbsnp": "rs2295448",
      "frequency_reference_population": 0.0000020694335,
      "hom_count_reference_population": 0,
      "allele_count_reference_population": 3,
      "gnomad_exomes_af": 0.00000206943,
      "gnomad_genomes_af": null,
      "gnomad_exomes_ac": 3,
      "gnomad_genomes_ac": null,
      "gnomad_exomes_homalt": 0,
      "gnomad_genomes_homalt": null,
      "gnomad_mito_homoplasmic": null,
      "gnomad_mito_heteroplasmic": null,
      "computational_score_selected": -0.8500000238418579,
      "computational_prediction_selected": "Benign",
      "computational_source_selected": "BayesDel_noAF",
      "splice_score_selected": 0,
      "splice_prediction_selected": "Benign",
      "splice_source_selected": "max_spliceai",
      "revel_score": null,
      "revel_prediction": null,
      "alphamissense_score": null,
      "alphamissense_prediction": null,
      "bayesdelnoaf_score": -0.85,
      "bayesdelnoaf_prediction": "Benign",
      "phylop100way_score": -1.306,
      "phylop100way_prediction": "Benign",
      "spliceai_max_score": 0,
      "spliceai_max_prediction": "Benign",
      "dbscsnv_ada_score": null,
      "dbscsnv_ada_prediction": null,
      "apogee2_score": null,
      "apogee2_prediction": null,
      "mitotip_score": null,
      "mitotip_prediction": null,
      "acmg_score": -2,
      "acmg_classification": "Likely_benign",
      "acmg_criteria": "PM2,BP4_Strong",
      "acmg_by_gene": [
        {
          "score": -2,
          "benign_score": 4,
          "pathogenic_score": 2,
          "criteria": [
            "PM2",
            "BP4_Strong"
          ],
          "verdict": "Likely_benign",
          "transcript": "ENST00000336866.7",
          "gene_symbol": "OPRL1",
          "hgnc_id": 8155,
          "effects": [
            "intron_variant"
          ],
          "inheritance_mode": "",
          "hgvs_c": "c.590-52C>G",
          "hgvs_p": null
        },
        {
          "score": -2,
          "benign_score": 4,
          "pathogenic_score": 2,
          "criteria": [
            "PM2",
            "BP4_Strong"
          ],
          "verdict": "Likely_benign",
          "transcript": "ENST00000660961.1",
          "gene_symbol": "ENSG00000286999",
          "hgnc_id": null,
          "effects": [
            "non_coding_transcript_exon_variant"
          ],
          "inheritance_mode": "",
          "hgvs_c": "n.2759G>C",
          "hgvs_p": null
        }
      ],
      "clinvar_disease": "",
      "clinvar_classification": "",
      "clinvar_review_status": "",
      "clinvar_submissions_summary": "",
      "phenotype_combined": null,
      "pathogenicity_classification_combined": null,
      "custom_annotations": null
    }
  ],
  "message": null
}