Skip to main content

Notes

  • Keyless. Ask for format=json; without it or an Accept header some endpoints answer another format.
  • Search pages with a cursor: the next page’s full URL is in the Link response header (rel=“next”), the total in x-total-results. Use size=500 for speed.
  • Query syntax is UniProt’s own, e.g. (reviewed:true) AND (organism_id:9606) or gene:BRCA1.

Endpoints

Stream all matching entries

  • Expensive: parallel stream calls get 429; at most 10,000,000 entries. Prefer entries.search pages for large sets.

Get one entry

  • UniRef ids are not stable across releases. A removed entry answers 410.

Start an ID mapping job

  • A read over POST: it starts a mapping job and returns a jobId. Poll idmapping.status, then fetch idmapping.results.

Check an ID mapping job

  • A finished job answers 303 with the results URL in the Location header.

Get ID mapping results

  • Mapped to UniProtKB, UniRef or UniParc, the full entries are at /idmapping/{uniprotkb|uniref|uniparc}/results/{jobId}; /idmapping/stream/{jobId} returns all at once.

List mappable databases