{"uid":"cap_V_ErWbP5UgpGMqsQv43dr","slug":"fema-national-risk-index-county-natural-hazard-risk-scores-by-state-545f4761","name":"FEMA National Risk Index – County Natural-Hazard Risk Scores by State","description":"County natural-hazard risk scores for a U.S. state and peril from the FEMA National Risk Index: Expected Annual Loss ($), EAL/Risk scores (0-100) and ratings, ranked by loss. composite or one of 18 hazards (wildfire, coastal flooding, hurricane, earthquake, ...). Public-domain FEMA data. $0.10 per query. Free discovery: /v1/hazard/sample. Docs: https://api.querylines.com/openapi.json","url":"https://api.querylines.com/v1/hazard","method":"GET","headers":{},"bodySchema":{"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":["state"],"properties":{"peril":{"type":"string","default":"composite","description":"composite (default) or an NRI hazard slug"},"state":{"type":"string","description":"2-letter state/territory code"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":3,"peril":"wildfire","state":"CA","source":"FEMA National Risk Index (County), December 2025 (v1.20.0)","counties":[{"fips":"06073","county":null,"eal_score":100,"eal_total":430155987,"eal_rating":"Very High","population":3298634,"risk_score":99.8,"county_name":"San Diego","risk_rating":"Very High","sovi_rating":"Relatively Moderate"},{"fips":"06065","county":null,"eal_score":99.9,"eal_total":346642805,"eal_rating":"Very High","population":2418185,"risk_score":99.4,"county_name":"Riverside","risk_rating":"Very High","sovi_rating":"Relatively High"},{"fips":"06037","county":null,"eal_score":99.7,"eal_total":155191812,"eal_rating":"Very High","population":10105518,"risk_score":100,"county_name":"Los Angeles","risk_rating":"Very High","sovi_rating":"Relatively High"}],"data_as_of":"1.20.0","report_date":"2026-07-14","coverage_note":"Hazard scores are FEMA National Risk Index (NRI) county-level figures ... not endorsed by FEMA."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EbkiWPITFiDQfN5BlLifh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns FEMA National Risk Index Expected Annual Loss and risk scores (0–100) for all counties in a U.S. state, optionally filtered to a specific peril (composite or one of 18 hazards), ranked by loss.","exampleAgentPrompt":"Pull the FEMA National Risk Index wildfire risk scores and expected annual loss for all counties in California, ranked by loss.","exampleUseCases":null,"resultDescription":"A list of counties in the requested U.S. state with their FEMA National Risk Index Expected Annual Loss (in dollars), EAL risk scores on a 0–100 scale, risk ratings, and rankings — either for composite natural hazard risk or for a specified single peril such as wildfire, hurricane, earthquake, or coastal flooding.","failureModes":["Missing or invalid state code returns a 400/422 error","Unknown peril slug returns an error or empty result","State code for a non-U.S. territory not covered returns no data","Rate limiting or payment failure (x402) returns 402 Payment Required","Requesting a peril not in FEMA's 18 NRI hazard categories returns an error"],"whenToPreferThis":"Choose this endpoint when you need FEMA-sourced, county-level natural hazard risk data for an entire U.S. state, either as a composite risk score or broken down by a specific peril. It is ideal for insurance underwriting research, real estate risk analysis, climate risk enrichment, or regulatory compliance work that requires authoritative public-domain government risk data rather than proprietary estimates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:32:00.002Z","isFirstParty":false}