Chakudya Nutrition Registry v1.74.0

List foods

GET /foods · API key required

With `search`, rows in the "Baby foods" category are left out (they sort ahead of ordinary foods, e.g. "Baby food (jar), banana" before "Banana"). They come back if the query has a baby word (baby, infant, toddler, weaning, nestum, cerelac, formula, puree), if `category=Baby foods`, if `include_baby_foods=true`, or if nothing else matches. To search only baby foods use `GET /foods/baby-foods`.

Parameters

  • search (query)
  • category (query)
  • include_baby_foods (query) - Set to true to include "Baby foods" rows in a name search.
  • limit (query)
  • offset (query)
  • cursor (query) - Switches to keyset pagination when present (even empty). See README § Pagination. Response then has has_more/next_cursor instead of count/offset, and is always ordered by id.asc.

Responses

  • 200

Back to the API reference