{
  "openapi": "3.1.0",
  "info": {
    "title": "GolfDataAPI",
    "version": "1.0.0",
    "description": "Golf equipment catalog and multi-retailer prices, recorded every day. $0.005 per lookup."
  },
  "servers": [
    {
      "url": "https://golfdata.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "OfferVerdict": {
        "type": "object",
        "required": [
          "verdict",
          "reasons"
        ],
        "properties": {
          "verdict": {
            "type": "string",
            "enum": [
              "pass",
              "hold",
              "reject"
            ]
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/v1/meta": {
      "get": {
        "summary": "Catalog stats: counts by category, enrichment coverage, snapshot count, freshness.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/pricing": {
      "get": {
        "summary": "Price ladder, lookup costs and machine URLs.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/spotlight": {
      "get": {
        "summary": "Twelve enriched products with 90 day daily-low series, current low, 30 and 90 day lows. Cached one hour.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/limits": {
      "get": {
        "summary": "Caller's lane and remaining quota, or the keyless limits without a key.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/products": {
      "get": {
        "summary": "Search canonical products.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "brand",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/products/{id}": {
      "get": {
        "summary": "One product plus its enrichment_sources provenance rows.",
        "description": "Costs 1 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/p/{slug}/{id}": {
      "get": {
        "summary": "Public HTML product page with current price and 90 day history.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/p/{id}": {
      "get": {
        "summary": "Redirect to the canonical public HTML product page.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/compare/{slug}/{idA}/{idB}": {
      "get": {
        "summary": "Public HTML price comparison page for two canonical products.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "idA",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "idB",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/drops": {
      "get": {
        "summary": "Public HTML page of the biggest current price drops, grouped by category.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/drops/{category}": {
      "get": {
        "summary": "Public HTML page of the biggest price drops in one category.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "category",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/partners": {
      "get": {
        "summary": "Public HTML partner kit page with free key, badge and Price Index terms for publishers and creators.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/brands": {
      "get": {
        "summary": "Public HTML index of major golf brands.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/brands/{brand}": {
      "get": {
        "summary": "Public HTML hub of observed prices for one major brand.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "brand",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/retailers": {
      "get": {
        "summary": "Public HTML index of retailers with fresh priced products.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/retailers/{retailer}": {
      "get": {
        "summary": "Public HTML hub of products a retailer prices lowest.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "retailer",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/badge/{productId}.svg": {
      "get": {
        "summary": "Embeddable SVG price badge for one product.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/prices/current": {
      "get": {
        "summary": "Latest stored advertised prices per retailer with optional machine checked verdicts.",
        "description": "Costs 1 lookup(s) at $0.005 each. Requires x-api-key.",
        "parameters": [
          {
            "name": "product_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "prices": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "type": "object"
                          },
                          {
                            "$ref": "#/components/schemas/OfferVerdict"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/prices/history": {
      "get": {
        "summary": "Daily price snapshots per retailer, days up to 365.",
        "description": "Costs 2 lookup(s) at $0.005 each. Requires x-api-key.",
        "parameters": [
          {
            "name": "product_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/compare": {
      "get": {
        "summary": "Current prices plus min, max, median, 30 and 90 day lows, and optional machine checked verdicts.",
        "description": "Costs 2 lookup(s) at $0.005 each. Requires x-api-key.",
        "parameters": [
          {
            "name": "product_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "retailers": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "type": "object"
                          },
                          {
                            "$ref": "#/components/schemas/OfferVerdict"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/offers/discover": {
      "get": {
        "summary": "Discover admitted marketplace sources and verify each through the Chip gate.",
        "description": "Costs 2 lookup(s) at $0.005 each. Requires x-api-key.",
        "parameters": [
          {
            "name": "canonical_product_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "variant_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/offers/verified": {
      "get": {
        "summary": "Verify one known marketplace source (golf-offer.v1).",
        "description": "Costs 2 lookup(s) at $0.005 each. Requires x-api-key.",
        "parameters": [
          {
            "name": "source_kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "canonical_product_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "variant_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/keys": {
      "post": {
        "summary": "Issue a free key to an email, once per email. Body {email}, JSON or form-encoded. 3 per minute per IP.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/reports/2026-08": {
      "get": {
        "summary": "Paid August 2026 Market Movement Report as HTML. Stripe Payment Link redirects here with session_id; the session is the access token.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/keys/claim": {
      "get": {
        "summary": "Claim the paid key for a completed Stripe Checkout Session, once. Stripe Payment Links redirect here with session_id. 3 per minute per IP.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/v1/contact": {
      "post": {
        "summary": "Submit a retailer or brand contact request. Body {company,email,feed_url,message,reason}, JSON or form-encoded.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "summary": "MCP streamable HTTP, JSON-RPC 2.0. Same reads as tools.",
        "description": "Costs 0 lookup(s) at $0.005 each. Works without a key, 10 per minute per IP.",
        "parameters": [],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Key required. Body carries pricing_url, free_key_url, docs_url and checkout_url when set."
          },
          "429": {
            "description": "Rate limit or quota reached. Body carries retry_after_seconds and the same URLs."
          }
        }
      }
    }
  }
}