Show HN: USDA-linked nutrition API from messy inputs (CLI/Python/REST) (nutrition.avocavo.app)

2 points by acriftphase ↗ HN
I built Avocavo Nutrition to turn real-world inputs (“2 slices bacon”, “1 handful almonds”, full recipes) into USDA-verified nutrition with FDC IDs + links.

• Accepts messy quantities, cooked/raw, servings. • Returns clean JSON (+ CLI/Python/REST), with the exact FDC link to verify. • 500 free calls.

Live demo (no signup): https://nutrition.avocavo.app/ Docs/Quick start: https://nutrition.avocavo.app/#quickstart Example JSON (pasta + sauce): https://gist.github.com/acriftphase/2f74acab42a428f5e9efc6e8...

Happy to run your ingredient/recipe in the thread and post raw JSON + FDC link.

1 comment

[ 3.5 ms ] story [ 10.6 ms ] thread
Live demo + examples

CLI $ npm i -g avocavo $ avocavo login $ avocavo ingredient "2 slices bacon" --json

Python from avocavo import Avocavo client = Avocavo(api_key="YOUR_API_KEY") print(client.ingredient("1 cup brown rice"))