GET /uniprotkb/stream

uniprot.org:uniprot-api

Summary: Stream UniProtKB entries
Operation ID: streamUniProtKB
Auth: none

Stream UniProtKB entries in bulk for large dataset downloads. Unlike the search endpoint which returns paginated results, this endpoint streams all matching entries as a continuous response, making it ideal for downloading complete datasets or very large result sets. Use this endpoint when you need to export thousands or millions of entries (e.g., "all reviewed human proteins"). The response is streamed, so you can process entries as they arrive without waiting for the complete dataset. Supports multiple output formats including JSON, TSV, FASTA (for sequences), and compressed output.

Original spec description

Stream UniProtKB entries matching a query. Useful for downloading large result sets.

Usage Tips

- This endpoint is for bulk downloads - it does NOT respect the `size` parameter - Use `compressed=true` to receive gzip-compressed data (saves bandwidth) - Use `format=fasta` to get sequences in FASTA format - Use `format=tsv` for tab-separated values with configurable fields - The stream can be very large (gigabytes) - use appropriate client settings - Consider filtering with specific queries rather than streaming the entire database - The connection may timeout for very large queries - consider breaking into smaller chunks

Parameters (3)

compressed (boolean, query, optional, default: False)

Return compressed (gzip) response

format (string, query, optional, default: json)

Response format

Constraints: {'enum': ['json', 'xml', 'tsv', 'fasta']}

query (string, query, required)

Search query string

Examples (3)

TitleTypeURLAction
Stream insulin entries in JSON curl https://rest.uniprot.org/uniprotkb/stream?query=insulin&format=json
Stream human kinase entries in TSV format curl https://rest.uniprot.org/uniprotkb/stream?query=kinase+AND+organism_id%3A9606&format=tsv
Stream reviewed entries in FASTA format with compression curl https://rest.uniprot.org/uniprotkb/stream?query=reviewed%3Atrue&format=fasta&compressed=true

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-03-23 10:35:17.216123 200 388ms 2.0MB
2026-03-23 10:23:46.584330 200 452ms
2026-03-23 09:24:33.662310 200 376ms 2.0MB

Response Changes

WhenOldNew
2026-03-23 10:23:46.584330 38dcff78ba3f 7a98dd53c3f3
2026-03-23 10:35:17.216123 7a98dd53c3f3 a73b29c3e2bc