It seems someone has implemented this already via nutritionx

Why is this topic still open? Are there gaps with this ? I am a developer and I can help.

Also I like myfitnesspal is a source for food calories and i think their database is quite comprehensive.
posted by <hidden> • 4 years and 4 months ago Link

Also see, They have more data for popular brands (31361 foods at the moment).
posted by jkanarek Staff4 years and 2 months ago Link
This currently works for calories but not other nutritional facts. Further work on other aspects of nutrition would be valuable.
posted by <hidden> • 3 years and 8 months ago Link