Open Food Facts API

Build a nutrition tracker with barcode-scanned food data

Query nutrition info, ingredients, and Nutri-Scores for 3M+ food products. Build a meal logger that auto-calculates daily macros and flags allergens.

Completely free. Open source. No API key required.

Open Food Factsdocs →

How it works with Loony

Describe it.
Deploy it.
Query it.

Managed database.

Your Open Food Facts data lives in its own Postgres instance. Zero config. Data accumulates over time.

Scheduled syncs.

Cron jobs run on Loony infra. Every minute on free. Your data stays fresh without you thinking about it.

REST + MCP endpoints.

Query from your agent, your dashboard, or connect BI tools directly. Full OpenAPI spec included.

TerminalSchema
$ "Pull nutrition data for products I've scanned this week from Open Food Facts. Calculate daily macro totals and flag any allergens."

 Schema validated
 Database provisioned
 Scripts deployed
 Schedules registered

Done.

# Your data is now at:
REST  /data/v1/open-food-facts/query
MCP   /mcp/v1/open-food-facts/mcp
SQL   psql $DATABASE_URL

What you get

Open Food Facts is a massive dataset but querying it live is slow. Loony syncs the products you care about into your own database, so nutrition lookups are instant and you can build aggregate views over your eating patterns.

mv_daily_nutrition
  date          date        -- meal date
  calories      integer     -- daily total
  protein_g     numeric     -- grams
  carbs_g       numeric     -- grams
  fat_g         numeric     -- grams
  fiber_g       numeric     -- grams
  allergens     text        -- comma-separated flags

Even better together

Pair nutrition data with Strava/Fitbit activity data to correlate what you eat with how you perform and recover.

Stop gluing. Start shipping.

Describe your data. Deploy. Query. Done.

API Library →