MyFarmFax

MyFarmFax API

Get a MyFarmFax report for a field from your own system: the MyFarmFax Score and grade, red flags, crop and water-use history, soil and salinity, and nearby surface water. The API is in a private pilot; to get a key, request access and say you want the API.

For company API or Enterprise plans, email sales@myfarmfax.com.

Your key

Send the key with every call as Authorization: Bearer mff_…. Keep it on your server; anyone with the key can use your reports. An unlinked key has its own monthly report limit. When linked to an approved Enterprise account, it uses that account's shared report allowance instead.

Get a report

POST https://myfarmfax.com/api/v1/report with a JSON body. Give either a point inside the field, or the field's outline:

FieldWhat it is
lat, lonA point inside the field. MyFarmFax finds the mapped field or parcel there.
geometryOr the field outline as a GeoJSON Polygon or MultiPolygon (longitude, latitude), 0.5 to 20,000 acres.
apnOptional parcel number, with lat/lon to pick the state.
detail"summary" (default) or "full" to add every year, every month and the full soil and water results.
curl -X POST https://myfarmfax.com/api/v1/report   -H "Authorization: Bearer $MYFARMFAX_KEY" -H "Content-Type: application/json"   -d '{"lat": 40.3957, "lon": -104.5692}'

The answer includes score (0 to 100, grade A to F, each part with the reason, a confidence of high, medium or low, range (the likely low and high score), missing (checks that had no data), capped, true when the grade was held back because key checks had no data, and disclaimer, which must be shown with the grade: it is a screening grade, not an appraisal), verdict, headline (recent water use, current crop, irrigated or not, fallow years), wet_dry (each year labelled wet, normal, dry or very dry; water use in a normal, dry and wet year; how well the water supply held up in dry years), adjustments (years not counted against the water supply, such as wet-year or crop-disaster losses and documented paid fallowing, and other special cases found on the field), red_flags, buyer_questions, crops, soil, water, the field outline, report_url, a link that opens the field in MyFarmFax for signed-in users, share_url, a read-only copy of the full report that anyone with the link can open (for your own customers; no MyFarmFax account needed), and badge_url, a small grade badge image for listings.

A new report takes up to about two minutes, because it gathers satellite and government data. Set your timeout to at least 180 seconds. A field reported in the last 30 days comes back at once with "cached": true and does not count against your limit.

Check your usage

GET https://myfarmfax.com/api/v1/usage returns the reports used and the applicable limit. For linked Enterprise keys, usage is shared with the account's other reports. Every report answer also carries X-Reports-Used and X-Reports-Limit headers.

Errors

CodeMeaning
401Missing, wrong or paused key.
404No mapped field at that point. Send the outline as geometry instead.
422The request is missing a point or outline, or the field is too small or too large.
429The key's monthly limit, or linked Enterprise allowance, is used. Fields reported in the last 30 days still work.
502A data source did not answer, or the satellite data allowance for the month is used. Try again later.

Every error is JSON: {"error": "what went wrong"}.

Informational only: not an appraisal or legal advice. Data providers are listed on the data credits page.