Open mozadeh opened 5 years ago
@mozadeh I've shared similar feedback with the FDC API team here. It might be worth sharing your thoughts w/ them as well. Not sure what priority or progress is being made on that though...
Multiple fdcId queries The NDB API food reports API (V2) has support for retrieving data based on multiple NDBno values (up to 25) with a single request to the API. Currently, it looks like this isn’t possible w/ the FDC API...
@hopkinschris I think this is a big gap. New releases of API should at least support features of previous versions otherwise many apps/dependencies will break
Yes currently, there is no migration path for the reports API where it accepts multiple ndbnos. Please add support to the new API to query by multiple food ids; or else keep the existing ones until the new API supports.
I've passed the suggestion to the FDC developers and principals. Hopefully it can be incorporated into an early 2020 API release.
I am looking at the Food Central APIs: https://fdc.nal.usda.gov/api-guide.html
If I want to make a request for multiple Food Detail endpoints in one API call, how can I do that? I could this with the previous USDA V2 APIs. I want to be able to pass an array of food IDs in one API call and get food Details for all of them in one response.