Local Farms, CSAs & Farmers Markets API
Farms, CSAs, farmers markets, U-pick farms, farm stands and local food sellers near a place in the US and Canada, with city, region, short description, map coordinates and the products and crops each lists.
$2 per 1,000 records
You pay only for the records you get. Zero records cost zero. 2,500 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from localharvest.org/search.jsp
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 2,500 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/localharvest-farms/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"location":"43.65,-79.38"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
10 fields: 9 here, 1 technical one under Technical details.
Basics
- Name
Name of the farm, market or business.
Example Zephyr Organics
- Type
Kind of listing shown on its card, such as Family Farm.
Example Family Farm
- Short description
Opening of the listing's own description.
Example At Zephyr Organics, we believe that healthy soil makes healthy produce, and healthy produce makes nutritious foods....
- Products
Products and crops the listing says it offers, across seasons.
Example asparagus, carrots
Location
- City or town
Example Zephyr
- State or province name
Example Ontario
- Map latitude
Example 43.663
- Map longitude
Example -79.378
Links
- Link
Link to the listing page.
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- Listing ID
listing_idLocalHarvest's own listing number.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
listing_id | text | Listing ID (hidden) | 3 of 3 |
name | text | Name | 3 of 3 |
type | text | Type | 3 of 3 |
city | text | City or town | 3 of 3 |
state_province | text | State or province name | 3 of 3 |
short_description | text | Short description | 3 of 3 |
url | link | Link | 3 of 3 |
latitude | number | Map latitude | 3 of 3 |
longitude | number | Map longitude | 3 of 3 |
products | list | Products | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Name | Type | Short description | Products | City or town | State or province name | Map latitude | Map longitude | Link |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Zephyr Organics | Family Farm | At Zephyr Organics, we believe that healthy soil makes healthy produce, and healthy produce makes nutritious foods.... | asparagus, carrots, chinese greens, green onions | Zephyr | Ontario | 43.663 | -79.378 | localharvest.org/zephyr-organics-M49997 |
| 2 | Kirby's Farm Market | Family Farm | For five generations the Kirby family has taken pride in offering the highest quality fruits and vegetables to our customers.... | cabbage, garlic, winter-squash, apples | Brockport | New York | 43.25 | -77.985 | localharvest.org/kirbys-farm-market-M43407 |
| 3 | Knuckle Down Farm | Family Farm | Knuckle Down Farm is a small-scale organic market garden sitting on a quiet back-channel of the Trent River - near Stirling, Belleville, and Trenton Ontario.... | arugula, carrots, cauliflower, celery | Frankford | Ontario | 43.659 | -79.431 | localharvest.org/knuckle-down-farm-M67746 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Listings come from LocalHarvest's public search; results are ordered by distance from the place given and can include farms across the border (a Toronto search also returns western New York).
- Each search page holds 12 listings and each listing's page is read for its products, so runs are slow: requests are spaced 1.5 seconds apart and 100 listings take about 4 minutes.
- Latitude and longitude are the first map point LocalHarvest shows for the listing, which can be a pickup or delivery spot rather than the farm itself, and are empty when the map has no point; products are empty when a farm lists none.
- Descriptions are cut to the short text shown in search results; farms keep their own copyright, so link back to the listing page.
- The site lists businesses that signed up themselves, so coverage is thinner outside the US northeast, west coast and Ontario, and listings may be out of date.
- A run returns at most 300 listings; search depth beyond that is not available.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.