# Search for a variant

Searches for a variant using various input formats and returns nomenclature information.
**Supported Search Formats:**
- **HGVS notation**: `NM_000546.5:c.215C>G`, `BRCA1:c.68_69del`
- **Chromosomal location**: `chr17-7577120-C-G`, `chr17:7577120:C:G`
- **rsID**: `rs28934576`
- **Gene and protein change**: `TP53 p.R72P`

**Response:**
Returns a list of matching variants with their nomenclature data including:
- Gene symbol and HGNC ID
- HGVS c. and p. notations
- Chromosomal location
- dbSNP ID (if available)
- Link to view the variant in Franklin

**Note:** This endpoint returns nomenclature/identification data only.
For detailed annotations, use the `/v2/search/snp/` endpoint.

Endpoint: GET /v1/variant/search
Version: 96
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer JWT

## Query parameters:

  - `search_text` (string, required)
    The variant search text. Supports multiple formats:
- HGVS c. notation (e.g., `NM_000546.5:c.215C>G`)
- HGVS p. notation (e.g., `TP53:p.R72P`)
- Chromosomal location (e.g., `chr17-7577120-C-G`)
- rsID (e.g., `rs28934576`)

  - `reference_version` (string)
    The reference genome version to use for the search.
Defaults to HG19 if not specified.

## Response 200:

  - `200` (unknown)
    Variant search completed successfully

## Response 200 fields (application/json):

  - `variant_options` (array)
    List of matching variants

  - `variant_options.snp_nomenclature` (object)
    SNP variant nomenclature details

  - `variant_options.snp_nomenclature.gene` (string)
    Gene symbol
    Example: BRCA1

  - `variant_options.snp_nomenclature.hgnc_id` (string)
    HGNC gene identifier
    Example: 1100

  - `variant_options.snp_nomenclature.hgvs_c` (string)
    HGVS coding DNA notation
    Example: NM_007294.4:c.5266dupC

  - `variant_options.snp_nomenclature.hgvs_p` (string)
    HGVS protein notation
    Example: p.Gln1756ProfsTer74

  - `variant_options.snp_nomenclature.chromosomal_location` (object)
    Chromosomal coordinates of a variant

  - `variant_options.snp_nomenclature.chromosomal_location.chromosome` (string)
    Chromosome name
    Example: chr17

  - `variant_options.snp_nomenclature.chromosomal_location.position` (integer)
    1-based genomic position
    Example: 43057062

  - `variant_options.snp_nomenclature.chromosomal_location.reference` (string)
    Reference allele
    Example: C

  - `variant_options.snp_nomenclature.chromosomal_location.alternative` (string)
    Alternative allele
    Example: CA

  - `variant_options.snp_nomenclature.db_snp` (string)
    dbSNP identifier
    Example: rs80357906

  - `variant_options.snp_nomenclature.franklin_url` (string)
    URL to view variant in Franklin
    Example: https://franklin.genoox.com/clinical-db/variant/snp/chr17-43057062-C-CA

## Response 400:

  - `400` (unknown)
    Bad request - invalid search text format or variant not found.

Common causes:
- Malformed HGVS notation
- Invalid chromosomal coordinates
- Unrecognized search format

## Response 400 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 401:

  - `401` (unknown)
    Authentication failed - invalid or missing token

## Response 401 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 429:

  - `429` (unknown)
    Rate limit exceeded

## Response 429 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 429 headers (application/json):

  - `Retry-After` (integer)
    Number of seconds to wait before retrying

