i got a sample json response from rapidapi using endpoint 'get upc scan). i also have a sample response for the end point ‘get food search’ (see below)
i read the post of @digitaldiaryofmscbvq again - he’s doing a upc scan.
{42 items
"old_api_id":NULL
"item_id":"51c3d84097c3e6d8d3b54c95"
"item_name":"Chunky Soup, Classic Chicken Noodle"
"leg_loc_id":NULL
"brand_id":"51db37c1176fe9790a89907e"
"brand_name":"Campbell's"
"item_description":"Classic Chicken Noodle"
"updated_at":"2021-05-02T13:53:44.000Z"
"nf_ingredient_statement":"Water, Chicken Stock, Carrots, White Chicken Meat, Enriched Egg Noodles (Wheat Flour, Egg Whites, Eggs, Niacin, Ferrous Sulfate, Thiamine Mononitrate, Riboflavin, Folic Acid), Celery, Contains Less than 2% of: Chicken Fat, Modified Food Starch, Salt, Monosodium Glutamate, Sugar, Carrageenan, Potato Starch, Canola Oil, Spice, Beta Carotene for Color, Flavoring, Disodium Guanylate, Disodium Inosinate."
"nf_water_grams":NULL
"nf_calories":120
"nf_calories_from_fat":NULL
"nf_total_fat":3
"nf_saturated_fat":1
"nf_trans_fatty_acid":0
"nf_polyunsaturated_fat":NULL
"nf_monounsaturated_fat":NULL
"nf_cholesterol":30
"nf_sodium":790
"nf_total_carbohydrate":14
"nf_dietary_fiber":1
"nf_sugars":1
"nf_protein":9
"nf_vitamin_a_dv":NULL
"nf_vitamin_c_dv":NULL
"nf_calcium_dv":1.54
"nf_iron_dv":3.89
"nf_refuse_pct":NULL
"nf_servings_per_container":2
"nf_serving_size_qty":1
"nf_serving_size_unit":"cup"
"nf_serving_weight_grams":263
"allergen_contains_milk":NULL
"allergen_contains_eggs":NULL
"allergen_contains_fish":NULL
"allergen_contains_shellfish":NULL
"allergen_contains_tree_nuts":NULL
"allergen_contains_peanuts":NULL
"allergen_contains_wheat":NULL
"allergen_contains_soybeans":NULL
"allergen_contains_gluten":NULL
"usda_fields":NULL
}
response for get food search (for ‘vegetable burger’)
{
"total_hits": 18287,
"max_score": 11.912622,
"hits": [
{
"_index": "f762ef22-e660-434f-9071-a10ea6691c27",
"_type": "item",
"_id": "5659ccfb2b5c188a7dd39fb3",
"_score": 11.912622,
"fields": {
"item_id": "5659ccfb2b5c188a7dd39fb3",
"item_name": "Veggie Burger - 1 veggie burger on bun",
"brand_name": "Nutritionix",
"nf_calories": 364.75,
"nf_total_fat": 16.69,
"nf_serving_size_qty": 1,
"nf_serving_size_unit": "serving"
}
},
{
"_index": "f762ef22-e660-434f-9071-a10ea6691c27",
"_type": "item",
"_id": "59ae4bbab36fddff2587f91d",
"_score": 2.1756563,
"fields": {
"item_id": "59ae4bbab36fddff2587f91d",
"item_name": "Crispbread, Sesame",
"brand_name": "Burger",
"nf_calories": 340.59,
"nf_total_fat": 5.5,
"nf_serving_size_qty": 1,
"nf_serving_size_unit": "serving"
}
},
{
"_index": "f762ef22-e660-434f-9071-a10ea6691c27",
"_type": "item",
"_id": "5be29021da8402c04ae1d8d3",
"_score": 2.1134489,
"fields": {
"item_id": "5be29021da8402c04ae1d8d3",
"item_name": "Wholemeal Rye",
"brand_name": "Burger",
"nf_calories": 343.46,
"nf_total_fat": 1.6,
"nf_serving_size_qty": 1,
"nf_serving_size_unit": "serving"
}
},
{
"_index": "f762ef22-e660-434f-9071-a10ea6691c27",
"_type": "item",
"_id": "c64050870d534bd884c341f6",
"_score": 1.7825067,
"fields": {
"item_id": "c64050870d534bd884c341f6",
"item_name": "Vegetable Burger",
"brand_name": "Wetherspoon",
"nf_calories": 1130,
"nf_total_fat": 37,
"nf_serving_size_qty": 1,
"nf_serving_size_unit": "serving"
}
},
{
"_index": "f762ef22-e660-434f-9071-a10ea6691c27",
"_type": "item",
"_id": "5c6664ebb41c18575fcaf075",
"_score": 1.7697622,
"fields": {
"item_id": "5c6664ebb41c18575fcaf075",
"item_name": "Vegetable Burger",
"brand_name": "Tesco",
"nf_calories": 178.9,
"nf_total_fat": 5.9,
"nf_serving_size_qty": 1,
"nf_serving_size_unit": "serving"
}
},
{
"_index": "f762ef22-e660-434f-9071-a10ea6691c27",
"_type": "item",
"_id": "d3ea845258c0c9c523318dc4",
"_score": 1.695627,
"fields": {
"item_id": "d3ea845258c0c9c523318dc4",
"item_name": "Vegetable Burger",
"brand_name": "Montana's BBQ & Bar",
"nf_calories": 820,
"nf_total_fat": 50,
"nf_serving_size_qty": 1,
"nf_serving_size_unit": "serving"
}
},
{
"_index": "f762ef22-e660-434f-9071-a10ea6691c27",
"_type": "item",
"_id": "5a4dd23589a89c361749c5e6",
"_score": 1.5914009,
"fields": {
"item_id": "5a4dd23589a89c361749c5e6",
"item_name": "Country Vegetable Burger",
"brand_name": "Dragonfly",
"nf_calories": 667.34,
"nf_total_fat": 54,
"nf_serving_size_qty": 1,
"nf_serving_size_unit": "serving"
}
},
{
"_index": "f762ef22-e660-434f-9071-a10ea6691c27",
"_type": "item",
"_id": "c64050876fd666c9a0e63c92",
"_score": 1.5914009,
"fields": {
"item_id": "c64050876fd666c9a0e63c92",
"item_name": "Nf Vegetable Burger",
"brand_name": "Wetherspoon",
"nf_calories": 1130,
"nf_total_fat": 42,
"nf_serving_size_qty": 1,
"nf_serving_size_unit": "serving"
}
},
{
"_index": "f762ef22-e660-434f-9071-a10ea6691c27",
"_type": "item",
"_id": "57399314859124c814cec7fa",
"_score": 1.5764034,
"fields": {
"item_id": "57399314859124c814cec7fa",
"item_name": "Garden Vegetable Burger",
"brand_name": "Lightlife",
"nf_calories": 100,
"nf_total_fat": 3,
"nf_serving_size_qty": 1,
"nf_serving_size_unit": "serving"
}
},
{
"_index": "f762ef22-e660-434f-9071-a10ea6691c27",
"_type": "item",
"_id": "c6405087f6d61eeff013a373",
"_score": 1.5764034,
"fields": {
"item_id": "c6405087f6d61eeff013a373",
"item_name": "Kids Vegetable Burger",
"brand_name": "Wetherspoon",
"nf_calories": 530,
"nf_total_fat": 13,
"nf_serving_size_qty": 1,
"nf_serving_size_unit": "serving"
}
}
]
}