JUHE API Marketplace
API Service

Nutrition Info

Provides comprehensive nutritional information, including macronutrients, minerals, and vitamins, based on personal health metrics.

99.9%
Uptime
32ms
Avg Response
10K+
Daily Requests
Nutrition Info Response
1{
2 "code": "0",
3 "msg": "success",
4 "data": {
5 "BMI_EER": {
6 "BMI": "21.9",
7 "Estimated Daily Caloric Needs": "2,272 kcal/day"
8 },
9 "macronutrients_table": {
10 "macronutrients-table": [
11 [
12 "Macronutrient",
13 "Recommended Intake Per Day"
14 ],
15 [
16 "Carbohydrate",
17 "256 - 369 grams"
18 ]
19 ]
20 },
21 "minerals_table": {
22 "essential-minerals-table": [
23 [
24 "Mineral",
25 "Recommended Intake Per Day",
26 "Tolerable UL Intake Per Day"
27 ],
28 [
29 "Calcium",
30 "1,000 mg",
31 "2,500 mg"
32 ]
33 ]
34 },
35 "non_essential_minerals_table": {
36 "non-essential-minerals-table": [
37 [
38 "Mineral",
39 "Recommended Intake Per Day",
40 "Tolerable UL Intake Per Day"
41 ],
42 [
43 "Arsenic",
44 "NANot Available",
45 "NDNot Determinable"
46 ]
47 ]
48 },
49 "vitamins_table": {
50 "vitamins-table": [
51 [
52 "Vitamin",
53 "Recommended Intake Per Day",
54 "Tolerable UL Intake Per Day"
55 ],
56 [
57 "Vitamin A",
58 "700 mcg",
59 "3,000 mcg"
60 ]
61 ]
62 }
63 }
64}
JSON64 lines

API Introduction

About this API

The Nutrition API is a professional health and nutrition calculation tool. It provides personalized nutrition recommendation services to developers based on the authoritative Dietary Reference Intakes (DRIs) established by the Health and Medicine Division of the National Academies of Sciences, Engineering, and Medicine. Unlike databases that query the nutritional content of single foods, the core function of this API is to calculate the recommended daily intake ranges for macronutrients, vitamins, and minerals based on an individual's specific physiological characteristics (such as age, sex, height, weight) and lifestyle (such as activity level, or if pregnant or lactating). By integrating this API, you can provide scientific, credible, and personalized nutritional guidance for your health, fitness, or diet management application.

Key Features

  • Personalized Calorie Need Estimation (EER): Accurately calculates a user's daily estimated energy requirement (calories) and Body Mass Index (BMI) based on their physiological data and activity level.
  • Macronutrient Recommendations: Provides recommended daily intake (in grams) for carbohydrates, protein, fat, and total fiber to help users build a balanced diet structure.
  • Essential Vitamin & Mineral Guidance: Details the recommended dietary allowance (RDA) and tolerable upper intake level (UL) for various essential vitamins (e.g., Vitamin A, C, D) and minerals (e.g., Calcium, Iron, Zinc), offering a comprehensive micronutrient reference.
  • Special Physiological Cycle Support: Offers customized nutrition calculations specifically for pregnant and lactating women, with adjustable recommendations based on the week of pregnancy or postpartum stage.
  • Multiple Measurement Units: Supports both metric (cm, kg) and imperial (feet, inches, lbs) unit inputs to accommodate users from different regions.

Use Cases

Scenario 1: Provide Personalized Diet Plans in a Fitness App

Situation: A fitness app wants to offer its users diet recommendations that match their workout plans. Implementation: When users register, they input their height, weight, age, sex, and daily activity level (e.g., "Sedentary" or "Very Active"). The app's backend sends this data to the Nutrition API. The API returns the user's total daily calorie needs, as well as the recommended grams of protein, carbohydrates, and fats. Based on this data, the app can generate a personalized daily diet plan, such as "To build muscle, you need to consume 2,500 kcal today, including 150 grams of protein." This makes the dietary advice more scientific and personalized.

Scenario 2: Create a Health Management Tool for Women Preparing for or During Pregnancy

Situation: An app focused on women's health wants to provide precise nutritional guidance for users who are trying to conceive, are pregnant, or are lactating. Implementation: When a user updates her status to "pregnant," the app asks for her number of weeks pregnant and pre-pregnancy weight. The app calls this API, passing pregnancy_lactating as pregnant along with the relevant parameters. The API returns specific nutritional recommendations for that gestational week, such as increased amounts of folic acid and iron. This helps expectant mothers better understand their own and their baby's nutritional needs for scientific dietary supplementation.

Scenario 3: Develop a Family-Oriented Nutrition and Health Education App

Situation: An app aims to help family members, including children and the elderly, understand healthy eating. Implementation: The app allows users to create profiles for each family member. A parent can input their child's age (e.g., age_value=8, age_type=yrs), sex, and activity level. The app calls the API to get a nutrition report for that child's age group, including the daily required amounts of key nutrients like calcium and vitamin D. The app can display this data in easy-to-understand charts and provide food suggestions (e.g., "To meet the daily 1000mg calcium requirement, drink more milk and eat tofu"), helping parents prepare healthier meals for their children.

How it Works: Endpoints & Response

This API calculates and returns a detailed nutrition recommendation report by receiving a series of personal physiological parameters.

Endpoint Example: https://hub.juheapi.com/nutrition/v1/nutrition-info

The response JSON data is clearly divided into several parts: BMI_EER provides the core BMI and daily calorie estimation; macronutrients_table, minerals_table, and vitamins_table return detailed recommended values for macronutrients, minerals, and vitamins in a tabular format. This structured output makes it easy for developers to parse this data and present it on the app's user interface, whether as a list, a chart, or a complete PDF health report.

Quick Actions

Pricing

FREE
Get Started with 100 requests
No Credit Card Required
View All Plans

Key Features

Real-time Processing
High Accuracy
Low Latency
Scalable Infrastructure