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.

Try it
Ready-made, maintained by usPlaces, 10 fieldsv1.0

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

Location
A city such as Toronto, ON, or latitude and longitude as 'lat,lon'.
Example: 43.65,-79.38
Typeoptional
What to find: farm, csa, farmers market, u-pick, farm stand, wholesale, restaurant, grocery, shop or all (default all).
Example: csa
Maximum resultsoptional
Most listings to return.
Example: 20

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
Endpoint
POSThttps://pullrow.dev/v1/apis/localharvest-farms/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
2,500 free records of this API to start. No card.
curl
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.

locationtextrequired
A city such as Toronto, ON, or latitude and longitude as 'lat,lon'.
example: 43.65,-79.38
typetext
What to find: farm, csa, farmers market, u-pick, farm stand, wholesale, restaurant, grocery, shop or all (default all).
default: allexample: csa
max_resultsnumber
Most listings to return.
default: 24example: 20

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

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 nameTypeShown on this page asFilled
listing_idtextListing ID (hidden)3 of 3
nametextName3 of 3
typetextType3 of 3
citytextCity or town3 of 3
state_provincetextState or province name3 of 3
short_descriptiontextShort description3 of 3
urllinkLink3 of 3
latitudenumberMap latitude3 of 3
longitudenumberMap longitude3 of 3
productslistProducts3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNameTypeShort descriptionProductsCity or townState or province nameMap latitudeMap longitudeLink
1Zephyr OrganicsFamily FarmAt Zephyr Organics, we believe that healthy soil makes healthy produce, and healthy produce makes nutritious foods....asparagus, carrots, chinese greens, green onionsZephyrOntario43.663-79.378localharvest.org/zephyr-organics-M49997
2Kirby's Farm MarketFamily FarmFor five generations the Kirby family has taken pride in offering the highest quality fruits and vegetables to our customers....cabbage, garlic, winter-squash, applesBrockportNew York43.25-77.985localharvest.org/kirbys-farm-market-M43407
3Knuckle Down FarmFamily FarmKnuckle 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, celeryFrankfordOntario43.659-79.431localharvest.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.
Known limits
  • 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.