curl, jq and a Mireye API
key. No SDK. Nothing to install.
You will:
- Fetch cited fields for a point in Manhattan.
- Fetch the flood-risk preset for the same point.
- Connect an AI agent over MCP.
1. Get an API key
- Sign in at www.mireye.com.
- Accept the current Earth terms.
- Create an API key in the dashboard.
- Store it privately:
2. Pick a coordinate
Use any US lat/lng. This one is near City Hall in lower Manhattan:lat ∈ [18, 72],lng ∈ [-180, -65]. That covers the lower 48, Alaska, Hawaii and US territories.- Western Aleutians:
lat ∈ [51, 54],lng ∈ [172, 180). - Anything else returns
400 coord_out_of_bounds.
Starting from an address?
- You do not need to resolve it first.
/v1/fetchaccepts anaddressin place oflat/lng.- It returns the match quality in a
geocodeblock.
POST /v1/geocode:
accuracy_type before you use the coordinate:
rooftopis on the parcel.range_interpolationis an estimate along the street. It can be kilometres off in rural areas.- Details: the geocode page.
3. Fetch fields
Name the fields you want and call/v1/fetch. Fetch is free:
- Each field is a self-contained record, with its provenance inline.
partial_failuresis empty here.- On a call where the LCMS source times out, that field stays in
fieldswith"status": "failed"and a null value. - It is also listed in
partial_failureswithretryable: true. The rest of the call still returns 200.
4. Use it from an AI agent
Mireye also runs an MCP server. Claude, ChatGPT, Perplexity, Cursor, Codex and Claude Code can call it with no code. Add one URL and sign in. In Claude Code:“What’s the elevation at 40.7128, -74.0060?”Claude calls
mireye_fetch and shows the value with its source.
- Other apps: Connect.
- Agents on a server: use the HTTP API.
5. Self-discover the catalog
Long-lived clients (agents, services) should fetch the catalog once at startup and cache it for an hour. The endpoint is public. No key needed:- The response sets
ETagandCache-Control: public, max-age=3600. - Later requests with
If-None-Match: "<etag>"return 304. - Full flow: /api-reference/meta-fields.
- This endpoint covers Fetch fields and presets.
- For the others, see the Search field reference and the Enrich field reference.
What’s next
POST /v1/fetch
Fields, presets, and
partial_failures semantics.POST /v1/search
Find a parcel shortlist using typed filters.
POST /v1/enrich
Resolve one parcel and investigate selected attributes.
MCP tools
Choose between field fetches, parcel search, and enrichment.
Pricing in dollars
What each call costs, and how to quote a job first.
POST /v1/runs
Screen thousands of locations in one job.