# Global Hazards: Earthquake Energy Calculator

> Global Hazards: Earthquake Energy Calculator is a paid API for AI agents from global-hazards.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-31).

Converts earthquake moment magnitude to radiated seismic energy (Joules), seismic moment (N·m), TNT equivalent, and Hiroshima bomb equivalents, with optional comparison between two magnitudes.

## Facts

- Endpoint: GET https://global-hazards.x402tookit.com/quake-energy?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/global-hazards-earthquake-energy-calculator-d3347d9c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MchJHXZFr8-4WSRZTRomf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability global-hazards-earthquake-energy-calculator-d3347d9c
```

Example prompt: What's the energy released by a magnitude 7.2 earthquake in joules, kilotons of TNT, and Hiroshima bomb equivalents — and how does it compare to a magnitude 5.8?

## When to prefer this

Choose this endpoint when you need to translate a raw earthquake magnitude number into physically meaningful units — joules, kilotons of TNT, or Hiroshima bomb equivalents — or when you want to quantitatively compare the energy difference between two magnitude values. Ideal for educational content, journalism, disaster risk communication, or any agent workflow that needs to explain earthquake severity in intuitive terms rather than the logarithmic magnitude scale.

## Known failure modes

- Magnitude outside valid range (-2 to 10) returns a validation error
- compareTo magnitude outside valid range (-2 to 10) returns an error
- Missing required magnitude parameter returns a 400-level error
- Service degraded flag may be set if formula source data is unavailable

## How this service works

Earthquake magnitude to radiated energy, seismic moment and TNT equivalent, with an optional comparison to a second magnitude.

## Output

Returns the radiated seismic energy in Joules, seismic moment in Newton-metres, TNT equivalent in tons and kilotons, and Hiroshima bomb equivalents for the given magnitude. If a second magnitude is provided, also returns the energy ratio, amplitude ratio, and a comparative note between the two events. Includes the formulas used and a summary explanation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "magnitude"
     ],
     "properties": {
      "compareTo": {
       "type": "number",
       "description": "Second magnitude to compare against, -2 to 10"
      },
      "magnitude": {
       "type": "number",
       "description": "Moment magnitude, -2 to 10"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "formulas": {
       "type": [
        "null",
        "string"
       ]
      },
      "magnitude": {
       "type": [
        "null",
        "number"
       ]
      },
      "comparison": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "note": {
         "type": [
          "null",
          "string"
         ]
        },
        "energyRatio": {
         "type": [
          "null",
          "number"
         ]
        },
        "amplitudeRatio": {
         "type": [
          "null",
          "number"
         ]
        },
        "otherMagnitude": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "energyJoules": {

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/global-hazards-earthquake-energy-calculator-d3347d9c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from global-hazards.x402tookit.com](https://www.zero.xyz/host/global-hazards.x402tookit.com/llms.txt)
