I like it too. I am thinking about how to do that but I don't see any API to send queries to the usda website. I guess I'll have to get the database (1Mb) and look into it.
I never wrote goodies before so someone may have a better suggestions?
posted by <hidden> • 4 years and 3 months ago Link

There are several distributors of the USDA's data out there. is one which has a json api suited to this. does as well but their api seems to me more geared towards personal nutrition tracking apps. However, I didn't look at it in too much detail.
posted by <hidden> • 4 years and 1 month ago Link