Skip to content

Latest commit

 

History

History
61 lines (36 loc) · 1.32 KB

modules.md

File metadata and controls

61 lines (36 loc) · 1.32 KB

fooddata-central-api / Exports

fooddata-central-api

Table of contents

Enumerations

Interfaces

Functions

Functions

findFood

findFood(params): Promise<SearchResult>

Returns a list of foods that matched search (query) keywords

Remarks

Search for foods using keywords. Results can be filtered by dataType and there are options for result page sizes or sorting.

See

FoodSearchCriteria

Throws

On bad input parameters

Parameters

Name Type
params FoodSearchCriteria

Returns

Promise<SearchResult>

List of foods that matched search terms

Defined in

src/api.ts:24