Install any skill in seconds. Free to start, no credit card required.
Get Started Free →protocols.io REST API: search and fetch wet-lab, bioinformatics, and clinical protocols by keyword, DOI, or category, with steps, reagents, materials, equipment, timing. Public access free; auth needed for private or publishing. Pair with opentrons-protocol-api or benchling-integration to execute.
.claude/skills/jaechang-hits-protocolsio-integration/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 104% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 92% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 146% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 212% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 128% | 0% |
protocols.io is the leading protocol repository for life sciences with 90,000+ open-access experimental protocols covering molecular biology, cell biology, bioinformatics, clinical research, and lab automation. The REST API provides programmatic access to protocol search, full protocol retrieval (steps, reagents, materials, equipment), protocol versioning, workspace management, and protocol publishing. Public protocols are freely accessible; authentication (OAuth2 token) is required for private protocols or creating/editing.
opentrons-protocol-api or benchling-integration to implement downloaded protocols in automated workflowsrequests, pandasbashpip install requests pandas # For private protocol access or publishing: # Register at https://www.protocols.io/developers to obtain an API token
pythonimport requests BASE = "https://www.protocols.io/api/v4" # For public protocols, no token needed (but add for higher rate limits) HEADERS = {"Authorization": "Bearer YOUR_TOKEN_HERE"} # Optional for public # Search for CRISPR protocols r = requests.get(f"{BASE}/protocols", params={"q": "CRISPR guide RNA design", "order_field": "views", "page_size": 5}, headers=HEADERS) r.raise_for_status() data = r.json() print(f"Total CRISPR protocols: {data['pagination']['total_results']}") for p in data["items"][:3]: print(f"\n {p['title']}") print(f" DOI: {p.get('doi')} | Views: {p.get('stats', {}).get('number_of_views')}") print(f" Authors: {', '.join(a['name'] for a in p.get('creators', [])[:3])}")
Search the protocols.io public library by keyword, technique, or full-text.
pythonimport requests, pandas as pd BASE = "https://www.protocols.io/api/v4" def search_protocols(query, page_size=20, order_field="relevance", category_id=None): params = {"q": query, "page_size": page_size, "order_field": order_field} if category_id: params["filter[categories_ids][]"] = category_id r = requests.get(f"{BASE}/protocols", params=params) r.raise_for_status() return r.json() data = search_protocols("RNA extraction tissue", page_size=10, order_field="views") total = data["pagination"]["total_results"] print(f"RNA extraction protocols: {total}") rows = [] for p in data["items"][:10]: rows.append({ "id": p.get("id"), "title": p.get("title"), "doi": p.get("doi"), "views": p.get("stats", {}).get("number_of_views", 0), "created": p.get("created_on"), "category": p.get("categories", [{}])[0].get("name", "n/a"), }) df = pd.DataFrame(rows).sort_values("views", ascending=False) print(df.to_string(index=False))
python# Search with category filter (get category IDs from /categories endpoint) data_pcr = search_protocols("qPCR primer design", order_field="views") print(f"\nqPCR protocols: {data_pcr['pagination']['total_results']}") for p in data_pcr["items"][:3]: print(f" {p['title'][:70]} (DOI: {p.get('doi', 'n/a')})")
Fetch the complete protocol with steps, reagents, materials, and equipment.
pythonimport requests BASE = "https://www.protocols.io/api/v4" def get_protocol(protocol_id): r = requests.get(f"{BASE}/protocols/{protocol_id}") r.raise_for_status() return r.json() # Retrieve protocol by ID (from search results or DOI lookup) protocol_id = 45979 # Example: a public protocol data = get_protocol(protocol_id) protocol = data.get("payload", data) # Handle API response structure print(f"Title: {protocol.get('title')}") print(f"DOI: {protocol.get('doi')}") print(f"Authors: {', '.join(a['name'] for a in protocol.get('creators', []))}") print(f"Steps: {len(protocol.get('steps', []))}") print(f"Materials: {len(protocol.get('materials', []))}") print(f"Abstract: {protocol.get('description', '')[:200]}")
python# Parse protocol steps protocol_steps = protocol.get("steps", []) for i, step in enumerate(protocol_steps[:5], 1): step_desc = step.get("description", "") duration = step.get("duration", {}) print(f"\nStep {i}: {step_desc[:120]}") if duration: print(f" Duration: {duration.get('duration')} {duration.get('unit_label', '')}")
Fetch a protocol using its DOI for precise citation-based retrieval.
pythonimport requests, json BASE = "https://www.protocols.io/api/v4" def get_protocol_by_doi(doi): """Retrieve protocol using its DOI.""" # URL-encode the DOI for the query r = requests.get(f"{BASE}/protocols", params={"q": doi, "page_size": 5}) r.raise_for_status() items = r.json()["items"] for item in items: if item.get("doi") == doi: return item return None doi = "10.17504/protocols.io.bvb3n2qn" # Example protocols.io DOI protocol = get_protocol_by_doi(doi) if protocol: print(f"Found: {protocol['title']}") print(f" ID: {protocol['id']}") print(f" Version: {protocol.get('version_id')}")
Parse out the materials list from a retrieved protocol.
pythonimport requests, pandas as pd BASE = "https://www.protocols.io/api/v4" def get_reagents(protocol_id): r = requests.get(f"{BASE}/protocols/{protocol_id}") r.raise_for_status() data = r.json() protocol = data.get("payload", data) return protocol.get("materials", []) # Get reagents list materials = get_reagents(45979) # Example protocol ID print(f"Materials ({len(materials)} items):") rows = [] for m in materials[:10]: rows.append({ "name": m.get("name"), "quantity": m.get("quantity"), "unit": m.get("unit", {}).get("name", ""), "supplier": m.get("supplier", {}).get("name", ""), "catalog": m.get("sku"), }) df = pd.DataFrame(rows) print(df.to_string(index=False))
List available protocol categories for targeted searches.
pythonimport requests, pandas as pd BASE = "https://www.protocols.io/api/v4" r = requests.get(f"{BASE}/categories") r.raise_for_status() data = r.json() categories = data.get("items", data.get("payload", [])) print(f"protocols.io categories: {len(categories)}") df = pd.DataFrame(categories)[["id", "name"]].head(20) print(df.to_string(index=False))
Retrieve version history for a protocol to track updates.
pythonimport requests BASE = "https://www.protocols.io/api/v4" def get_protocol_versions(protocol_id): r = requests.get(f"{BASE}/protocols/{protocol_id}") r.raise_for_status() protocol = r.json().get("payload", r.json()) return { "title": protocol.get("title"), "version": protocol.get("version_id"), "published": protocol.get("published_on"), "doi": protocol.get("doi"), "parent_doi": protocol.get("parent_publication", {}).get("doi"), } info = get_protocol_versions(45979) for k, v in info.items(): print(f" {k}: {v}")
Each published protocols.io protocol has a citable DOI (format: 10.17504/protocols.io.XXXXX). When a protocol is updated, a new version is created with a new DOI while the original DOI remains valid. Always cite the specific version DOI in methods sections for reproducibility.
Public protocols are accessible without authentication. OAuth2 Bearer tokens are needed for: private protocols, workspace management, protocol creation/editing, and user-specific queries. Obtain tokens at https://www.protocols.io/developers.
Goal: Search for protocols matching a technique, compare them, and select the best one for adaptation.
pythonimport requests, pandas as pd BASE = "https://www.protocols.io/api/v4" def search_and_rank(query, top_n=20): """Search protocols and return ranked by views + forks.""" r = requests.get(f"{BASE}/protocols", params={"q": query, "page_size": top_n, "order_field": "views"}) r.raise_for_status() data = r.json() rows = [] for p in data["items"]: stats = p.get("stats", {}) rows.append({ "id": p.get("id"), "title": p.get("title"), "doi": p.get("doi"), "views": stats.get("number_of_views", 0), "forks": stats.get("number_of_forks", 0), "steps": p.get("number_of_steps"), "created": p.get("created_on")[:10] if p.get("created_on") else "n/a", "category": p.get("categories", [{}])[0].get("name", "n/a"), }) df = pd.DataFrame(rows) df["popularity_score"] = df["views"] * 0.7 + df["forks"] * 0.3 * 100 return df.sort_values("popularity_score", ascending=False) # Compare western blotting protocols df = search_and_rank("western blot protein detection", top_n=15) df.to_csv("western_blot_protocols.csv", index=False) print("Top western blot protocols:") print(df[["title", "views", "forks", "steps"]].head(8).to_string(index=False))
Goal: Extract protocol steps, timing, and reagent volumes for downstream automation scripting.
pythonimport requests, pandas as pd BASE = "https://www.protocols.io/api/v4" def extract_protocol_steps(protocol_id): """Extract structured step data from a protocol.""" r = requests.get(f"{BASE}/protocols/{protocol_id}") r.raise_for_status() protocol = r.json().get("payload", r.json()) steps = [] for i, step in enumerate(protocol.get("steps", []), 1): duration = step.get("duration", {}) steps.append({ "step_number": i, "description": step.get("description", ""), "duration_value": duration.get("duration"), "duration_unit": duration.get("unit_label", ""), "temperature": step.get("temperature", {}).get("value"), "temp_unit": step.get("temperature", {}).get("unit_label", ""), }) materials = [{ "name": m.get("name"), "quantity": m.get("quantity"), "unit": m.get("unit", {}).get("name", ""), } for m in protocol.get("materials", [])] return { "title": protocol.get("title"), "doi": protocol.get("doi"), "steps": pd.DataFrame(steps), "materials": pd.DataFrame(materials), } result = extract_protocol_steps(45979) print(f"Protocol: {result['title']}") print(f"\nSteps ({len(result['steps'])}):") print(result["steps"][["step_number", "description", "duration_value", "duration_unit"]].head(5).to_string(index=False)) print(f"\nMaterials ({len(result['materials'])}):") print(result["materials"].head(5).to_string(index=False)) # Export for automation result["steps"].to_csv("protocol_steps.csv", index=False) result["materials"].to_csv("protocol_materials.csv", index=False)
| Parameter | Module | Default | Range / Options | Effect | |-----------|--------|---------|-----------------|--------| | q | Search | — | keyword string | Full-text search query | | order_field | Search | "relevance" | "relevance", "views", "date", "activity" | Sort order for results | | page_size | Search | 10 | 1–50 | Results per page | | page_id | Search | 1 | integer | Page number for pagination | | filter[categories_ids][] | Search | — | category integer ID | Filter by protocol category | | Protocol ID | Retrieve | required | integer | Specific protocol to fetch |
order_field=views when searching for well-validated protocols, as highly-viewed protocols have been tested by many groups.When to use: Find protocols that use a specific commercial kit or reagent.
pythonimport requests r = requests.get("https://www.protocols.io/api/v4/protocols", params={"q": "RNeasy Mini Kit RNA extraction", "page_size": 5, "order_field": "views"}) data = r.json() print(f"Protocols using RNeasy: {data['pagination']['total_results']}") for p in data["items"][:3]: print(f" {p['title'][:70]} ({p.get('doi', 'n/a')})")
When to use: Generate a citation string for a methods section.
pythonimport requests protocol_id = 45979 r = requests.get(f"https://www.protocols.io/api/v4/protocols/{protocol_id}") p = r.json().get("payload", r.json()) authors = "; ".join(a["name"] for a in p.get("creators", [])[:3]) print(f"Citation: {authors} ({p.get('created_on', '')[:4]}). ") print(f"{p.get('title')}. protocols.io. https://doi.org/{p.get('doi')}")
When to use: Identify widely-adapted protocols (high forks = adapted by many labs).
pythonimport requests, pandas as pd r = requests.get("https://www.protocols.io/api/v4/protocols", params={"q": "ChIP-seq chromatin", "page_size": 20}) data = r.json() df = pd.DataFrame([{ "title": p["title"][:60], "forks": p.get("stats", {}).get("number_of_forks", 0), "views": p.get("stats", {}).get("number_of_views", 0), } for p in data["items"]]) print(df.sort_values("forks", ascending=False).head(5).to_string(index=False))
| Problem | Cause | Solution | |---------|-------|----------| | Empty items in search | Query too specific or no match | Broaden query; remove special characters | | HTTP 401 accessing protocol | Private protocol without auth | Obtain OAuth2 token; public protocols don't need auth | | Protocol steps have empty descriptions | Protocol uses rich text formatting | Strip HTML tags from description with re.sub(r'<[^>]+>', '', text) | | materials list is empty | Protocol has no structured materials | Materials may be embedded in step descriptions as free text | | DOI lookup returns wrong protocol | Similar title match instead of DOI | Compare DOI field exactly; use string equality check if item.get("doi") == doi | | Rate limit errors | >10 requests/second | Add time.sleep(0.15) between requests |
opentrons-protocol-api — Execute protocols on Opentrons liquid handling robots using steps extracted via this skillbenchling-integration — Store retrieved protocols in Benchling ELN with reagent trackingscientific-manuscript-writing — Reference protocols correctly in methods sections using protocols.io DOIs| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-17 | pass→pass | 6,751 | 6,000 | -11% | 1 | 1 | 0% | 1,198 | 5,863 | +389% | 0 | 0 | — |
case-01 | fail→pass | 17,987 | 15,553 | -14% | 1 | 1 | 0% | 3,521 | 7,184 | +104% | 0 | 0 | — |
case-02 | fail→pass | 16,763 | 7,786 | -54% | 1 | 1 | 0% | 3,340 | 6,409 | +92% | 0 | 0 | — |
case-03 | pass→pass | 19,523 | 8,397 | -57% | 1 | 1 | 0% | 3,791 | 6,496 | +71% | 0 | 0 | — |
case-04 | pass→pass | 18,415 | 9,856 | -46% | 1 | 1 | 0% | 3,947 | 6,664 | +69% | 0 | 0 | — |
case-05 | pass→pass | 8,014 | 3,857 | -52% | 1 | 1 | 0% | 1,518 | 5,522 | +264% | 0 | 0 | — |
case-06 | fail→pass | 11,345 | 5,218 | -54% | 1 | 1 | 0% | 2,375 | 5,837 | +146% | 0 | 0 | — |
case-07 | fail→pass | 9,987 | 5,749 | -42% | 1 | 1 | 0% | 1,897 | 5,918 | +212% | 0 | 0 | — |
case-08 | pass→pass | 9,128 | 8,475 | -7% | 1 | 1 | 0% | 1,683 | 6,339 | +277% | 0 | 0 | — |
case-09 | pass→pass | 13,304 | 9,290 | -30% | 1 | 1 | 0% | 2,397 | 6,482 | +170% | 0 | 0 | — |
case-10 | pass→pass | 15,628 | 7,295 | -53% | 1 | 1 | 0% | 2,901 | 6,219 | +114% | 0 | 0 | — |
case-11 | fail→pass | 14,572 | 6,865 | -53% | 1 | 1 | 0% | 2,662 | 6,062 | +128% | 0 | 0 | — |
case-12 | pass→pass | 15,491 | 7,750 | -50% | 1 | 1 | 0% | 2,849 | 6,132 | +115% | 0 | 0 | — |
case-13 | fail→pass | 19,288 | 13,269 | -31% | 1 | 1 | 0% | 3,559 | 7,318 | +106% | 0 | 0 | — |
case-14 | pass→pass | 9,782 | 11,544 | +18% | 1 | 1 | 0% | 1,849 | 6,853 | +271% | 0 | 0 | — |
case-15 | fail→pass | 14,661 | 16,152 | +10% | 1 | 1 | 0% | 36 | 8,401 | +23236% | 0 | 0 | — |
case-16 | pass→pass | 7,344 | 3,484 | -53% | 1 | 1 | 0% | 1,349 | 5,441 | +303% | 0 | 0 | — |
case-18 | pass→pass | 4,287 | 3,204 | -25% | 1 | 1 | 0% | 632 | 5,261 | +732% | 0 | 0 | — |
case-19 | pass→pass | 12,085 | 6,660 | -45% | 1 | 1 | 0% | 1,744 | 5,702 | +227% | 0 | 0 | — |
case-20 | pass→pass | 10,155 | 7,778 | -23% | 1 | 1 | 0% | 1,909 | 6,254 | +228% | 0 | 0 | — |
case-21 | pass→pass | 18,790 | 14,946 | -20% | 1 | 1 | 0% | 3,505 | 7,675 | +119% | 0 | 0 | — |
case-22 | pass→pass | 13,344 | 11,128 | -17% | 1 | 1 | 0% | 2,757 | 7,105 | +158% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +32 percentage points is the difference between those two pass rates over the 21 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.