Starter plan

Bulk Food Lookup

Fetch up to 100 foods in a single request. Send an array of IDs, get the full records back — ideal for hydrating a meal plan, a shopping cart, or a day's food log without a hundred round-trips.

200 OK
POST /v1/foods/bulk
curl -X POST -H "X-API-Key: food_•••" \
  -H "Content-Type: application/json" \
  -d '{"ids":["62ea12b8...","2fc13a3b..."]}' \
  "https://foodbase.dev/v1/foods/bulk"

{
  "data": [
    { "id": "62ea12b8...", "name_default": "Coca-Cola", "brand": "Coca-Cola" },
    { "id": "2fc13a3b...", "name_default": "Nutella", "brand": "Ferrero" }
  ]
}

Prefer to click around? Try the product explorer or the photo playground.

What you get back

ids[]

Send 1–100 food IDs in the request body.

data[]

Full food records, one per matched ID.

Order-preserving

Results come back in the order you requested.

Missing IDs

Unknown IDs are simply omitted — no error for the batch.

Available on the Starter plan and above. See plans →

Build with it

Meal plans & food logs

Resolve every item in a day's plan with one call.

Cart hydration

Turn a list of saved food IDs into full records efficiently.

Sync jobs

Refresh many cached foods in batches on a schedule.

Start building with the Bulk Food Lookup API

Free to start. No credit card required.

Get API key Go to Dashboard