Documentation Index
Fetch the complete documentation index at: https://www.mireye.ai/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/fetch returns specific named fields — or a preset bundle — for a US coordinate. Every field in the response includes its value, unit, source, source URL, fetch timestamp, confidence, and TTL. Fields that could not be fetched appear in partial_failures; the rest of the response returns 200. Expect 1–3 s on warm requests.
Request
Endpoint:POST https://mireye-earth.fly.dev/v1/fetch
Latitude of the query point. Must be within
[18, 72] (US envelope).Longitude of the query point. Must be within
[-180, -65] (US envelope).Named catalog fields to fetch. See the field catalog for all valid names. Can be combined with
preset — the union is deduplicated. At least one of fields or preset is required.A use-case bundle that expands to a predefined set of fields. One of:
terrain, flood_risk, wildfire_underwrite, land_cover, site_selection, building_lookup, utilities, boundaries. Can be combined with fields. At least one of fields or preset is required.You can send both
fields and preset in the same request. The preset expands first, then the named fields union in, and the combined list is deduplicated. The total after expansion cannot exceed 50 fields.Response (200)
ISO 8601 UTC timestamp of when the response was assembled.
Object keyed by field name. Each key corresponds to a field you requested (or one expanded from your preset). Fields that failed to fetch are omitted here and listed in
partial_failures instead.Array of fields that could not be fetched. The response is still 200 — successful fields are always returned even when some fail.
Partial failures
A 200 response can still contain failed fields. When any source is unavailable or returns no data at your coordinate, those fields appear inpartial_failures instead of being silently dropped.
partial_failures after every request. If retryable is true, the source was temporarily unavailable — retry after a brief delay. If retryable is false, the source returned a permanent error (for example, the coordinate has no coverage for that field) and retrying will not help.
Presets
Use a preset to request a predefined bundle of related fields in a single call.| Preset | Fields |
|---|---|
terrain | elevation, slope_degrees, aspect_cardinal, soil_drainage_class, bedrock_depth_cm |
flood_risk | elevation, within_floodplain_polygon, coast_distance_m, surface_water_permanence_pct, nearest_waterbody_name, intersects_wetland |
wildfire_underwrite | lcms_class, tree_canopy_pct, ndvi_current, ndvi_change_5y, slope_degrees, elevation |
land_cover | lcms_class, land_use_class, tree_canopy_pct, cdl_class, dominant_crop_5y |
site_selection | elevation, slope_degrees, nearest_major_road_distance_m, nearest_transmission_line_distance_m, lcms_class, within_floodplain_polygon |
building_lookup | primary_building, nearby_buildings_count, nearest_major_road, nearest_bridge |
utilities | nearest_power_plant, nearest_transmission_line, nearest_gas_pipeline, nearest_petroleum_pipeline, nearest_rail_line, nearest_airport, nearest_port |
boundaries | political_region, political_county, political_locality, tract_geoid, block_group_geoid, conservation_easement |
preset and fields in the same request — the two are unioned and deduplicated.
Error responses
| Status | Error code | Meaning |
|---|---|---|
| 400 | coord_out_of_bounds | Coordinate is outside the US envelope. |
| 400 | fields_unknown | One or more field names are not in the catalog. The response includes a fields_unknown array listing them. |
| 400 | fields_too_many | More than 50 fields were requested after preset expansion. Split into multiple requests. |
| 400 | no_fields_requested | Neither fields nor preset was provided. |
| 500 | internal | Orchestrator crash. |