Looking up Items by Identifiers
To retrieve an item by an identifier which is provided by another service or database use the items id lookup operation. Below is an example of looking up an item by it's USDA NDB No.
curl -X GET 'https://api-beta.bite.ai/items/ids/?usda=11011'
The response will list one or more items which correspond to that foreign ID. The details for each listed items can be retrieved by calling item_read.
{"count": 1,"next": null,"previous": null,"results": [{"id": "85f74762-8d05-4176-975a-e7cdef10ef73","name": "Asparagus","brand": null,"details": "raw","categorizations": {},"nutrition_available": true,"nutrition_count": 13,"is_generic": true,"is_private": false}]}