Foods

Retrieve a food

Reads one food. A common food comes with every form, so you can offer Raw or Boiled.

get/foods/{library}/{key}

Request

  • Base URL: https://app.splot.health/v1
  • URL: https://app.splot.health/v1/foods/{library}/{key}
  • Auth: HTTP bearer

Query parameters

versioninteger

The version a meal or recipe keeps. Leave out for the food as it is now.

Response

The food.

library'off' | 'splot' | 'mine' | 'composition' required

The library the food lives in.

keystring required

Its key in that library. Send library and key as food to log it.

versioninteger required

Foods change over time; meals and recipes keep the version they were saved with.

namestring required

The food's name.

brandstring nullable required

The brand, for packaged products.

barcodestring nullable required

The barcode, for packaged products.

Changes

No recorded changes to this operation across all 1 revision of this API.