Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaPublic RecordsAvailable now

FEMA · Query dataset

fema-gov/us-disaster-assistance/query_dataset

Search public records with FEMA · Query dataset from Alexandria through one Spiral API key. Read any OpenFEMA dataset the dedicated functions do not cover: IPAWS alerts, NFIP claims and policies, Hazard Mitigation grants, Public Assistance projects, IHP registrations, declaration denials, FEMA regions, ... It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
entity requiredtext—

Dataset entity name, e.g. IpawsArchivedAlerts, DeclarationDenials, FemaRegions. Pattern: ^[A-Za-z][A-Za-z0-9]*$.

version requirednumber
1 to 20
—

Dataset API version from list_datasets.

topnumber
1 to 1000
100

Rows per page (OpenFEMA $top).

skipnumber
0 to …
0

Rows to skip (OpenFEMA $skip); pass the previous page's next_skip.

filtertext—

Raw OData $filter, e.g. disasterNumber eq 4931, state eq 'TX' and declarationDate ge '2025-01-01T00:00:00.000Z'. Strings in single quotes; and/or/eq/ne/gt/ge/lt/le/in/substringof/startswith.

selecttext—

Comma-separated field names to return (OData $select). Pattern: ^[A-Za-z0-9_]+(,\s*[A-Za-z0-9_]+)*$.

orderbytext—

OData $orderby, e.g. declarationDate desc. Pattern: ^[A-Za-z0-9_]+( (asc|desc|ASC|DESC))?(,\s*[A-Za-z0-9_]+( (asc|desc|ASC|DESC))?)*$.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "fema-gov/us-disaster-assistance/query_dataset",
    "input": {
      "entity": "<entity>",
      "version": 1
    }
  }'

Frequently asked questions

How much does FEMA · Query dataset cost?

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use FEMA · Query dataset through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "fema-gov/us-disaster-assistance/query_dataset"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use FEMA · Query dataset?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use FEMA · Query dataset?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.