POST /api/genbank/assemblies
Price: 1 credit
Get a genome assembly report by its accession
Resolves one genome assembly from NCBI Datasets. An accession passed without its version suffix resolves to the current version, and the `accession` field reports which one that was. GCF_ is the RefSeq copy and GCA_ the GenBank copy of the same assembly: each resolves separately and `paired_assembly` links them, with `is_different` and `differences` saying whether the two actually hold the same sequences. Annotation is not universal - `annotation` and its gene counts are present only where NCBI or the submitter annotated the genome, and `checkm` and `average_nucleotide_identity` are prokaryote quality checks, so their absence is not a quality signal. Read `level` (Complete Genome / Chromosome / Scaffold / Contig) before treating an assembly as a finished genome.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)id string required — Genome assembly accession, RefSeq (GCF_) or GenBank (GCA_). Without a version suffix the current version of that assembly is returned (examples: "GCF_000001405.40", "GCA_000001405.29", "GCF_000005845"; minLength: 1)@type string (default: "GenbankAssembly")id string requiredaccession string (default: "")paired_accession string (default: "")source_database string (default: "")name string (default: "")description string (default: "")level string (default: "")status string (default: "")assembly_type string (default: "")diploid_role string (default: "")refseq_category string (default: "")synonym string (default: "")comments string (default: "")release_date string (default: "")submitter string (default: "")assembly_method string (default: "")sequencing_technique string (default: "")blast_url string (default: "")organism string (default: "")common_name string (default: "")taxid string (default: "")strain string (default: "")isolate string (default: "")cultivar string (default: "")ecotype string (default: "")breed string (default: "")sex string (default: "")is_atypical boolean (default: false)atypical_warnings array (default: [])genome_notes array (default: [])suppression_reason string (default: "")type_material string (default: "")type_material_label string (default: "")biosample_accession string (default: "")bioproject_accession string (default: "")bioprojects array (default: [])@type string (default: "GenbankAssemblyBioProject")accession string requiredproject_title string (default: "")parent_accessions array (default: [])paired_assembly object nullable@type string (default: "GenbankPairedAssembly")accession string (default: "")status string (default: "")annotation_name string (default: "")changed_components string (default: "")is_different boolean (default: false)differences string (default: "")manual_diff string (default: "")only_genbank string (default: "")only_refseq string (default: "")linked_assemblies array (default: [])@type string (default: "GenbankLinkedAssembly")accession string requiredassembly_type string (default: "")stats object nullable@type string (default: "GenbankAssemblyStats")total_sequence_length integer nullabletotal_ungapped_length integer nullablechromosome_count integer nullablecontig_count integer nullablecontig_n50 integer nullablecontig_l50 integer nullablescaffold_count integer nullablescaffold_n50 integer nullablescaffold_l50 integer nullablegaps_between_scaffolds_count integer nullablecomponent_sequence_count integer nullableorganelle_count integer nullableatgc_count integer nullablegc_count integer nullablegc_percent number nullablegenome_coverage string (default: "")annotation object nullable@type string (default: "GenbankAssemblyAnnotation")name string (default: "")provider string (default: "")release_date string (default: "")report_url string (default: "")method string (default: "")pipeline string (default: "")software_version string (default: "")status string (default: "")gene_counts object nullable@type string (default: "GenbankGeneCounts")total integer nullableprotein_coding integer nullablenon_coding integer nullablepseudogene integer nullableother integer nullablebusco object nullable@type string (default: "GenbankBusco")lineage string (default: "")version string (default: "")complete number nullablesingle_copy number nullableduplicated number nullablefragmented number nullablemissing number nullabletotal_count integer nullableorganelles array (default: [])@type string (default: "GenbankOrganelle")description string requiredtotal_sequence_length integer nullablesubmitter string (default: "")average_nucleotide_identity object nullable@type string (default: "GenbankAverageNucleotideIdentity")taxonomy_check_status string (default: "")match_status string (default: "")category string (default: "")comment string (default: "")submitted_organism string (default: "")submitted_species string (default: "")best_match object nullable@type string (default: "GenbankAniMatch")assembly string (default: "")organism_name string (default: "")category string (default: "")ani number nullableassembly_coverage number nullabletype_assembly_coverage number nullablesubmitted_match object nullable@type string (default: "GenbankAniMatch")assembly string (default: "")organism_name string (default: "")category string (default: "")ani number nullableassembly_coverage number nullabletype_assembly_coverage number nullablecheckm object nullable@type string (default: "GenbankCheckm")version string (default: "")marker_set string (default: "")marker_set_rank string (default: "")species_taxid string (default: "")completeness number nullablecompleteness_percentile number nullablecontamination number nullableadditional_submitters array (default: [])@type string (default: "GenbankAdditionalSubmitter")submitter string requiredchromosome_name string (default: "")molecule_type string (default: "")bioproject_accession string (default: "")genbank_accession string (default: "")refseq_accession string (default: "")wgs_project_accession string (default: "")wgs_master_url string (default: "")wgs_contigs_url string (default: "")url string (default: "")422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — Assembly not found Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.