Research API Documentation

Public, Read-Only Access To The Pep Nation Lab Research Library. For Research Use Only.

Authentication

Every Request Requires A Bearer Token In The Authorization Header:

Authorization: Bearer YOUR_API_KEY

Admins Can Generate Keys At /admin/api-keys.

Rate Limits

  • Per-Minute Limit Enforced Server-Side Via check_api_rate_limit.
  • Per-Day Limit Enforced Server-Side Via check_api_rate_limit.
  • Exceeding Either Returns HTTP 429 With Body { "error": "rate_limited" }.

Endpoints

GET /api/research/public/v1/compounds

Paginated List Of Compounds. Query Params: limit (1-100, default 25), offset.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://pepnationlab.com/api/research/public/v1/compounds?limit=25

GET /api/research/public/v1/compounds/:slug

Full Compound JSON Including References, Trials, And Orthologs.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://pepnationlab.com/api/research/public/v1/compounds/bpc-157

GET /api/research/public/v1/search

Ranked Full-Text Search. Query Params: q, limit, offset.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://pepnationlab.com/api/research/public/v1/search?q=glp-1"

POST /api/research/public/v1/match

Suggestion Engine. Body: { goal, comfort, risk, limit }.

curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"goal":"healing","comfort":"clinical"}' \
  https://pepnationlab.com/api/research/public/v1/match

Embed Widget

Drop The Knowledge Card Into Any Page With A Simple Iframe:

<iframe src="https://pepnationlab.com/api/research/widget/bpc-157"
        width="540" height="360" frameborder="0"></iframe>

For Research Use Only. This Restates Stored Laboratory Facts And Is Not Dosing Or Medical Advice.