Get food macronutrients and portion

검색 엔드포인트가 반환한 (source, id) 쌍으로 식별되는 단일 식품의 100g당 다량 영양소와 1회 제공량을 가져옵니다. 다시 검색하지 않고 다이어리에 이미 저장된 식품을 다시 표시할 때 사용하세요. 이탈리아어만 지원: 다른 Accept-Language를 사용하면 406을 반환합니다.

GET
/foods/{source}/{id}/macronutrients
Foods
비용: 10 크레딧

응답

200
application/json
object

FoodMacronutrientsResult

단일 식품의 다량 영양소 및 1회 제공량

object

id

해당 카탈로그 내 식별자

integer<int64>

source

식품이 속한 카탈로그입니다. 'generic'은 Tuduu 식품 데이터베이스의 식품으로, 브랜드와 포장이 없고 100 g당 영양소가 표시되며 일반적으로 식단 기록 항목이 가리키는 식품입니다. 'packaged'는 Tuduu 마스터 카탈로그의 제품으로, 브랜드와 포장 형식이 있으며 라벨에 표시된 영양소가 포함됩니다. 두 카탈로그는 식별자 공간이 서로 독립적이므로 식품은 id만이 아니라 (source, id) 쌍으로 지정합니다

string
"generic""packaged"

portion?

object

All of

변형 1

식품 1회 제공량. 중량과 라벨 설명을 모두 알 수 없는 경우 Null입니다

object

grams?

그램 단위의 1회 제공량 중량. 알 수 없거나 라벨에 중량 없이 제공량이 설명된 경우('1 jar') Null입니다. 포장 크기에서 추론하지 않습니다

number<double> | null

label?

라벨에 인쇄된 그대로의 1회 제공량('30 g', '1 jar'). 라벨이 없는 일반 식품에서는 Null입니다

string | null

isDeclared

Grams가 숫자 필드에서 가져온 경우 true이고, 자유 형식 텍스트 라벨에서 추출된 경우 false입니다. 계산에 Grams를 사용하기 전에 확인하세요. 여기서 false는 해당 숫자가 숫자 값으로 선언된 값이 아니라 라벨을 읽어 얻은 값임을 의미합니다

boolean

macronutrients

식품 100 g당 다량 영양소

object

kcal?

킬로칼로리

number<double> | null

fat?

총 지방(g)

number<double> | null

saturatedFat?

포화 지방(g)

number<double> | null

carbohydrates?

탄수화물(g)

number<double> | null

sugars?

당류(g)

number<double> | null

protein?

단백질(g)

number<double> | null

salt?

소금(g)

number<double> | null

fiber?

식이섬유(g)

number<double> | null
401
application/json
object

인증되지 않음

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
403
application/json
object

접근 금지됨

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
404
application/json
object

찾을 수 없음

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
406
application/json
object

허용되지 않음

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
422
application/json
object

처리할 수 없는 엔터티

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
429
application/json
object

요청이 너무 많음(APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
500
application/json
object

내부 서버 오류

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
502
application/json
object

잘못된 게이트웨이(APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
504
application/json
object

게이트웨이 시간 초과(APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string