Become a fan on Facebook Follow us on Twitter USDA Blog Feed Watch USDA videos on YouTube Subscribe to receive e-mail updates View USDA Photos on Flickr Subscribe to RSS Feeds

New API Helps Satisfy the Nation’s App-etite for Farmers Markets

A farmer’s market patron enjoys orange samples and talks to the booth vendor at a San Francisco area market. The new Farmers Market API released by AMS will give app developers and designers an easier way to leverage the wealth of information in USDA’s National Farmers Market Directory. Photo by Gary Yost.

A farmer’s market patron enjoys orange samples and talks to the booth vendor at a San Francisco area market. The new Farmers Market API released by AMS will give app developers and designers an easier way to leverage the wealth of information in USDA’s National Farmers Market Directory. Photo by Gary Yost.

America is developing quite an app-etite. The number of U.S. smartphone owners is approaching 130 million, resulting in more and more demand for mobile access to our information. Combine that with the increase in consumers wanting access to fresh, local products, and it’s obvious why there’s such a high demand for the data in USDA’s National Farmers Market Directory.

The new Farmers Market Directory API (Application Programming Interface) released today will give app developers and designers direct access to the wealth of farmers market information housed in the online database. The directory receives nearly 2 million page views per year and is one of the USDA’s most popular consumer search engines. With over 7,800 farmers market listings available for all 50 states, apps and websites that previously relied on a download or export of the data set will now be able to make direct calls to the directory.  This means that apps developed with the new API will be able to give foodies and farmers market lovers everywhere more accurate and up-to-date information.

The API was developed in-house, and will be updated as the directory continues to evolve. USDA is committed to making our data more accessible to everyone—no matter where they are, no matter what the platform or device. USDA and AMS will continue to listen to the consumers and developers who use it daily and their input will help map out our plans for the next set of updates.

The new API is a first for AMS, but it certainly won’t be the last. We hope these efforts will open more doors for developers and the public to benefit from our datasets.  We look forward to seeing new applications, mash-ups and uses for the Farmers Market Directory information.  Leave us a comment or send a Tweet to let us know how you’re using the data, and share any feedback you might have.

Today’s release also supports the Department’s Digital Government Strategy work as one of the USDA’s API deliverables required by the 12-month milestones. You can also browse additional agency APIs on the USDA Developer Hub – you may just find a great opportunity to mash-up other USDA datasets with the Farmers Market Directory API.

To help support and get to know the people who want to work with the new API, USDA is participating in a National Day of Civic Hacking, June 1-2, with a challenge centered on the new API.  Be sure to check out our challenge or sign up for one of the many events across the country.

4 Responses to “New API Helps Satisfy the Nation’s App-etite for Farmers Markets”

  1. Cara Rosaen says:

    This is great news. I wonder if you guys could add web hooks so that there could be a way to keep a separate database up to date? For example, Real Time Farms had an extensive list of farmers markets (some not included in the USDA list) and would love to be automatically notified, via something like web hooks, whenever something is edited or added. Structured information on the market schedule would be icing on the cake.

  2. David Webber says:

    We have this deployed as Open Data API with both XML and JSON, and also open source code on GitHub VerifyXML

    We are seeing same problem – only 7,500 entries and no updating – but we are working on that.

    See VerifyXML.org project site for more.

    Here are the links to the raw services for now:

    http://verifyxml.org/OpenXDXFarmerMarkets/resources/rest/XML/marketSearch?zip=72206
    http://verifyxml.org/OpenXDXFarmerMarkets/resources/rest/JSON/marketSearch?zip=72206

  3. Michael says:

    Thanks for publishing the API. Here’s a map I made using the USDA data: http://www.mvjantzen.com/blog/?p=3979

  4. molly Ames says:

    I just got back from Cross River State in Nigeria as a volunteer for USAID’s Farmer to Farmer and they want to develop a farm directory. They have 500,000 farms in Cross River State alone and so they need an automated means to produce a directory. I have been unable to find an off the shelf software. Does anyone know where I could look? They do have a data base but it doesn’t have all the info needed.
    Molly

Leave a Reply