What it returns
Nutrition facts for 450,000+ branded grocery products plus USDA reference foods, from USDA FoodData Central. - **UPC lookup**: scan a barcode, get the product's nutrition label and ingredients. - **Search** by product name, brand or category; filter by calories, protein, sugars, sodium, fat, carbs and fiber; include or exclude ingredients (e.g. no corn syrup, no peanuts). - **Generic foods** ("apples, raw", "hummus") from the Foundation and SR Legacy reference sets.
`fdcId`, `source` (branded or generic), `description`, `brandOwner`, `brandName`, `upc`, `category`, `ingredients`, `servingSize`, `servingUnit`, `householdServing`, `packageWeight`, `per100` (calories, protein, fat, saturated and trans fat, cholesterol, carbs, fiber, sugars, added sugars, sodium, potassium, calcium, iron, vitamins C and D per 100 g/ml), `perServing` for branded products, and the USDA page `url`. Discontinued products are excluded, and each UPC appears once (its newest label).
Request
POST https://api.pushbuild.com/usda-food-nutrition/run with a JSON body. Send your key in the X-API-Key header.
| Field | Type | Description |
|---|---|---|
query | string | Food or product name words, e.g. greek yogurt, cheerios. |
upcs | list of strings | Look up packaged products by UPC/GTIN barcode (leading zeros optional). |
brands | list of strings | Brand or brand-owner name text, e.g. Kellogg, Chobani. |
categories | list of strings | Category text, e.g. Cereal, Snacks, Fruits. |
sources | list of strings | branded (packaged products) or generic (USDA reference foods like 'apples, raw'). Default both. |
ingredientsInclude | list of strings | Every listed ingredient must appear, e.g. oats. |
ingredientsExclude | list of strings | None of these may appear, e.g. corn syrup, peanut. |
maxCalories | integer | Upper limit on kcal per 100 g or ml. |
minProtein | integer | Lower limit on protein grams per 100 g or ml. |
maxSugars | integer | Upper limit on total sugars per 100 g or ml. |
maxSodium | integer | Upper limit on sodium mg per 100 g or ml. |
maxFat | integer | Upper limit on total fat per 100 g or ml. |
maxCarbs | integer | Upper limit on carbohydrates per 100 g or ml. |
minFiber | integer | Lower limit on fiber per 100 g or ml. |
sortBy | string: relevance, calories, protein, sugars, sodium, fiber, newest | Result order (nutrient sorts are per 100 g). Default: "relevance". |
maxItems | integer | Maximum items to return (1-500). Default: 100. |
Example
curl -X POST https://api.pushbuild.com/usda-food-nutrition/run \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "greek yogurt", "maxItems": 20}'
Response
{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}
Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.
Pricing
Pay only for results returned: $0.24 per 1,000 foods. No charge for errors or empty searches.
Related APIs
Bank of England API: Bank Rate, SONIA, Gilts & Mortgages API
Bank of England statistics from its official database: Bank Rate, SONIA, gilt yields, implied inflation, mortgage rates and approvals, M4 money, lending and sterling FX.
BLS Data API: Any Bureau of Labor Statistics Series API
Any US Bureau of Labor Statistics time series by id (CPI, payrolls by industry, unemployment, wages, PPI, JOLTS, import prices) plus state unemployment and labor force from plain state codes, with month-over-month and year-over-year changes..
Cboe Put/Call Ratios & VIX Futures Term Structure API
Daily Cboe options statistics: total, equity, index, SPX and VIX put/call ratios with call and put volume and open interest by product, plus the VIX futures curve with settlements, open interest and contango versus spot VIX..
CFPB Consumer Complaints: Banks, Lenders, Fintech API
Search 18 million+ official CFPB consumer complaints against banks, lenders, card issuers, debt collectors, credit bureaus and fintechs.
CFTC Commitments of Traders (COT) Reports API
Weekly CFTC Commitments of Traders positioning for every futures market: legacy, disaggregated (managed money, producers, swap dealers) and financial (leveraged funds, asset managers).
ClinicalTrials.gov API
Search 500,000+ clinical studies from ClinicalTrials.gov by condition, drug, sponsor, location, phase and status.
Tell us what you need built.
Questions about this API, higher volumes, or a data source you need that we don't cover yet.
hello@pushbuild.com