{
 "openapi": "3.1.0",
 "info": {
  "title": "getpept open data and agent APIs",
  "version": "1.2.0",
  "description": "Read-only static files, HTTP search, MCP, and A2A endpoints for getpept's index of U.S. peptide therapy clinics. No key, no account, no rate limit published; the data changes at most once a day, so please cache. Every price, statement and claim carries its source URL and the date getpept checked it. Not medical advice; ranks are not endorsements. Unrelated to getpept.com or getpept.shop. Google rating figures are shown on the pages with their source and are not repeated in these files. Reuse terms for the full dataset are being finalized; email hello@getpept.io before republishing it in bulk.",
  "summary": "Neutral, source-checked index of U.S. peptide therapy clinics.",
  "contact": {
   "name": "getpept",
   "email": "hello@getpept.io",
   "url": "https://getpept.io/for-agents/"
  }
 },
 "servers": [
  {
   "url": "https://getpept.io"
  }
 ],
 "paths": {
  "/data/clinics.json": {
   "get": {
    "operationId": "listClinics",
    "summary": "All clinic dossiers",
    "responses": {
     "200": {
      "description": "Dataset with clinics[]",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "https://getpept.io/data/schema.json"
        }
       }
      }
     }
    },
    "tags": [
     "data"
    ],
    "description": "Every listed clinic with its full dossier: prices it publishes, where it says its medications come from, named clinicians with any confirmed state license and any single-match federal NPI Registry identity record, its own claims as quotes, getpept score parts and ranks, and check dates. About 3 MB; prefer getClinic or compareCity for one clinic or one city."
   }
  },
  "/data/clinics.csv": {
   "get": {
    "operationId": "listClinicsCsv",
    "summary": "Flat CSV summary",
    "responses": {
     "200": {
      "description": "CSV",
      "content": {
       "text/csv": {}
      }
     }
    },
    "tags": [
     "data"
    ],
    "description": "One row per clinic: lowest published price per category, sourcing level, clinician counts, single-match clinician NPI numbers (clinicians_npi, identity records not license confirmations), canonical peptides named on the clinic site, score and ranks."
   }
  },
  "/data/peptides.json": {
   "get": {
    "operationId": "listPeptides",
    "summary": "Peptides and GLP-1 medications named on clinic sites",
    "responses": {
     "200": {
      "description": "Per canonical peptide or GLP-1 medication: group, aliases, clinic count, city count, page URL (when 3+ clinics name it) and clinic ids grouped by city",
      "content": {
       "application/json": {}
      }
     }
    },
    "tags": [
     "data"
    ],
    "description": "Counts of listed clinics naming each canonical peptide or GLP-1 medication on their own websites, with clinic ids grouped by city."
   }
  },
  "/clinics/{id}.json": {
   "get": {
    "operationId": "getClinic",
    "summary": "One clinic dossier",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$"
      },
      "example": "gameday-men-s-health-buckhead-atlanta-ga"
     }
    ],
    "responses": {
     "200": {
      "description": "Wrapper with clinic",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "https://getpept.io/data/schema.json#/$defs/clinic"
        }
       }
      }
     },
     "404": {
      "description": "Unknown id"
     }
    },
    "tags": [
     "data"
    ],
    "description": "One clinic's full dossier by its stable slug id. Ids come from listClinics, compareCity or the MCP tool find_clinics."
   }
  },
  "/data/schema.json": {
   "get": {
    "operationId": "getSchema",
    "summary": "JSON Schema",
    "responses": {
     "200": {
      "description": "JSON Schema",
      "content": {
       "application/schema+json": {}
      }
     }
    },
    "tags": [
     "data"
    ],
    "description": "JSON Schema (draft 2020-12) for the clinic records."
   }
  },
  "/data/search-index.json": {
   "get": {
    "operationId": "searchIndex",
    "summary": "Lightweight search index",
    "responses": {
     "200": {
      "description": "Array of {k,t,u,s}",
      "content": {
       "application/json": {}
      }
     }
    },
    "tags": [
     "data"
    ],
    "description": "The small index behind on-site search: cities, clinics, states and pages, each with its URL."
   }
  },
  "/data/match/{city}-{budget}-md{md}-tele{telehealth}.json": {
   "get": {
    "operationId": "matchShortlist",
    "summary": "Top-3 shortlist, JSON twin of /match/?city=&budget=&md=&telehealth=",
    "parameters": [
     {
      "name": "city",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "city slug or 'any'",
      "example": "austin"
     },
     {
      "name": "budget",
      "in": "path",
      "required": true,
      "schema": {
       "enum": [
        "any",
        "200",
        "400",
        "published"
       ]
      }
     },
     {
      "name": "md",
      "in": "path",
      "required": true,
      "schema": {
       "enum": [
        "0",
        "1"
       ]
      }
     },
     {
      "name": "telehealth",
      "in": "path",
      "required": true,
      "schema": {
       "enum": [
        "0",
        "1"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "{params, html_url, results[] with editorial_city_rank}",
      "content": {
       "application/json": {}
      }
     }
    },
    "tags": [
     "data"
    ],
    "description": "The top three clinics for a city, budget, physician-named and telehealth filter. A shortlist is a personal re-sort; each result still carries its editorial city rank."
   }
  },
  "/data/compare/{city}.json": {
   "get": {
    "operationId": "compareCity",
    "summary": "All clinics in a city with full dossiers",
    "parameters": [
     {
      "name": "city",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "austin"
     }
    ],
    "responses": {
     "200": {
      "description": "{city, state, html_url, clinics[]}",
      "content": {
       "application/json": {}
      }
     }
    },
    "tags": [
     "data"
    ],
    "description": "Every clinic on one city page with its full dossier, for side-by-side comparison."
   }
  },
  "/data/diff.json": {
   "get": {
    "operationId": "datasetDiff",
    "summary": "Field-level changes between dataset snapshots",
    "responses": {
     "200": {
      "description": "{snapshots[], diffs[]}",
      "content": {
       "application/json": {}
      }
     }
    },
    "tags": [
     "guides"
    ],
    "description": "Field-level changes between dataset snapshots: prices, confirmed licenses, claim statuses and ranks."
   }
  },
  "/llms.txt": {
   "get": {
    "operationId": "llmsTxt",
    "summary": "Site guide for language models",
    "responses": {
     "200": {
      "description": "Markdown",
      "content": {
       "text/plain": {}
      }
     }
    },
    "tags": [
     "guides"
    ],
    "description": "Short site guide for language models, in Markdown: what getpept is, its counts and dates, and one answer-first line per city."
   }
  },
  "/llms-full.txt": {
   "get": {
    "operationId": "llmsFullTxt",
    "summary": "Site guide for language models, with every listing",
    "responses": {
     "200": {
      "description": "Markdown",
      "content": {
       "text/plain": {}
      }
     }
    },
    "tags": [
     "guides"
    ],
    "description": "The site guide plus every listing as a Markdown block."
   }
  },
  "/feed.xml": {
   "get": {
    "operationId": "changesFeed",
    "summary": "Atom feed of changelog entries and dataset changes, newest first",
    "responses": {
     "200": {
      "description": "Atom 1.0",
      "content": {
       "application/atom+xml": {}
      }
     }
    },
    "tags": [
     "guides"
    ],
    "description": "Atom feed of news items, changelog entries and dataset changes, newest first."
   }
  },
  "/cities/{city}.md": {
   "get": {
    "operationId": "cityMarkdown",
    "tags": [
     "markdown"
    ],
    "summary": "One city's ranked clinics as Markdown",
    "description": "The city page as Markdown: the dated summary, a ranked table (rank, clinic, score, named oversight, lowest monthly peptide program price with its source, check date) and one block of published facts per clinic. Sending Accept: text/markdown to /cities/{city}/ returns HTTP 200 directly with this body.",
    "parameters": [
     {
      "name": "city",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$"
      },
      "description": "City slug, as in /data/search-index.json",
      "example": "chicago"
     }
    ],
    "responses": {
     "200": {
      "description": "Markdown",
      "content": {
       "text/markdown": {}
      }
     },
     "404": {
      "description": "No such page"
     }
    }
   }
  },
  "/clinics/{id}.md": {
   "get": {
    "operationId": "clinicMarkdown",
    "tags": [
     "markdown"
    ],
    "summary": "One clinic's published facts as Markdown",
    "description": "The clinic's published facts as a Markdown list with source links, check dates and a citation line. Sending Accept: text/markdown to /clinics/{id}/ returns HTTP 200 directly with this body.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$"
      },
      "example": "saving-face-austin-tx"
     }
    ],
    "responses": {
     "200": {
      "description": "Markdown",
      "content": {
       "text/markdown": {}
      }
     },
     "404": {
      "description": "No such page"
     }
    }
   }
  },
  "/rankings.md": {
   "get": {
    "operationId": "rankingsMarkdown",
    "tags": [
     "markdown"
    ],
    "summary": "Every ranked clinic in U.S. rank order, as Markdown",
    "description": "One table of every ranked clinic: U.S. rank, clinic, town, score, named oversight, lowest monthly peptide program price and check date.",
    "responses": {
     "200": {
      "description": "Markdown",
      "content": {
       "text/markdown": {}
      }
     }
    }
   }
  },
  "/prices.md": {
   "get": {
    "operationId": "pricesMarkdown",
    "tags": [
     "markdown"
    ],
    "summary": "Published prices by clinic, as Markdown",
    "description": "One table of the lowest price each clinic publishes per category (consultation, peptide program, membership, GLP-1), each linked to where it is shown.",
    "responses": {
     "200": {
      "description": "Markdown",
      "content": {
       "text/markdown": {}
      }
     }
    }
   }
  },
  "/peptides.md": {
   "get": {
    "operationId": "peptidesMarkdown",
    "tags": [
     "markdown"
    ],
    "summary": "Index of peptides and GLP-1 medications named by clinics, as Markdown",
    "description": "Each canonical peptide and GLP-1 medication named on listed clinics' websites, with clinic and city counts.",
    "responses": {
     "200": {
      "description": "Markdown",
      "content": {
       "text/markdown": {}
      }
     }
    }
   }
  },
  "/peptides/{slug}.md": {
   "get": {
    "operationId": "peptideMarkdown",
    "tags": [
     "markdown"
    ],
    "summary": "Clinics that name one peptide, as Markdown",
    "description": "Listed clinics that name a specific peptide or GLP-1 medication on their own websites (for peptides named by at least three clinics), grouped by city with published prices whose labels name it.",
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$"
      },
      "example": "bpc-157"
     }
    ],
    "responses": {
     "200": {
      "description": "Markdown",
      "content": {
       "text/markdown": {}
      }
     },
     "404": {
      "description": "No such page"
     }
    }
   }
  },
  "/api/search/": {
   "get": {
    "operationId": "searchClinics",
    "tags": [
     "agents"
    ],
    "summary": "Stateless search over clinics, named peptides, and published prices",
    "description": "One-call read-only search endpoint for AI agents and scripts. Supports free-text queries plus structured city, state, peptide, price category, unit, max_price, and ranked_only filters. Returns JSON by default, or Markdown when format=md or Accept: text/markdown is sent.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "Free-text query (clinic name, peptide, city, or state)"
     },
     {
      "name": "city",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "example": "austin"
     },
     {
      "name": "state",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "example": "TX"
     },
     {
      "name": "peptide",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "example": "bpc-157"
     },
     {
      "name": "category",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "peptide",
        "glp1",
        "consult",
        "membership",
        "labs",
        "hormone",
        "iv_nad",
        "other"
       ]
      }
     },
     {
      "name": "unit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "max_price",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      }
     },
     {
      "name": "ranked_only",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "json",
        "md"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Matching clinics, peptides, and/or published prices",
      "content": {
       "application/json": {},
       "text/markdown": {}
      }
     }
    }
   }
  },
  "/api/health/": {
   "get": {
    "operationId": "healthStatus",
    "tags": [
     "agents"
    ],
    "summary": "Service health and agent endpoint directory",
    "description": "Lightweight status endpoint advertised via RFC 9727 status relation in /.well-known/api-catalog.",
    "responses": {
     "200": {
      "description": "OK status and discovery URLs",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/a2a/": {
   "post": {
    "operationId": "a2a",
    "tags": [
     "agents"
    ],
    "summary": "Agent2Agent (A2A) JSON-RPC endpoint (stateless, no auth)",
    "description": "Accepts A2A message/send, tasks/send, and agent/getAuthenticatedExtendedCard requests with either a structured DataPart ({ tool, arguments }) or a natural-language TextPart. Agent card: /.well-known/agent-card.json.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "example": {
        "jsonrpc": "2.0",
        "id": 1,
        "method": "message/send",
        "params": {
         "message": {
          "role": "user",
          "parts": [
           {
            "kind": "text",
            "text": "Find BPC-157 clinics in Austin"
           }
          ]
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Completed A2A Task with text and data artifact parts",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/mcp/": {
   "post": {
    "operationId": "mcp",
    "tags": [
     "mcp"
    ],
    "summary": "MCP server (Streamable HTTP, stateless, no auth)",
    "description": "JSON-RPC 2.0 per the Model Context Protocol. Methods: initialize, ping, tools/list, tools/call, resources/list, resources/templates/list, resources/read, prompts/list, prompts/get. Tools: list_cities, list_peptides, find_clinics, get_prices, get_clinic, compare_clinics; all read-only. Server card: /.well-known/mcp/server-card.json.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "jsonrpc",
         "method"
        ],
        "properties": {
         "jsonrpc": {
          "const": "2.0"
         },
         "id": {
          "type": [
           "string",
           "integer"
          ]
         },
         "method": {
          "type": "string"
         },
         "params": {
          "type": "object"
         }
        }
       },
       "example": {
        "jsonrpc": "2.0",
        "id": 1,
        "method": "tools/call",
        "params": {
         "name": "find_clinics",
         "arguments": {
          "city": "Chicago"
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "JSON-RPC response",
      "content": {
       "application/json": {}
      }
     },
     "202": {
      "description": "Notification accepted; no body"
     },
     "400": {
      "description": "Not JSON, not JSON-RPC 2.0, or an unsupported MCP-Protocol-Version"
     }
    }
   }
  }
 },
 "externalDocs": {
  "description": "Reference, field rules and how to cite",
  "url": "https://getpept.io/for-agents/"
 },
 "security": [],
 "tags": [
  {
   "name": "data",
   "description": "The dataset as JSON and CSV."
  },
  {
   "name": "markdown",
   "description": "Pages as Markdown."
  },
  {
   "name": "guides",
   "description": "Site guides for language models and change feeds."
  },
  {
   "name": "mcp",
   "description": "Model Context Protocol server."
  },
  {
   "name": "agents",
   "description": "Stateless search, A2A, and health endpoints for AI agents."
  }
 ]
}
