Skip to main content
This walkthrough makes real API calls. You need curl, jq and a Mireye API key. No SDK. Nothing to install. You will:
  1. Fetch cited fields for a point in Manhattan.
  2. Fetch the flood-risk preset for the same point.
  3. Connect an AI agent over MCP.
Using an x402 wallet? x402 Fetch takes USDC on Base, with no API key.

1. Get an API key

  1. Sign in at www.mireye.com.
  2. Accept the current Earth terms.
  3. Create an API key in the dashboard.
  4. Store it privately:
API keys are for HTTP. MCP uses sign-in. See Authentication.

2. Pick a coordinate

Use any US lat/lng. This one is near City Hall in lower Manhattan:
Accepted coordinates:
  • 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/fetch accepts an address in place of lat/lng.
  • It returns the match quality in a geocode block.
Want the coordinate on its own, to inspect it or reuse it? Use POST /v1/geocode:
Check accuracy_type before you use the coordinate:
  • rooftop is on the parcel.
  • range_interpolation is 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:
Response:
  • Each field is a self-contained record, with its provenance inline.
  • partial_failures is empty here.
  • On a call where the LCMS source times out, that field stays in fields with "status": "failed" and a null value.
  • It is also listed in partial_failures with retryable: true. The rest of the call still returns 200.
Or skip the field list and use a preset:
All presets and their field expansions are listed at /api-reference/fetch.

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:
Your browser opens. Sign in, then start a new session and ask Claude:
“What’s the elevation at 40.7128, -74.0060?”
Claude calls mireye_fetch and shows the value with its source.

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:

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.