Side-by-side nutrient comparison of 2-6 foods (API key, rate-limited)
GET /foods/compare · API key required
Resolves each comma-separated food name the same way /foods/substitutes resolves one, then returns each food's per-100g macro/micronutrient panel plus, only where a sourced row exists in glycaemic_index_data, a measured glycaemic block - GI/GL is never estimated. Also returns nutrient_comparison, the same fields pivoted per-nutrient with the highest/lowest food flagged.
Parameters
foods(query, required) - Comma-separated list of 2-6 food names.
Responses
200400429