Skip to content

USDA API

USDA (usda.gov) has 2 public methods: get nutrition facts and search foods. Each costs 1 credit per completed run (1¢ with pay as you go); failed runs are free.

Unofficial. Not affiliated with or endorsed by USDA.

Methods

2
  • Looks up a food in USDA FoodData Central and returns its nutrients per 100 g and for a chosen amount (grams, ounces, or a listed household portion).

    Returns matched food name, amount weight, nutrients per 100 g and per amount, page link, FDC id, data source type

    Readfdc.nal.usda.gov/get_nutrition_facts
  • Searches USDA FoodData Central foods and branded products by food or brand name, ranked by relevance. Calories and serving sizes are null when not supplied.

    Returns description, brand owner, category, calories per 100 g, serving size, FoodData Central link and ID

    Readfdc.nal.usda.gov/search_foods