{
  "openapi": "3.1.0",
  "info": {
    "title": "Fryer Parts Reference — read-only data API",
    "version": "1.0.0",
    "summary": "Commercial deep-fryer part numbers, specifications and cross-references. No own prices, no stock, no orders; third-party price observations are labelled and dated.",
    "license": {
      "name": "CC0 1.0",
      "identifier": "CC0-1.0"
    },
    "contact": {
      "name": "Corrections",
      "url": "https://fryerparts.pages.dev/#enquiry"
    }
  },
  "servers": [
    {
      "url": "https://fryerparts.pages.dev"
    }
  ],
  "paths": {
    "/data/index.json": {
      "get": {
        "operationId": "getIndex",
        "summary": "Endpoint list, field definitions and slugs",
        "responses": {
          "200": {
            "description": "Index document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/parts.json": {
      "get": {
        "operationId": "listAllParts",
        "summary": "Every record in the index",
        "responses": {
          "200": {
            "description": "All records",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "slug": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "part",
                              "element"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "part_numbers": {
                            "type": "string",
                            "description": "OEM number(s), slash-separated when a family shares one page"
                          },
                          "aliases": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "aliases_zh": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "specifications": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "faq": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "question": {
                                  "type": "string"
                                },
                                "answer": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "required": [
                          "slug",
                          "part_numbers",
                          "title",
                          "url"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "records"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/data/prices.json": {
      "get": {
        "operationId": "listPriceObservations",
        "summary": "Dated price observations read from live listings",
        "description": "Each observation records the price asked, the list price printed beside it, the channel (oem_brand or aftermarket_brand), the date it was read and the page it came from. Observations are not quotes or offers.",
        "responses": {
          "200": {
            "description": "Price observations",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "checked": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "method": {
                      "type": "string"
                    },
                    "observations": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  },
                  "required": [
                    "checked",
                    "observations"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/search": {
      "get": {
        "operationId": "search",
        "summary": "Search records, guides and comparisons by part number, specification, keyword or plain-language question",
        "description": "Same index and same matching rules as the MCP `search_parts` tool. `matches` are compact part records (full record at /data/parts/{slug}.json); `pages` are the diagnostic guides and part-vs-part comparisons that answer decision questions. Question words are ignored, so 'can I use LCH instead of LC117' works.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "00-411506-00013"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matches",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "query": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "pages": {
                      "type": "array",
                      "description": "guides and comparisons matching the query",
                      "items": {
                        "type": "object",
                        "properties": {
                          "result_type": {
                            "type": "string",
                            "const": "page"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "guide",
                              "compare"
                            ]
                          },
                          "slug": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "summary": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "matches": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "slug": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "part",
                              "element"
                            ]
                          },
                          "part_numbers": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "one element per OEM number"
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "required": [
                          "slug",
                          "url"
                        ]
                      }
                    },
                    "coverage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "query",
                    "count",
                    "matches"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Missing `q`"
          }
        }
      }
    },
    "/data/parts/{slug}.json": {
      "get": {
        "operationId": "getPartBySlug",
        "summary": "One record by slug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "00-411506-00013-rx-thermostat"
          }
        ],
        "responses": {
          "200": {
            "description": "One record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "slug": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "part",
                        "element"
                      ]
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "part_numbers": {
                      "type": "string",
                      "description": "OEM number(s), slash-separated when a family shares one page"
                    },
                    "aliases": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "aliases_zh": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "specifications": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "faq": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "question": {
                            "type": "string"
                          },
                          "answer": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "slug",
                    "part_numbers",
                    "title",
                    "url"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "No such slug"
          }
        }
      }
    }
  },
  "x-related": {
    "html": "https://fryerparts.pages.dev",
    "llms_txt": "https://fryerparts.pages.dev/llms.txt",
    "agent_instructions": "https://fryerparts.pages.dev/agents.md",
    "mcp_endpoint": "https://fryerparts.pages.dev/mcp",
    "search_endpoint": "https://fryerparts.pages.dev/api/search",
    "dataset_doi": "https://doi.org/10.5281/zenodo.23613053"
  }
}