Prerequisites
- A Bhumi API key. If you don’t have one yet, see Authentication.
- Any HTTP client (curl, a browser fetch,
requestsfor Python, etc.)
Step-by-step
Get your API key
Sign up at console.bhumifarms.co to create a free key. Your key will look like:Store it in an environment variable rather than hardcoding it in your source:
Make your first search request
The
/v1/search endpoint finds farms near a geographic coordinate. Pass lat, lng, and radius (in miles), and include your key in the X-API-Key header.Filter by product
Add a
products query parameter (comma-separated) to narrow results to farms that carry specific items:Read the response
All search endpoints return the same envelope shape: a Key fields in each farm object:
When
data array of farm objects and a meta pagination object.| Field | Type | Description |
|---|---|---|
id | string | Unique farm identifier |
name | string | Farm name |
city, state | string | Location |
lat, lng | number | Coordinates |
products | string[] | Product types carried by this farm |
certifications | string[] | e.g. "USDA Organic" |
quality_score | number | 0–100 quality signal (Pro tier) |
place_type | string | "farm", "market", "ranch", "CSA", etc. |
distance_mi | number | Distance from your search center |
delivery_options | string[] | Pickup and delivery methods |
website | string | Farm website URL |
meta.has_more is true, request the next page with ?page=2.What’s next
- Browse the full endpoint reference for all available routes and query parameters.
- Connect an AI assistant using the MCP server.
- Review pricing and rate limits before shipping to production.