Routes & Descriptions
Last updated
Last updated
Given a product code, such as 698241110109
from UPC/Barcode scanning, get the detailed information and nutrients of the corresponding food product.
Given a food items ID, such as 698241110109
get the detailed information and nutrients of the corresponding food product.
All items returned from our API come with a Reference Code. This can be used to retreive the same item later, and to store custom data if necessary.
This route allows text search against our entire database of foods, products, and recipes.
Simply URL Encode your search term to take care of special characters, and send the request! The default limit (max results returned) is 50. This is the recommended setting, but can be adjusted as needed.
This route remains to support backward compatibility. Reference Codes should be used instead for all new implementations.
labelId
If the selected result has a labelId, pass it as this parameter.
If the labelId is empty, pass an all 0's uuid:
00000000-0000-0000-0000-000000000000
type
All search results will have a type
field which will be one of synonym, recipe, or reference. Pass this value to the type parameter
resultId
all search results will have a resultId
. Pass this value to the resultId parameter
get food by product code
product code
OK
Optional brandname pertinent to this food entity.
Optional branded food information pertinent to this food entity.
Optional description pertinent to this food entity.
An API generated unique id for the food. required: true example: 1599761049537
LicenseCopy is the text of the license that was used to create this food entry.
Language translations
List of references to the raw data source(s), from which we did the migration/curation
QualityScore is string representing quality, and is one of "Low", "Medium", or "High".
Tags for additional metadata per food
Time at which the document was last updated. Set automatically by API. required: true read only: true
If there is no raw database from which we imported data, and thus origin
is empty, we should be able to specify a weblink or so
example: www.productstraderjoes.com
get food record by its corresponding food identifier
food id (ex: 1599690204479)
OK
Optional brandname pertinent to this food entity.
Optional branded food information pertinent to this food entity.
Optional description pertinent to this food entity.
An API generated unique id for the food. required: true example: 1599761049537
LicenseCopy is the text of the license that was used to create this food entry.
Language translations
List of references to the raw data source(s), from which we did the migration/curation
QualityScore is string representing quality, and is one of "Low", "Medium", or "High".
Tags for additional metadata per food
Time at which the document was last updated. Set automatically by API. required: true read only: true
If there is no raw database from which we imported data, and thus origin
is empty, we should be able to specify a weblink or so
example: www.productstraderjoes.com
given a search result refcode, retreive the full food information
the string of a base64 url encoded json str. returned with results as 'refCode' from this api. example decoded object: {\
OK
search for food (generic, branded or restaraunt) or recipes
OK
given a search result object, retreive the full food information
labelid from search result. use an all zeros uuid if unknown.
type from search result
resultid from search result
OK