API สำหรับนักพัฒนา

เชื่อมต่อกับ Engine การค้นหาอาหารที่ฉลาดที่สุด

ภาพรวม

EAT RAI DEE API ช่วยให้คุณเข้าถึงฐานข้อมูลอาหาร 100+ เมนูพร้อมข้อมูลโภชนาการที่แม่นยำ

GET/api/recommend

พารามิเตอร์

type

Chicken, Pork, Beef, Seafood, Egg

goal

muscle_gain, weight_loss

limit

Maximum items to return (default: all)

random

Return a single random item (true/false)

Example Fetch
fetch("/api/recommend?type=Chicken&random=true")
  .then(res => res.json())
  .then(data => console.log(data));