Discover/blast.ncbi.nlm.nih.gov API
live

blast.ncbi.nlm.nih.gov APIblast.ncbi.nlm.nih.gov

Submit DNA and protein sequences to NCBI BLAST and retrieve structured JSON alignment results. Supports blastn, blastp, blastx, tblastn, and tblastx.

Endpoints
4
Updated
10d ago
Try it
Nucleotide or protein sequence to search (raw sequence or FASTA format).
BLAST program to use. Accepted values: blastn, blastp, blastx, tblastn, tblastx.
Target database. Common values: nt (nucleotide), nr (protein). If omitted, defaults to nt
NCBI genetic code number for translation (used by blastx/tblastx).
api.parse.bot/scraper/1393a460-4f8b-4db5-8c26-8ad893041880/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X POST 'https://api.parse.bot/scraper/1393a460-4f8b-4db5-8c26-8ad893041880/submit_blast' \
  -H 'X-API-Key: $PARSE_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "query": "ATCGATCGATCG",
  "program": "blastn",
  "database": "nt"
}'
All endpoints · 4 totalclick to expand

Submit a BLAST job to NCBI and receive a Request ID (RID) for tracking. The RID can be used with check_status and get_results endpoints to monitor and retrieve results.

Input
ParamTypeDescription
queryrequiredstringNucleotide or protein sequence to search (raw sequence or FASTA format).
programstringBLAST program to use. Accepted values: blastn, blastp, blastx, tblastn, tblastx.
databasestringTarget database. Common values: nt (nucleotide), nr (protein). If omitted, defaults to nt for blastn or nr for other programs.
genetic_codestringNCBI genetic code number for translation (used by blastx/tblastx).
Response
{
  "type": "object",
  "fields": {
    "rid": "string, the Request ID for tracking this BLAST job",
    "rtoe": "integer, estimated time of execution in seconds"
  },
  "sample": {
    "data": {
      "rid": "Z8UPWMUB016",
      "rtoe": 30
    },
    "status": "success"
  }
}

About the blast.ncbi.nlm.nih.gov API

This API exposes 4 endpoints for running sequence similarity searches against NCBI's biological databases and retrieving structured alignment results. Use submit_blast to queue a job and get a Request ID, check_status to poll its progress, and get_results to fetch the final BlastOutput2 alignment report — or use search_blast to handle all three steps in a single blocking call.

Submitting and Tracking BLAST Jobs

The submit_blast endpoint accepts a nucleotide or protein sequence (raw or FASTA format) along with three optional parameters: program (blastn, blastp, blastx, tblastn, or tblastx), database (e.g. nt for nucleotide or nr for protein), and genetic_code for translation-based searches like blastx or tblastx. The response returns an rid (Request ID) and an rtoe integer estimating how many seconds the job will take. The RID is then passed to check_status, which returns one of five status strings: WAITING, SEARCHING, READY, FAILED, or UNKNOWN.

Retrieving Alignment Results

Once check_status returns READY, get_results accepts the same rid and returns the full BLAST report as a BlastOutput2 array. Each element in the array contains the program name, search parameters, and a nested structure of hits with alignment statistics. If the job is still processing when get_results is called, the response returns an upstream_error with HTTP status 202.

Single-Call Search with search_blast

The search_blast endpoint accepts the same inputs as submit_blast but internally handles polling and returns the completed BlastOutput2 result directly. Because BLAST jobs can take anywhere from a few seconds to several minutes depending on sequence length, database size, and NCBI server load, this endpoint may have a long response time. It is best suited for synchronous workflows where a single blocking call is acceptable.

Database and Program Selection

If database is omitted, the API defaults to nt when program is blastn and to nr for protein-mode programs. The genetic_code parameter is relevant only when the query sequence requires translation (blastx, tblastx) and corresponds to standard NCBI genetic code table numbers.

Common use cases
  • Identify the species of an unknown DNA sample by running blastn against the nt database and inspecting hits in BlastOutput2
  • Find functionally similar proteins across organisms by submitting an amino acid sequence to blastp against nr
  • Translate and search a nucleotide query against a protein database using blastx to find coding regions
  • Automate genomic pipeline steps by polling check_status and fetching results with get_results only when status is READY
  • Batch-process multiple sequences by submitting them via submit_blast, storing RIDs, and retrieving results asynchronously
  • Validate synthetic gene sequences against public databases to detect unintended homology before synthesis
  • Support phylogenetic research by collecting alignment statistics and hit descriptions from BlastOutput2 for downstream analysis
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does NCBI provide an official developer API for BLAST?+
Yes. NCBI offers the BLAST URL API, documented at https://ncbi.github.io/blast-cloud/dev/api.html. It accepts HTTP requests and returns results in several formats. This Parse API wraps those capabilities into structured JSON endpoints.
What does the BlastOutput2 response contain?+
BlastOutput2 is an array of report objects. Each report includes the BLAST program used, the search parameters applied, and a list of hits. Each hit contains the subject sequence description, accession, alignment statistics (scores, e-values, identity percentages), and aligned sequence segments (HSPs). The exact nesting follows the NCBI BLAST JSON schema.
Can I retrieve results for a job that has not yet reached READY status?+
No. Calling get_results on a job that is still processing returns an upstream_error response with status 202. You should call check_status first and only call get_results when the returned status is READY. The search_blast endpoint handles this polling loop automatically.
Does the API support filtering results by e-value threshold or maximum number of hits before they are returned?+
The current endpoints do not expose BLAST scoring parameters such as e-value cutoffs, max_target_seqs, or word size. Results reflect NCBI's default search settings for the chosen program and database. You can fork this API on Parse and revise the submit_blast and search_blast endpoints to pass additional BLAST parameters and filter the BlastOutput2 response accordingly.
How long should I expect search_blast to take?+
Job duration depends on query length, the selected database, and current NCBI server load. Short queries against nt or nr typically complete in under a minute, but complex or long sequences can take several minutes. The rtoe value returned by submit_blast provides an initial estimate in seconds.
Page content last updated . Spec covers 4 endpoints from blast.ncbi.nlm.nih.gov.
Related APIs in HealthcareSee all →
ulta.com API
Search and browse Ulta Beauty's complete product catalog with real-time pricing and inventory information, then dive into detailed product specs including ingredients, usage instructions, and customer reviews. Find exactly what you're looking for across all beauty categories with comprehensive product data at your fingertips.
pubmed.ncbi.nlm.nih.gov API
Search and retrieve biomedical literature from PubMed and NCBI databases. Supports keyword search, advanced field-tag queries, clinical filters, citation matching, date filtering, publication type filtering, and direct E-utilities access.
cvs.com API
Find nearby CVS Pharmacy locations and check their hours, then search for products and verify real-time availability at specific stores. Quickly locate what you need and confirm it's in stock before making a trip.
accessdata.fda.gov API
Search and retrieve comprehensive FDA premarket approval information for medical devices, including approval status, supplements, applicant details, and advisory committee data. Get instant access to specific PMA records with all relevant approval information in one place.
zocdoc.com API
Search for doctors and medical practices on Zocdoc by specialty and location. Retrieve provider profiles, accepted insurance, office locations, patient reviews, and appointment availability.
pmc.ncbi.nlm.nih.gov API
Search millions of full-text biomedical research articles and access their metadata, citations, and related papers from PubMed Central. Find articles by topic, discover similar research, explore journal collections, and retrieve detailed citation information to support your literature review and research.
open.fda.gov API
Search FDA food recall and enforcement actions to find safety information about specific products or manufacturers, and look up adverse events reported to the CFSAN Adverse Event Reporting System (CAERS). Filter, sort, and aggregate data by various fields to analyze food safety trends and monitor enforcement activity.
azbar.org API
Search for Arizona lawyers by name, location, specialty, or company to find the right legal professional for your needs. View detailed lawyer profiles including their specializations, licensed jurisdictions, law school, admission history, and any disciplinary records.