POST /api/protocolsio/protocols
Price: 5 credits
Get one protocols.io protocol by its slug, versioned slug, numeric id or URL, with the full step-by-step procedure, reagents and equipment, authors and affiliations, funders, keywords, DOI and usage counts
Resolve one laboratory or computational protocol. The slug, the versioned slug, the numeric id and the protocol URL all resolve the same record; pass the versioned form to pin a version. Read `is_metadata_only` before using the answer: most of the corpus is imported from publishers, and such a record returns title, authors, DOI and keywords with `steps` empty and no usage counts, because the procedure itself lives with the publisher. A step count quoted by protocolsio/protocols/search counts the steps in the original publication, not steps this endpoint can return. Rich text arrives as plain text with the source's line breaks preserved.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)protocol string required — protocols.io slug, versioned slug, numeric id or protocol URL. All four forms resolve the same record; a versioned slug pins that version. (examples: "crispra-i-screen-for-targeted-activation-or-repres-ewov1e9r2gr2/v1", "pcr-d88z9zx6", "322521", "https://www.protocols.io/view/pcr-d88z9zx6"; minLength: 1)with_steps boolean — Include the step-by-step procedure. Records imported from a publisher carry no steps whatever this is set to. (default: true)@type string (default: "ProtocolsioProtocol")id string requiredalias string nullableversion_alias string nullableurl string nullabledoi string nullabledescription string nullablebefore_start string nullablewarning string nullableguidelines string nullabledisclaimer string nullableethics_statement string nullableacknowledgements string nullablemanuscript_citation string nullablematerials_text string nullableimage_attribution string nullableretraction_reason string nullablecitation string nullablekeywords array (default: [])status string nullableimage string nullableauthors array (default: [])@type string (default: "ProtocolsioAuthor")name string requiredfirst_name string nullablelast_name string nullablealias string nullableaffiliation string nullableaffiliation_url string nullableprofile_url string nullablenote string nullableis_verified boolean nullablecreator object nullable@type string (default: "ProtocolsioAuthor")name string requiredfirst_name string nullablelast_name string nullablealias string nullableaffiliation string nullableaffiliation_url string nullableprofile_url string nullablenote string nullableis_verified boolean nullablegroups array (default: [])@type string (default: "ProtocolsioGroup")id string requiredalias string nullableurl string nullableis_public boolean nullablefunders array (default: [])@type string (default: "ProtocolsioFunder")name string requiredgrant_id string nullablematerials array (default: [])@type string (default: "ProtocolsioMaterial")name string requiredvendor string nullablecatalog_number string nullablerrid string nullableurl string nullableequipment array (default: [])@type string (default: "ProtocolsioMaterial")name string requiredvendor string nullablecatalog_number string nullablerrid string nullableurl string nullableversions array (default: [])@type string (default: "ProtocolsioVersion")id string requiredalias string nullableversion_alias string nullabledoi string nullablepublished_at integer nullableupdated_at integer nullablesteps array (default: [])@type string (default: "ProtocolsioStep")id string requirednumber integer nullabletext string nullablesection string nullablesection_color string nullablesection_duration integer nullableduration integer nullableis_substep boolean nullabletechniques array (default: [])translation_languages array (default: [])step_count integer nullableview_count integer nullablerun_count integer nullablefork_count integer nullablecomment_count integer nullablebookmark_count integer nullableexport_count integer nullablevote_count integer nullablereagent_count integer nullableequipment_count integer nullableis_metadata_only boolean nullableis_imported boolean nullableimport_source string nullableis_research boolean nullableis_retracted boolean nullableis_unlisted boolean nullableis_draft boolean nullableis_public boolean nullableis_content_warning boolean nullableis_peer_reviewed boolean nullableis_book_chapter boolean nullablehas_versions boolean nullablehas_references boolean nullablehas_step_reagents boolean nullablecreated_at integer nullablepublished_at integer nullableupdated_at integer nullable422 — 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 — No protocol matches that slug, id or URL, or that protocol has no such version 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.