Introduction for Foodb API (Beta)

Food Table


OperatorUsageDescription
food_name {"food_name": "Apple"} Search the food that match the food_name.
page {"page" : 1 } Required. For selecting the page.

Compound Table


OperatorUsageDescription
compound_name {"compound_name": "Cyanidin"} Search the compound that match the compound_name.
You can apply filter to select the molecule in certain weight range.
If use compound_id or cas_number search compound, this field wouldn't apply.
page {"page" : 1 } Required. For selecting the page.
compound_id {"compound_id": "FDB000004"}
{"compound_id": "4"}
Search the compound using either id or public_id.
cas_number {"cas_number": "350602-26-5"} Search the compound using cas number. This field will be ignored if compound_id presents.
inchikey {"inchikey": "HBXXDBKJLPLXPR-DLBZZEGUSA-O"} Search the compound using inchikey. This field will be ignored if compound_id or cas_number presents.
filter "filters":
  { "max_weight": 100,
  "min_weight": 0 }
Filter only apply if you choose to use compound_name to search the compound.

Content Table


OperatorUsageDescription
compound_id {"compound_id": 1}
  or
{"compound_id": "FOOD00001"}
Search the associated food by giving compound_id. Search by name is not allowed. We advise you search by compound name in compound table.
food_id {"food_id": 1}
  or
{"food_id": "FOOD000001"}
Search the associated compound and nutrient by giving food_id. Search by name is not allowed. We advise you search by food name in food table.
page {"page" : 1 } Required (only if you select only one of compound_id and food_id)

Contact us to request api key (experimental)