Dietary fiber for 198 everyday foods, per typical serving and per 100 g, with the soluble and insoluble split, percent of the daily value, and a low FODMAP flag. It is the food database behind the FiberUp fiber tracker, built on USDA FoodData Central and matched to servings people actually eat (1/2 cup cooked lentils, 1 medium pear, 2 slices of bread).
- CSV:
data/fiber-foods.csv - JSON:
data/fiber-foods.json - Live JSON API (no key, CORS open):
https://fiberup.app/api/v1/foods.jsonandhttps://fiberup.app/api/v1/foods/{slug}.json - Docs and browsable tables: fiberup.app/data
Updated 2026-10-13.
| Field | Type | Meaning |
|---|---|---|
slug |
string | URL-safe id, also used by the per-food API endpoint |
name |
string | Common food name |
category |
string | Vegetable, Fruit, Legume, Grain, Nut & Seed, Other |
serving |
string | Typical serving, for example 1/2 cup cooked |
serving_grams |
number | Weight of that serving in grams |
fiber_g |
number | Total dietary fiber per serving, grams |
fiber_per_100g |
number | Total dietary fiber per 100 g |
soluble_g |
number | Soluble fiber per serving (approximate) |
insoluble_g |
number | Insoluble fiber per serving (approximate) |
daily_value_pct |
number | Percent of the 28 g FDA daily value |
low_fodmap_at_serving |
boolean | Whether the listed serving is low FODMAP |
url |
string | The food's page on fiberup.app |
| Category | Foods |
|---|---|
| Vegetable | 60 |
| Grain | 41 |
| Fruit | 39 |
| Nut & Seed | 21 |
| Other | 20 |
| Legume | 17 |
Highest whole foods per serving: Chia Seeds (9.8 g), Navy Beans (9.6 g), White Beans (9.3 g), Split Peas (8.1 g), Raspberries (8 g).
const res = await fetch('https://fiberup.app/api/v1/foods/lentils.json');
const food = await res.json();
console.log(`${food.name}: ${food.fiber_g} g fiber per ${food.serving}`);
// Lentils: 7.8 g fiber per 1/2 cup cookedimport pandas as pd
df = pd.read_csv("https://raw.githubusercontent.com/acalise/fiber-database/main/data/fiber-foods.csv")
print(df.sort_values("fiber_per_100g", ascending=False).head(10))- Fiber varies with variety, ripeness, and cooking. Values are rounded to one decimal.
- Soluble and insoluble splits are approximate. They come from USDA SR Legacy analyses where those exist and from standard references otherwise; USDA does not publish the split for most foods.
- The FODMAP flag describes the listed serving, not the food in general.
- General nutrition information, not medical advice.
Found an error? Open an issue.
Data is licensed CC BY 4.0. You can copy, adapt, and use it commercially. Attribution is required: credit FiberUp with a link to https://fiberup.app/data/ wherever you use or display the data.
On a web page, this is enough:
Fiber data: <a href="https://fiberup.app/data/">FiberUp fiber database</a>Calise, A. (2026). FiberUp Fiber Database [Data set]. https://fiberup.app/data/
See CITATION.cff for a machine-readable version.