{
  "openapi": "3.1.0",
  "info": {
    "title": "Crypto Value Lab Public API",
    "version": "1.0.0",
    "description": "Read-only research datasets. Not investment advice or trading signals."
  },
  "servers": [
    {
      "url": "https://cryptovaluelab.com"
    }
  ],
  "paths": {
    "/api/v1/ai-value-index.json": {
      "get": {
        "operationId": "get_ai_value_index",
        "summary": "Get the ai value index dataset",
        "responses": {
          "200": {
            "description": "A timestamped, read-only research dataset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/protocol-fundamentals.json": {
      "get": {
        "operationId": "get_protocol_fundamentals",
        "summary": "Get the protocol fundamentals dataset",
        "responses": {
          "200": {
            "description": "A timestamped, read-only research dataset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/bitcoin-bottom-conditions.json": {
      "get": {
        "operationId": "get_bitcoin_bottom_conditions",
        "summary": "Get the bitcoin bottom conditions dataset",
        "responses": {
          "200": {
            "description": "A timestamped, read-only research dataset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/research.json": {
      "get": {
        "operationId": "get_research",
        "summary": "Get the research dataset",
        "responses": {
          "200": {
            "description": "A timestamped, read-only research dataset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetEnvelope"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DatasetEnvelope": {
        "type": "object",
        "required": [
          "api_version",
          "dataset",
          "methodology_version",
          "canonical_url",
          "disclaimer",
          "data"
        ],
        "properties": {
          "api_version": {
            "type": "string",
            "example": "1.0.0"
          },
          "dataset": {
            "type": "string"
          },
          "as_of": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "generated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "methodology_version": {
            "type": "string"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          },
          "license": {
            "type": "string"
          },
          "disclaimer": {
            "type": "string"
          },
          "null_semantics": {
            "type": "string"
          },
          "data": {}
        }
      }
    }
  }
}