Get an API key
Workflows

Check earthquake hazard by address

Use a building coordinate to compare modeled shaking, seismic design category, and a local liquefaction map.

To screen a property for earthquake hazards, match the address to the building you are reviewing. Query ground shaking and seismic design category at that coordinate with Fetch. Check the local liquefaction map separately. Liquefaction occurs when saturated soil can lose strength during shaking. Two buildings can have the same design category and sit in different mapped ground conditions.

Resolve the building, then query both Earth fields

Use Geocode to resolve the street address. Compare the returned coordinate with the intended building footprint. An entrance, a range-interpolated address or the center of a large lot can be a poor proxy near a mapped boundary. Follow the building identity workflow when the address points to more than one structure.

Set INVARIANT_API_KEY to your API key.

curl --fail-with-body --max-time 25 -sS 'https://api.invariant-ai.com/v1/geocode' \
  -H "X-API-Key: $INVARIANT_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"address":"960 4th St, San Francisco, CA 94158"}'

The coordinates below come from San Francisco's published address point for the Mission Bay Branch library. Use your verified building coordinate for a live review.

curl --fail-with-body --max-time 75 -sS 'https://api.invariant-ai.com/v1/fetch' \
  -H "X-API-Key: $INVARIANT_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{
    "lat": 37.775369727,
    "lng": -122.393097385,
    "fields": ["seismic_design_category", "seismic_pga_2pct_50yr_g"]
  }'
Field What to read
seismic_design_category An ASCE 7-22 screening category from the USGS design service. Earth queries Site Class D and Risk Category II. Preserve those assumptions with the returned category and the spectral acceleration values in the field notes.
seismic_pga_2pct_50yr_g Peak ground acceleration, in units of gravity, with a 2% probability of exceedance in 50 years. This comes from the USGS 2018 conterminous U.S. model on a 0.05° grid with a reference shear-wave velocity of 760 m/s.

A ground acceleration value describes modeled shaking. A design category depends on the selected code edition and scenario parameters. For both fields, retain the status, source_url, timestamps and dataset vintage where supplied. An absent or failed field leaves a gap in the screen. See response and provenance details.

Compare two San Francisco address points

The public USGS service returned these design cases on November 24, 2026 UTC. They hold ASCE 7-22, Risk Category II and Site Class D constant. The city map results are the dated point checks saved in the linked research sample. SDS and SD1 are design spectral accelerations at short periods and at a period of one second, respectively.

City address point Seismic design category SDS / SD1 City liquefaction layer
Main Library, 100 Larkin Street D 1.15 g / 1.16 g Zero features intersect the point
Mission Bay Branch, 960 4th Street D 1.10 g / 1.13 g One feature intersects the point

Both points returned category D when the USGS requests used Site Class C as well, but SD1 dropped to 0.57 g at each point. Save the request inputs alongside the category. The difference between the scenarios does not establish the actual soils or design requirements at either library. The local map join applies to the address point only. Check the whole building footprint where the map boundary is close. When the map service returns an error, leave the current intersection unresolved until the source can be checked.

USGS ASCE 7-22 design service · San Francisco Planning liquefaction layer · Download the address records, requests and results.

Record the evidence for review

Keep the matched building ID, coordinate and match method, the map publisher and edition, the point or footprint intersection, and the design-service parameters. For an underwriting submission, check building construction, retrofit evidence, and any geotechnical reports separately. Those records support building-specific review that a mapped hazard value alone cannot supply.