Architecture
Step 1: Get an API key
Sign up at console.bhumifarms.co and create a key. Store it as an environment variable — never expose it in client-side code.Step 2: Search farms by location
Step 3: Plot on a map
Each farm in the response includeslat and lng coordinates. Use these to place markers on your map.
Step 4: Add product filters
Pass product names as comma-separated values:Step 5: Farm detail pages
When a user clicks a farm, fetch the full profile:Tips
- Cache aggressively — farm data doesn’t change frequently. The API returns
Cache-Controlheaders. - Use pagination — for dense areas, page through results rather than requesting everything at once.
- Proxy through your server — never expose your API key to the browser.