The BOLD Web Services provide the ability to download specimen, sequence and trace data from the Public Data Portal.
4 API Web Services are described below, including the outputs, sample URL and various parameters (inputs) available for each service.
General Format Notes: Each service can accept multiple input parameters, ampersand ('&') delimited, treating the parameters as a logical "AND" clause. All input parameters can accept multiple string values, pipe ('|') delimited, unless otherwise noted. These string values are treated as a logical "OR" clause. All spaces in the URLs need to be encoded.
Description: Users can query the system to retrieve matching specimen data records for a combination of parameters as are described in the table below.
Base URL: http://www.boldsystems.org/index.php/API_Public/specimen/?
Results: TSV or XML file consisting of the Voucher, Taxonomic, Specimen and Collection data for each record.
http://www.boldsystems.org/index.php/API_Public/specimen/?taxon=Aves&geo=Costa%20Rica&specimen_download=tsv
Specimen Parameters | Description |
---|---|
taxon |
Returns all records containing matching taxa, defined in a pipe delimited list.(spaces need to be encoded)
|
ids |
Returns all records containing matching IDs, defined in a pipe delimited list.(spaces need to be encoded)
|
bin |
Returns all records contained in matching BINs, defined in a pipe delimited list.
|
container |
Returns all records contained in matching projects or datasets, in a pipe delimited list.
|
institutions |
Returns all records stored in matching institutions, defined in a pipe delimited list.
|
researchers |
Returns all records containing matching researcher names, defined in a pipe delimited list.
|
geo |
Returns all records collected in matching geographic sites, defined in a pipe delimited list.
|
specimen_download (optional) |
Returns all records in one of the specified formats.
|
Description: Users can query the system to retrieve matching sequencesfor a combination of parameters as are described in the table below.
Base URL: http://www.boldsystems.org/index.php/API_Public/sequence/?
Results: FASTA file consisting of sequences.
The fields returned for each sequence (pipe delimited in the FASTA header) are: processid identification marker accession
Example: To retrieve records for taxon Chordata, collected in Florida, belonging to the institution Smithsonian Institution. (Example of first record available in FASTA here)
http://www.boldsystems.org/index.php/API_Public/sequence/?taxon=Chordata&geo=Florida&institutions=Smithsonian%20Institution
Sequence Parameters | Description |
---|---|
taxon |
Returns all records containing matching taxa, defined in a pipe delimited list.
|
ids |
Returns all records containing matching IDs, defined in a pipe delimited list.
|
bin |
Returns all records contained in matching BINs, defined in a pipe delimited list.
|
container |
Returns all records contained in matching projects or datasets, in a pipe delimited list.
|
institutions |
Returns all records stored in matching institutions, defined in a pipe delimited list.
|
researchers |
Returns all records containing matching researcher names, defined in a pipe delimited list.
|
geo |
Returns all records collected in matching geographic sites, defined in a pipe delimited list.
|
marker |
Returns all records containing matching marker codes defined in a pipe delimited list.
|
sequence_download |
Returns the sequences in a FASTA formatted file. (no parameter necessary) |
Description: Users can query the system to retrieve matching specimen data and sequence records for a combination of parameters as are described in the table below.
Base URL: http://www.boldsystems.org/index.php/API_Public/combined/?
Results: TSV or XML file consisting of the Voucher, Taxonomic, Specimen, Collection data and Sequence for each record.
FASTA is not a supported file format for the Combined Specimen and Sequence Service.
Example: To retrieve Specimen Data and Sequences for records belonging to the taxon Mammalia, collected in Canada, in an TSV format. (Example of first record available in TSV here)
http://www.boldsystems.org/index.php/API_Public/combined?taxon=Mammalia&geo=Canada&combined_download=tsv
Combined Parameters | Description |
---|---|
taxon |
Returns all records containing matching taxa defined in a pipe delimited list.
|
ids |
Returns all records containing matching IDs defined in a pipe delimited list.
|
bin |
Returns all records contained in matching BINs defined in a pipe delimited list.
|
container |
Returns all records contained in matching projects or datasets in a pipe delimited list.
|
institutions |
Returns all records stored in matching institutions, defined in a pipe delimited list.
|
researchers |
Returns all records containing matching researcher names, defined in a pipe delimited list.
|
geo |
Returns all records collected in matching geographic sites, defined in a pipe delimited list.
|
marker |
Returns all records containing matching marker codes defined in a pipe delimited list.
|
combined_download (optional) |
Returns all records in one of the specified formats.
|
Description: Users can query the system to retrieve matching trace files for a combination of parameters as are described in the table below.
Base URL: http://www.boldsystems.org/index.php/API_Public/trace/?
Results: TAR file consisting of compressed Trace Files (traces in either .ab1 or .scf format) along with a file listing the Process ID, taxon and marker for each Trace File included.
http://www.boldsystems.org/index.php/API_Public/trace/?taxon=Bombus&institutions=York%20University
Trace File Parameters | Description |
---|---|
taxon |
Returns all traces containing matching taxa defined in a pipe delimited list.
|
ids |
Returns all traces containing matching IDs defined in a pipe delimited list.
|
bin |
Returns all traces contained in matching BINs defined in a pipe delimited list.
|
container |
Returns all traces contained in matching projects or datasets in a pipe delimited list.
|
institutions |
Returns all records stored in matching institutions, defined in a pipe delimited list.
|
researchers |
Returns all records containing matching researcher names, defined in a pipe delimited list.
|
geo |
Returns all records collected in matching geographic sites, defined in a pipe delimited list.
|
marker |
Returns all traces containing matching marker codes, defined in a pipe delimited list.
|
trace_download |
Returns the traces compressed in a TAR file. (no parameter necessary) |