🌊 Namazu API

v3.0 BETA
NAMAZU EARTHQUAKE INTELLIGENCE PLATFORM

Namazu API

Crowdsourced seismic sensing, structural tensor modeling, and real-time earthquake alerts β€” open to any developer. Integrate shake detection into your app and join the world's most precise distributed seismograph network.

Overview

The Namazu API lets your application submit accelerometer data, receive earthquake alerts, and participate in the TGL (Tensor Generating Logic) competition β€” where algorithms that best model building structural tensors win Namazu tokens.

Base URL: https://api.namazu.zweichain.net/v3
All requests use HTTPS. All responses are JSON. Timestamps are ISO 8601 UTC.

Authentication

Every request requires a Namazu Token in the header. Get yours at the developer portal.

Authorization: Bearer nmz_live_xxxxxxxxxxxxxxxxxxxx
Token TypeAccess
nmz_live_...Full access β€” submit data, receive alerts, enter TGL
nmz_test_...Sandbox β€” no data enters live network

Quickstart

Send your first shake event in under 5 minutes:

# 1. Submit a shake event
curl -X POST https://api.namazu.zweichain.net/v3/shake \
  -H "Authorization: Bearer nmz_test_your_token" \
  -H "Content-Type: application/json" \
  -d '{
    "device_id": "your-device-uuid",
    "lat": 34.6937,
    "lon": 135.5023,
    "alt_m": 50,
    "timestamp": "2026-05-14T13:00:00.000Z",
    "samples": [
      { "t_ms": 0,   "x": 0.012, "y": -0.003, "z": 9.814 },
      { "t_ms": 10,  "x": 0.045, "y": 0.021,  "z": 9.802 },
      { "t_ms": 20,  "x": 0.231, "y": 0.198,  "z": 9.756 }
    ],
    "sample_rate_hz": 100
  }'

POST /shake

Submit accelerometer samples from a device. Called when shake threshold is exceeded.

POST /shake Submit shake event

Request Body

FieldTypeDescription
device_idstringrequired Unique device UUID (persist across sessions)
latfloatrequired Latitude WGS84
lonfloatrequired Longitude WGS84
alt_mfloatoptional Altitude in metres
floorintegeroptional Floor number (0 = ground). Improves tensor modeling.
building_idstringoptional If device is in a registered building
timestampstringrequired ISO 8601 UTC β€” event start time
samplesarrayrequired Accelerometer readings (see below)
sample_rate_hzintegerrequired Sampling rate β€” smartphone: 100Hz typical, IoT sensor: up to 1000Hz (1ms precision). Aerospace-grade MEMS sensors supported.

Sample Object

FieldTypeDescription
t_msintegerMilliseconds offset from event timestamp
xfloatAcceleration m/sΒ² β€” device X axis
yfloatAcceleration m/sΒ² β€” device Y axis
zfloatAcceleration m/sΒ² β€” device Z axis (gravity ~9.81)

Response

{
  "event_id": "evt_01HXYZ...",
  "status": "accepted",
  "cluster_id": "clust_osaka_20260514",  // null if no cluster yet
  "intensity_estimate": 2.3,              // JMA scale estimate
  "tokens_earned": 0.5                    // NMZ tokens for this submission
}

GET /shake/events

Query recent shake events by location and time.

GET /shake/events Query shake events

Query Parameters

ParamTypeDescription
lat, lonfloatrequired Center point
radius_kmfloatoptional Search radius (default 50km)
sincestringoptional ISO 8601 start time
min_intensityfloatoptional Minimum JMA intensity
limitintegeroptional Max results (default 50, max 500)

POST /building

Register a building to enable floor-by-floor tensor modeling and digital twin generation.

POST /building Register building
{
  "name": "Osaka City Hall Annex",
  "lat": 34.6937,
  "lon": 135.5023,
  "floors": 3,
  "construction_year": 1978,
  "structure_type": "wooden",  // wooden | rc | steel | src
  "sensors_per_floor": 3
}

GET /building/:id/tensor

Returns the current best structural tensor for a building β€” the inter-floor stiffness/damping coefficients computed by the leading TGL algorithm.

GET /building/:id/tensor Get structural tensor
{
  "building_id": "bld_01HXYZ...",
  "computed_at": "2026-05-14T12:00:00Z",
  "tgl_id": "tgl_lagrangian_v4",  // which TGL produced this
  "floors": 3,
  "tensor": {
    "K": [[2.41, -1.20, 0.0],   // stiffness matrix
           [-1.20, 2.41, -1.20],
           [0.0, -1.20, 1.20]],
    "C": [[0.05, -0.02, 0.0],   // damping matrix
           [-0.02, 0.05, -0.02],
           [0.0, -0.02, 0.03]],
    "confidence": 0.87
  },
  "risk_class": "moderate"   // excellent|good|moderate|poor|critical
}

TGL Competition

TGL (Tensor Generating Logic) is Namazu's open competition for structural system identification algorithms. Submit your algorithm, have it tested against real multi-floor sensor data, and earn Namazu tokens if your TGL outperforms others at predicting inter-floor shake propagation.

How scoring works: Each TGL is given a training window of accelerometer data (x/y/z per sensor per floor) and asked to predict the next 500ms of motion on an unseen floor. RMSE against ground truth determines rank. The leaderboard updates daily as new real-world events are collected.

POST /tgl/submit

POST /tgl/submit Submit TGL algorithm
{
  "name": "My Lagrangian TGL v1",
  "description": "Uses Lagrangian mechanics to identify modal frequencies...",
  "language": "python",
  "entrypoint": "tgl.predict",
  "code_url": "https://github.com/you/your-tgl",
  "docker_image": "ghcr.io/you/tgl:latest"  // optional
}
Your TGL receives: samples[floor][sensor] β†’ {t_ms, x, y, z}[] and must return predicted acceleration for the target floor over the next 500ms. Interface spec: see schema.

GET /tgl/leaderboard

GET /tgl/leaderboard Current rankings
{
  "updated_at": "2026-05-14T12:00:00Z",
  "entries": [
    {
      "rank": 1,
      "tgl_id": "tgl_lagrangian_v4",
      "name": "Lagrangian Modal Decomposition v4",
      "author": "namazu_core",
      "rmse": 0.0023,
      "events_tested": 1482,
      "tokens_earned": 12400
    }
  ]
}

Earthquake Alerts

Subscribe to real-time alerts via WebSocket. Alerts fire when the Namazu network detects a cluster of shake events consistent with an earthquake.

# Connect
wss://api.namazu.zweichain.net/v3/alerts?token=nmz_live_xxx&lat=34.69&lon=135.50&radius_km=100

# Alert message received:
{
  "type": "earthquake_alert",
  "alert_id": "alrt_01HXYZ",
  "issued_at": "2026-05-14T13:00:00.000Z",
  "epicenter": { "lat": 34.71, "lon": 135.49 },
  "depth_km": 12,
  "magnitude_estimate": 4.2,
  "intensity_at_location": 2.8,
  "seconds_to_arrival": 18,
  "confidence": 0.91
}

Error Codes

CodeMeaning
401Invalid or missing token
422Malformed request body β€” check field types
429Rate limit exceeded (100 req/min on free tier)
503Network partition β€” retry with exponential backoff
TGL COMPETITION β€” LIVE RANKINGS

Tensor Generating Logic Leaderboard

Open competition. Submit your algorithm, have it tested against real multi-floor sensor data from instrumented buildings in Japan. Best RMSE wins Namazu tokens. Updated daily as new seismic events are recorded.

Loading...
+ Submit TGL
⏳
Loading leaderboard...

How TGL scoring works

Input
Accelerometer time series from all floors (x, y, z @ 100Hz+)
Task
Predict acceleration on an unseen floor for the next 500ms
Score
RMSE against ground truth β€” lower is better
Reward
NMZ tokens distributed to top performers daily
NAMAZU RESEARCH PROGRAMME

From Structural Tensors to Quantum Earth Simulation

A physics-grounded roadmap from crowdsourced seismic sensing to QPU-accelerated full-Earth normal mode computation.

Hayato Kameta
Founder & Principal Researcher, Namazu Platform
Graduate, Faculty of Science, Kyoto University (Physics)  Β·  UC Berkeley Extension, Machine Learning (2017)  Β·  Rb laser cooling & Bose-Einstein condensation research, 1997
"We build Β₯2–3B apartment portfolios across Japan β€” each building instrumented with seismic sensors, each earthquake recorded. This is not simulated data. Japan and California are the world's two most seismically active economies. Collaboration between them is not optional β€” it is inevitable."

Phase 1 β€” Structural System Identification (Now)

Buildings are coupled oscillator systems. Given accelerometer time series from sensors on each floor, the problem is to identify the structural tensor β€” the stiffness matrix K and damping matrix C β€” that governs inter-floor motion transfer.

For an N-floor building with sensors at each level, the equation of motion is:

  M·ẍ(t) + CΒ·αΊ‹(t) + KΒ·x(t) = f(t)

  where:
    M  = diagonal mass matrix (per floor)
    K  = tridiagonal stiffness matrix (inter-floor coupling)
    C  = damping matrix
    x  = displacement vector [floor_1 ... floor_N]
    f  = ground excitation force

  TGL goal: identify K and C from observed x(t) alone,
  then use them to predict x(t+Ξ”t) on an unobserved floor.

The Namazu TGL competition treats this as an open system identification problem. Any algorithm β€” Lagrangian mechanics, neural ODE, Kalman filter, modal decomposition β€” can be submitted. The best predictor wins, proving it best modeled the true building tensor.

Building Tensor Format (.nmz)
A .nmz file encodes the identified K, C, M matrices for a specific building, along with sensor geometry, floor heights, construction class, and confidence bounds. Buildings become persistent data entities β€” their tensor updates as more shake events are observed.

Phase 2 β€” Planetary Propagation Tensor (Near Term)

Seismic waves propagating through the Earth are solutions to the elastic wave equation on a sphere. The natural basis for this problem is spherical harmonics β€” the same mathematical framework used in normal mode seismology since the 1970s.

  Earth's free oscillations (normal modes) decompose as:

    u(r,θ,φ,t) = Σ_{n,l,m} [ A_{nlm} · U_nl(r) · Y_l^m(θ,φ) · e^{iω_{nl}t} ]

  where:
    Y_l^m   = spherical harmonic of degree l, order m
    U_nl(r) = radial eigenfunction
    Ο‰_{nl}  = eigenfrequency of mode (n,l)
    A_{nlm} = excitation amplitude (from source tensor)

  The Planetary Propagation Tensor (.ppt) encodes the full
  set of coupling coefficients between modes β€” how energy
  transfers across the sphere after a seismic event.

The .ppt format extends the building tensor concept to planetary scale. Where .nmz models a 3-floor wooden house, .ppt models the full 3D Earth β€” connecting regional Namazu sensor networks into a global picture.

Connection to .nmz: Building tensors are local boundary conditions within the global wave field. A dense network of .nmz-instrumented buildings effectively creates a distributed seismograph array with known structural transfer functions β€” dramatically improving source inversion accuracy at the .ppt scale.

Phase 3 β€” QPU Acceleration (Research Horizon)

The computational bottleneck in full-Earth seismic simulation is the diagonalization of large sparse Hamiltonian-like matrices β€” structurally identical to problems quantum computers are designed to solve efficiently.

  Classical cost of normal mode summation:
    O(NΒ³) for matrix diagonalization
    N ~ 10⁢ modes for 1 mHz resolution β†’ intractable

  QPU approach (variational quantum eigensolver / QAOA):
    Encode seismic tensor as quantum Hamiltonian
    Find low-energy eigenmodes via quantum optimization
    Extract eigenfrequencies Ο‰_{nl} and eigenfunctions U_nl

  Target hardware: superconducting qubits (Rb-cooled)
  Method lineage: laser-cooled BEC β†’ Josephson junctions
                  β†’ transmon qubits β†’ seismic QPU

The Caltech 6100-qubit architecture uses the same laser cooling methods developed for BEC experiments in the late 1990s. The physical intuition transfers directly: controlling quantum states of matter to solve eigenvalue problems that are intractable classically β€” whether that matter is a rubidium condensate or a superconducting circuit.

This is a research direction, not a product timeline. Phases 1 and 2 are buildable now with classical hardware. Phase 3 is a natural scientific extension as QPU capability matures β€” and the datasets being built today will be the training and validation ground for that future work.

Why Crowdsourced Data Matters

Normal mode seismology has been limited by sparse sensor networks β€” a few hundred broadband seismometers globally. Namazu's approach inverts this: millions of smartphones and IoT building sensors, each with a known structural context (the .nmz tensor), create an observation density that makes new science possible.

ScaleData sourceFormatScience enabled
Building3 sensors/floor, IoT.nmzStructural health, local risk
CitySmartphone networkNamazu APIRapid source location
RegionalGov/telecom integrationCluster eventsReal-time intensity maps
PlanetaryAll of the above.pptNormal mode tomography, QPU

Proven Results β€” Not a Hypothesis

Before the physics impresses you, consider what Namazu 1.0 already did β€” with only one-dimensional shake prediction logic.

$150M
REIT outperformance
Canary Index top 10 buildings β€” ranked from 4,000 buildings across 60 REITs β€” outperformed the REIT index by $150M within 2 weeks of public announcement.
4,000
Buildings ranked, Namazu 1.0
Structural risk scores assigned to every building in 60 Japanese REITs using accelerometer data alone. Top 2 and Top 3 picks both confirmed outperformers.
πŸ† 2020
Plug and Play Best Proptech
Won Best Proptech at Plug and Play Tech Summit Spring 2020 β€” during COVID β€” competing against Silicon Valley's strongest proptech cohort.
Tribeca
Unsolicited validation
Tribeca Capital β€” consortium of major global banks β€” understood the asymmetric information value immediately and urged deployment over fundraising. New York sees the CAT bond angle.
The Canary Index: Named after canaries in coal mines β€” early warning from the most vulnerable. Namazu's building rankings identified structural weakness before the market priced it. That is not a coincidence. That is information asymmetry from physics.

The CAT Bond Angle

In Japanese, namazu (ι―°) is the giant catfish of folklore β€” believed to stir violently beneath the earth before earthquakes strike. In US capital markets, a CAT bond (catastrophe bond) is a $40B+ instrument that transfers earthquake and disaster risk from insurers to investors.

The overlap is not coincidental. If Namazu building tensors can assess structural vulnerability more precisely than current actuarial models β€” which are based on construction year and zone maps, not measured physics β€” then Namazu data reprices CAT bond risk. A building with a well-characterized .nmz tensor is a different insurance object than one without.

Namazu 1.0 already demonstrated this with REIT rankings. Namazu 3.0 with full building tensors, IoT sensors, and real-time shake data makes the signal orders of magnitude stronger. This is why New York understood before Tokyo did.

Founder Background

Hayato Kameta
Founder, Namazu Platform
Β· Kyoto University, Faculty of Science (Physics)
Β· Rb laser cooling & BEC research, 1997
Β· UC Berkeley Extension, Machine Learning, 2017
Β· SoftBank Group β€” President's Office Director
Β· SoftBank β€” Strategy Director, BizDev (CTO's Office)
Β· Authored SoftBank Broadband business plan (from subscriber #1)
Β· Rohm Co. β€” ASIC chip design (earthquake chipset, ~$5/unit at scale)
Β· NDA signed: NTT Data, Japan Cabinet Office engagement
"The BEC work in 1997 and the earthquake sensor network in 2024 use the same physics intuition β€” controlling and measuring the quantum state of coupled oscillators. The scale is different. The mathematics is not."

Japan–California Research Axis

Japan and California share a unique position: the two most seismically active major economies on Earth, both with dense urban construction, high building asset values, and mature engineering cultures. Neither can solve the earthquake problem alone.

Japan (Namazu)California (Collaborator)
Sensor dataReal building records, many events/yearSCSN, ShakeAlert, MyShake
Building stockOlder wooden + modern RC, instrumentedSoft-story, pre-1980 concrete
InstitutionsNTT Data, Cabinet Office, regional banksCaltech, USGS, UC Berkeley
Unique asset.nmz building tensors from real portfoliosDense broadband seismometer network
Shared goalReal-time structural risk assessment + planetary wave simulation

Join the Research

Earthquakes do not distinguish between physicists and carpenters, between Tokyo and Los Angeles, between rich and poor neighborhoods. The problem we are solving is not academic β€” it is about whether the building your family is sleeping in tonight will still be standing tomorrow morning.

We are a small team with real data, real buildings, real earthquake records, and a physics framework that scales from a wooden house to a planetary wave simulation. We cannot do this alone β€” and we should not. The best seismologists, structural engineers, ML researchers, and quantum computing physicists should be working on this together.

If you are at Caltech, Berkeley, Kyoto, Tokyo, or anywhere else where earthquakes are not abstract β€” we want to hear from you. Bring your algorithm, your dataset, your critique of our tensor formulation, your better idea. The TGL competition exists precisely because we believe the best model has not been written yet.

"This is for our families and loved ones. That is the only incentive that matters."
β€” Hayato Kameta, Founder

Ways to collaborate

You areWhat you bringWhat you get
SeismologistDomain knowledge, existing datasetsNamazu building tensor data, dense urban sensor coverage
ML / Physics researcherBetter TGL algorithmReal multi-floor shake data, NMZ token rewards, co-authorship
Structural engineerBuilding knowledge, validationAccess to .nmz building tensor database
App developerUser base, shake dataNamazu alerts API, token incentives
Student / hobbyistFresh ideas, TGL submissionSame leaderboard, same rewards β€” merit only
Get in touch β†’ zweispace.co.jp Namazu 3.0 overview