{
  "openapi": "3.1.0",
  "info": {
    "title": "GeoPulse",
    "version": "1.0.0",
    "contact": {
      "email": "jay@lonestaroracle.xyz"
    },
    "x-guidance": "Geopolitical risk monitor by region. Returns risk_score (1-10), active conflict or instability signals, and commodity impact analysis. Pass a region name or leave empty for global overview. $0.07/query via x402. | Also: MacroPulse (macro.lonestaroracle.xyz) CrownBlock (crownblock.lonestaroracle.xyz) | Full catalog: lonestaroracle.xyz",
    "description": "Per-country geopolitical risk signal from live media and event data. Pass ?country=.",
    "x-x402-proof": "https://geo.lonestaroracle.xyz/.well-known/x402-proof"
  },
  "externalDocs": {
    "url": "https://docs.lonestaroracle.xyz",
    "description": "LoneStarOracle API & integration docs"
  },
  "paths": {
    "/health": {
      "get": {
        "summary": "Health",
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/": {
      "get": {
        "summary": "Root",
        "operationId": "root__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/risk": {
      "get": {
        "summary": "Geopolitical Risk Score",
        "operationId": "risk_risk_get",
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Country or region",
              "title": "Location"
            },
            "description": "Country or region"
          },
          {
            "name": "hours",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "News lookback hours (1-72)",
              "default": 24,
              "title": "Hours"
            },
            "description": "News lookback hours (1-72)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.07"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "description": "Per-country geopolitical risk signal from live media and event data. Pass ?country=.",
        "tags": [
          "geopolitics",
          "risk",
          "country",
          "conflict",
          "global"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    }
  }
}