{"openapi":"3.1.0","info":{"title":"Sable Peptides catalogue data API","version":"1.1.0","summary":"Read-only open data for the Sable Peptides research catalogue.","description":"Public, read-only, unauthenticated JSON. Supports GET only. Licensed CC BY 4.0 (credit \"Sable Peptides\").\nResearch use only: all substances are supplied for laboratory research only, not for human or veterinary use.\nNo administration-amount, administration or health-effect data is provided. Unknown values are null, never estimated.\n\nVersioning: the major version is in the path (/data/v1). Additive changes (new fields, endpoints) ship without notice; breaking changes get a new major path and at least 6 months of overlap. See https://www.sablepeptides.co.uk/developers/deprecation-policy.\nRate limit: 120 requests per minute per client, reported in RateLimit-* headers; 429 responses carry Retry-After.\nErrors: every error body follows the Error schema with a stable `code`.\n\n\nNo authentication: every operation is public and read-only (`security: [{}]`).","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"contact":{"name":"Sable Peptides","url":"https://www.sablepeptides.co.uk/developers"},"x-api-lifecycle":{"status":"stable","deprecation_policy":"https://www.sablepeptides.co.uk/developers/deprecation-policy","sunset_notice_days":180}},"servers":[{"url":"https://www.sablepeptides.co.uk/data/v1"}],"tags":[{"name":"products","description":"Catalogue products and vial variants with GBP list prices and stock."},{"name":"prices","description":"Current list prices and the dated UK research peptide price index."},{"name":"reference","description":"Substance reference data: identifiers and sourced physicochemical facts."},{"name":"qa","description":"Search published Sable Peptides question-and-answer pages and the catalogue."}],"paths":{"/products":{"get":{"tags":["products"],"operationId":"listProducts","summary":"List all products with their sizes and current prices.","parameters":[{"name":"in_stock","in":"query","schema":{"type":"boolean"},"description":"`in_stock` query parameter."}],"responses":{"200":{"description":"Success. JSON body as described by the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductList"}}},"headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"description":"Every public catalogue product with its vial variants, SKUs, list prices in pence and stock flag. Filter with `in_stock=true|false`. Use this to enumerate the catalogue."}},"/products/{slug}":{"get":{"tags":["products"],"operationId":"getProduct","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"description":"Success. JSON body as described by the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}},"headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Get one product","description":"A single product by URL slug (e.g. `bpc-157`), with all variants and prices. Returns 404 with code `not_found` for an unknown slug."}},"/prices":{"get":{"tags":["prices"],"operationId":"listPrices","summary":"Current Sable list prices for every variant (flat list).","responses":{"200":{"description":"Success. JSON body as described by the schema.","content":{"application/json":{"schema":{"type":"object","required":["as_of","items"],"properties":{"as_of":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Variant"}}}}}},"headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"description":"Flat list of every variant's current list price (GBP, pence and pounds), SKU and stock. Same data as /ai/prices.json in API form."}},"/price-index":{"get":{"tags":["prices"],"operationId":"getPriceIndex","summary":"UK research peptide price index (aggregates, min 3 sellers per series).","parameters":[{"name":"date","in":"query","description":"Snapshot date (YYYY-MM-DD). Latest if omitted.","schema":{"type":"string","format":"date"}},{"name":"compound","in":"query","schema":{"type":"string"},"description":"`compound` query parameter."}],"responses":{"200":{"description":"Success. JSON body as described by the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceIndex"}}},"headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"description":"The UK research peptide price index: lowest observed in-stock UK price per compound and size from the daily check, with Sable's price alongside. Optional `date=YYYY-MM-DD` and `compound=<slug>`."}},"/reference":{"get":{"tags":["reference"],"operationId":"listSubstances","summary":"Chemical-entity reference records for every catalogue compound.","responses":{"200":{"description":"Success. JSON body as described by the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Substance"}}}}}},"headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"description":"Reference records for each compound: identifiers, sequence and molecular data where known. Unknown values are null."}},"/reference/{slug}":{"get":{"tags":["reference"],"operationId":"getSubstance","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"description":"Success. JSON body as described by the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Substance"}}},"headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Get one reference record","description":"One chemical-entity record by slug. 404 `not_found` if unknown."}},"/qa/search":{"get":{"tags":["qa"],"operationId":"searchQA","summary":"Keyword search over the research Q&A set.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":200},"description":"`q` query parameter."},{"name":"compound","in":"query","schema":{"type":"string"},"description":"`compound` query parameter."},{"name":"category","in":"query","schema":{"type":"string","enum":["identity","properties","analytical","handling","lab_calculations","comparison","buying_uk","research_context","general_science"]},"description":"`category` query parameter."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":10},"description":"`limit` query parameter."}],"responses":{"200":{"description":"Success. JSON body as described by the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"total":{"type":"integer"},"items":{"type":"array","items":{"$ref":"#/components/schemas/QA"}}}}}},"headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"description":"Keyword search over the research Q&A set. `q` is required (2-200 chars); optional `compound`, `category`, `limit` (1-50, default 10). 400 `bad_request` if `q` is invalid."}},"/search":{"get":{"tags":["products"],"operationId":"searchProducts","summary":"Match products by name, synonym or CAS number.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2},"description":"`q` query parameter."}],"responses":{"200":{"description":"Success. JSON body as described by the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductList"}}},"headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"description":"Keyword search over product names and slugs. `q` is required (min 2 chars); 400 `bad_request` otherwise."}}},"components":{"parameters":{"slug":{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]+$"},"example":"bpc-157","description":"URL slug of the resource, lower-case with hyphens, e.g. `bpc-157`."}},"responses":{"NotFound":{"description":"No resource with that identifier. code = not_found.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"},"example":{"error":"not found","code":"not_found","status":404,"message":"not found","documentation_url":"https://www.sablepeptides.co.uk/developers#errors","license":"CC-BY-4.0","attribution":"Sable Peptides – https://www.sablepeptides.co.uk/data","notice":"Research use only. Not for human or veterinary use."}}}},"BadRequest":{"description":"A required query parameter is missing or invalid. code = bad_request.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestError"},"example":{"error":"q required (min 2)","code":"bad_request","status":400,"message":"q required (min 2)","documentation_url":"https://www.sablepeptides.co.uk/developers#errors","license":"CC-BY-4.0","attribution":"Sable Peptides – https://www.sablepeptides.co.uk/data","notice":"Research use only. Not for human or veterinary use."}}}},"MethodNotAllowed":{"description":"Only GET and HEAD are supported. code = method_not_allowed.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Allow":{"description":"GET, HEAD","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MethodNotAllowedError"},"example":{"error":"method not allowed","code":"method_not_allowed","status":405,"message":"method not allowed","documentation_url":"https://www.sablepeptides.co.uk/developers#errors","license":"CC-BY-4.0","attribution":"Sable Peptides – https://www.sablepeptides.co.uk/data","notice":"Research use only. Not for human or veterinary use."}}}},"TooManyRequests":{"description":"More than 120 requests a minute from one client. code = rate_limited.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsError"},"example":{"error":"rate limited","code":"rate_limited","status":429,"message":"rate limited","documentation_url":"https://www.sablepeptides.co.uk/developers#errors","license":"CC-BY-4.0","attribution":"Sable Peptides – https://www.sablepeptides.co.uk/data","notice":"Research use only. Not for human or veterinary use."}}}},"ServerError":{"description":"Unexpected server error. Retry with backoff. code = internal_error.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerErrorError"},"example":{"error":"internal error","code":"internal_error","status":500,"message":"internal error","documentation_url":"https://www.sablepeptides.co.uk/developers#errors","license":"CC-BY-4.0","attribution":"Sable Peptides – https://www.sablepeptides.co.uk/data","notice":"Research use only. Not for human or veterinary use."}}}}},"schemas":{"Notice":{"type":"string","const":"Research use only. Not for human or veterinary use.","description":"Notice object."},"Variant":{"type":"object","required":["sku_url","size","unit","price_gbp","in_stock"],"properties":{"product_slug":{"type":"string","description":"Product slug."},"size":{"type":"number","description":"Size."},"unit":{"type":"string","example":"mg","description":"Unit."},"price_gbp":{"type":"number","description":"Price gbp."},"price_per_unit_gbp":{"type":"number","description":"Price per unit gbp."},"in_stock":{"type":"boolean","description":"In stock."},"sku_url":{"type":"string","format":"uri","description":"Sku url."},"coa":{"type":"string","const":"available on request for every batch","description":"Coa."}},"description":"Variant object."},"Product":{"type":"object","required":["slug","name","url","variants","notice","updated_at"],"properties":{"slug":{"type":"string","description":"Slug."},"name":{"type":"string","description":"Name."},"url":{"type":"string","format":"uri","description":"Url."},"substance":{"$ref":"#/components/schemas/SubstanceRef"},"variants":{"type":"array","items":{"$ref":"#/components/schemas/Variant"},"description":"Variants."},"notice":{"$ref":"#/components/schemas/Notice"},"updated_at":{"type":"string","format":"date-time","description":"Updated at."}},"description":"Product object."},"ProductList":{"type":"object","properties":{"count":{"type":"integer","description":"Count."},"license":{"type":"string","const":"CC-BY-4.0","description":"License."},"items":{"type":"array","items":{"$ref":"#/components/schemas/Product"},"description":"Items."}},"description":"ProductList object."},"SubstanceRef":{"type":"object","properties":{"id":{"type":"string","format":"uri","example":"https://www.sablepeptides.co.uk/ref/bpc-157#substance","description":"Id."},"href":{"type":"string","example":"/data/v1/reference/bpc-157","description":"Href."}},"description":"SubstanceRef object."},"Substance":{"type":"object","description":"Chemical-entity record. Mirrors the ChemicalSubstance/MolecularEntity JSON-LD on /ref/{slug}. sameAs only contains IDs from entity-ids.json.","required":["slug","name","id"],"properties":{"id":{"type":"string","format":"uri","description":"Id."},"slug":{"type":"string","description":"Slug."},"name":{"type":"string","description":"Name."},"aliases":{"type":"array","items":{"type":"string"},"description":"Aliases."},"kind":{"type":["string","null"],"description":"Kind."},"cas":{"type":["string","null"],"description":"Cas."},"sequence":{"type":["string","null"],"description":"Sequence."},"molecular_formula":{"type":["string","null"],"description":"Molecular formula."},"molecular_weight_g_mol":{"type":["number","null"],"description":"Molecular weight g mol."},"pubchem_cid":{"type":["string","null"],"description":"Pubchem cid."},"wikidata":{"type":"array","items":{"type":"string","pattern":"^Q[0-9]+$"},"description":"Wikidata."},"chebi":{"type":"array","items":{"type":"string"},"description":"Chebi."},"same_as":{"type":"array","items":{"type":"string","format":"uri"},"description":"Same as."},"review_flag":{"type":["string","null"],"description":"Set when identifiers await manual confirmation; same_as is empty while set."},"facts":{"type":"array","items":{"type":"object","properties":{"property":{"type":"string"},"value":{"type":"string"},"unit":{"type":["string","null"]},"source_url":{"type":"string","format":"uri"},"verified":{"type":"string","format":"date"},"anchor_url":{"type":"string","format":"uri"}}},"description":"Facts."}}},"PriceIndex":{"type":"object","properties":{"name":{"type":"string","description":"Name."},"date":{"type":"string","format":"date","description":"Date."},"min_sellers":{"type":"integer","const":3,"description":"Min sellers."},"methodology":{"type":"string","format":"uri","description":"Methodology."},"license":{"type":"string","description":"License."},"rows":{"type":"array","items":{"type":"object","properties":{"compound":{"type":"string"},"size_mg":{"type":"number"},"n_sellers":{"type":"integer"},"median_gbp":{"type":"number"},"min_gbp":{"type":"number"},"max_gbp":{"type":"number"},"median_gbp_per_mg":{"type":"number"},"sable_price_gbp":{"type":["number","null"]},"sable_rank":{"type":["integer","null"]}}},"description":"Rows."}},"description":"PriceIndex object."},"QA":{"type":"object","properties":{"id":{"type":"string","description":"Id."},"compound_slug":{"type":"string","description":"Compound slug."},"category":{"type":"string","description":"Category."},"question":{"type":"string","description":"Question."},"answer":{"type":"string","description":"Answer."},"sources":{"type":"array","items":{"type":"string","format":"uri"},"description":"Sources."},"url":{"type":"string","format":"uri","description":"Url."}},"description":"QA object."},"Error":{"type":"object","description":"Error body for every 4xx/5xx response. `error` is kept for backward compatibility; prefer `code`.","required":["error","code","status","message","documentation_url","license","attribution","notice"],"properties":{"error":{"type":"string","description":"Short human-readable error (legacy field).","examples":["not found"]},"code":{"type":"string","enum":["bad_request","not_found","method_not_allowed","rate_limited","internal_error"],"description":"Stable machine-readable error code."},"status":{"type":"integer","description":"HTTP status code, repeated in the body.","minimum":400,"maximum":599},"message":{"type":"string","description":"Explanation of what went wrong and how to fix the request."},"documentation_url":{"type":"string","format":"uri","description":"Link to the error documentation.","examples":["https://www.sablepeptides.co.uk/developers#errors"]},"license":{"type":"string","description":"Data licence.","const":"CC-BY-4.0"},"attribution":{"type":"string","description":"Required credit line.","examples":["Sable Peptides – https://www.sablepeptides.co.uk/data"]},"notice":{"$ref":"#/components/schemas/Notice"}},"additionalProperties":false},"BadRequestError":{"description":"Error body for HTTP 400.","allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"code":{"const":"bad_request"},"status":{"const":400}}}]},"NotFoundError":{"description":"Error body for HTTP 404.","allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"code":{"const":"not_found"},"status":{"const":404}}}]},"MethodNotAllowedError":{"description":"Error body for HTTP 405.","allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"code":{"const":"method_not_allowed"},"status":{"const":405}}}]},"TooManyRequestsError":{"description":"Error body for HTTP 429.","allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"code":{"const":"rate_limited"},"status":{"const":429}}}]},"ServerErrorError":{"description":"Error body for HTTP 500.","allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"code":{"const":"internal_error"},"status":{"const":500}}}]}},"headers":{"RateLimit-Limit":{"description":"Requests allowed per window (120).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"Policy in draft-ietf-httpapi-ratelimit-headers form, e.g. `120;w=60`.","schema":{"type":"string"}}}},"externalDocs":{"description":"Developer docs and deprecation policy","url":"https://www.sablepeptides.co.uk/developers"},"security":[{}]}