Common URL API

The NCBI-BLAST Common URL API allows you to submit BLAST searches and retrieve BLAST results programmatically.

Every call to the Common URL API must include the CMD parameter, which can take one of two different arguments. You may use Put for search submission, or Get for checking the status of a submission or retrieving results after its completion. Each argument to CMD requires or allows certain other parameters as described in the table below. The table below lists all supported parameters. Parameters not listed are not supported and should not be relied upon by users of this API.

An asterisk (*) after the parameter indicates that the parameter is required for that command.

If a parameter is not required and not provided, then the default value will be used. That default value may depend upon the BLAST search you are running.

Parameters to retrieve results

Parameter

Definition

Type

Allowed values

Default value

Applicable for

CMD *

Operation to perform

String

Get

None

All programs

RID *

BLAST search request identifier

String

The Request ID (RID) returned when the search was submitted

None

All programs

FORMAT_TYPE

Report type

String

HTML, Text, XML2, XML2_S, JSONSA, JSON2, JSON2_S, SAM. For tabular Text output use
FORMAT_TYPE=Text&ALIGNMENT_VIEW=Tabular. For tabular CSV output use
FORMAT_TYPE=CSV&ALIGNMENT_VIEW=Tabular.

HTML

All programs

DESCRIPTIONS

Number of descriptions to print

Integer

Integer greater than zero.

100

All programs, HTML,Text formats

ALIGNMENTS

Number of alignments to print

Integer

Integer greater than zero.

100

All programs, HTML,Text formats

NCBI_GI

Show NCBI GIs in report

String

true or false

false

blastn, tblastn, tblastx