USDA FNDDS Recipe Ingredient Composition
Pricing
from $13.40 / 1,000 ingredient records
USDA FNDDS Recipe Ingredient Composition
Structured recipe composition records from USDA FoodData Central — which input foods compose each survey (FNDDS) or recipe (SR-legacy) food — read directly from the official FDC full-CSV dump (input_food.csv).
Pricing
from $13.40 / 1,000 ingredient records
Rating
0.0
(0)
Developer
NexGen Watch
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
17 hours ago
Last modified
Categories
Share
🔔 USDA FNDDS Recipe Ingredient Composition
Structured recipe composition records from USDA FoodData Central — which input foods compose each survey
(FNDDS) or recipe (SR-legacy) food — read directly from the official FDC full-CSV dump (input_food.csv),
streamed out of the ~481 MB archive over HTTP Range.
Output is one ingredient_record row per result; billing is pay-per-event, the value event being one ingredient record (a $0.02 start fee per run, then $0.02 per ingredient record). Source: fdc.nal.usda.gov.
No login, no API key and no CAPTCHA solving are involved: the source is read logged-out with an identified contact User-Agent.
📊 Sample Output
Real rows from run UYpurgy4YbIabybb9 on build 0.1.5 (2026-09-19), the same input as the Quick start below — every value is as the source published it (emails masked, long text shortened):
| id | fdc_id | seq_num | amount | release_date | release_checksum |
|---|---|---|---|---|---|
| 124268 | 2705384 | 1 | 40 | 2026-04-30 | 6a860d85-1cb35fb7 |
| 124271 | 2705384 | 4 | 8 | 2026-04-30 | 6a860d85-1cb35fb7 |
| 124270 | 2705384 | 3 | 14 | 2026-04-30 | 6a860d85-1cb35fb7 |
| 124269 | 2705384 | 2 | 38 | 2026-04-30 | 6a860d85-1cb35fb7 |
The run finished with the status message: NORMAL: 4 unique rows (0 duplicates collapsed) from 2026-04-30. billable=4
✅ What you get
Each row is flat JSON with these fields (from the dataset schema and the sample run; a field the source does not publish for a given row is null):
record_type(string/null) — e.g.ingredient_recordid(string/null) — e.g.124268fdc_id(string/null) — e.g.2705384fdc_id_of_input_food(string/null) — null in every sample rowseq_num(string/null) — e.g.1amount(string/null) — e.g.40sr_code(string/null) — e.g.1077sr_description(string/null) — e.g.Milk, whole, 3.25% milkfat, with added vitamin Dunit(string/null) — e.g.GMportion_code(string/null) — e.g.0portion_description(string/null) — e.g.NONEgram_weight(string/null) — e.g.40retention_code(string/null) — e.g.0source_url(string/null) — e.g.https://fdc.nal.usda.gov/food-details/2705384/nutrientssource(string/null) — e.g.fndds-recipe-ingredient-compositionrelease_date(string/null) — e.g.2026-04-30observed_at(string/null) — e.g.2026-09-19T02:15:53Zrelease_checksum(string/null) — e.g.6a860d85-1cb35fb7license(string/null) — e.g.USDA FoodData Central — CC0 1.0 (public domain dedication). Cite: U.S. Departmenattribution(string/null) — e.g.USDA Agricultural Research Service — FoodData Central (https://fdc.nal.usda.gov)terminal(string/null) — null in every sample rowscope(string/null) — null in every sample rownote(string/null) — null in every sample rowreported_total(string/integer/null) — null in every sample rowraw_seen(string/integer/null) — null in every sample rowduplicates(string/integer/null) — null in every sample rowunique_found(string/integer/null) — null in every sample rowdelivered(string/integer/null) — null in every sample row
✅ What you get
record_type(string/null) — e.g.ingredient_recordid(string/null) — e.g.124268fdc_id(string/null) — e.g.2705384fdc_id_of_input_food(string/null) — null in every sample rowseq_num(string/null) — e.g.1amount(string/null) — e.g.40sr_code(string/null) — e.g.1077sr_description(string/null) — e.g.Milk, whole, 3.25% milkfat, with added vitamin Dunit(string/null) — e.g.GMportion_code(string/null) — e.g.0portion_description(string/null) — e.g.NONEgram_weight(string/null) — e.g.40retention_code(string/null) — e.g.0source_url(string/null) — e.g.https://fdc.nal.usda.gov/food-details/2705384/nutrientssource(string/null) — e.g.fndds-recipe-ingredient-compositionrelease_date(string/null) — e.g.2026-04-30observed_at(string/null) — e.g.2026-09-19T01:34:58Zrelease_checksum(string/null) — e.g.6a860d85-1cb35fb7license(string/null) — e.g.USDA FoodData Central — CC0 1.0 (public domain dedication). Cite: U.S. Departmenattribution(string/null) — e.g.USDA Agricultural Research Service — FoodData Central (https://fdc.nal.usda.gov)terminal(string/null) — null in every sample rowscope(string/null) — null in every sample rownote(string/null) — null in every sample rowreported_total(string/integer/null) — null in every sample rowraw_seen(string/integer/null) — null in every sample rowduplicates(string/integer/null) — null in every sample rowunique_found(string/integer/null) — null in every sample rowdelivered(string/integer/null) — null in every sample row
What you get
One ingredient_record per input_food.csv row, carried source-native and verbatim:
fdc_id— the parent survey/recipe food;fdc_id_of_input_food— the input food linkseq_num— the sequence of the ingredient within the recipesr_code,sr_description— the legacy SR ingredientamount,unit,gram_weight,portion_code,portion_description— the source amountsretention_code— the retention factorid,source_url,release_date,release_checksum,license,attribution
⚙️ Sample inputs
1. Quick start — the Store example (this is what the sample above came from)
{"fdcIds": ["2705384"],"maxRecords": 50,"maxScanRows": 60000}
The sample run charged exactly: 1 × $0.02 apify-actor-start + 4 × $0.02 ingredient_record = $0.10 on the Free tier — every delivered row was billed.
2. A smaller, narrowed run
{"fdcIds": ["2705384"],"maxRecords": 5,"maxScanRows": 60000}
Caps the run at 5 rows — about $0.12 on the Free tier ($0.02 start + 5 × $0.02).
3. A full-size run
{"fdcIds": ["2705384"],"maxRecords": 2500,"maxScanRows": 60000}
Up to 2500 rows (the schema default for maxRecords) — about $50.02 on the Free tier ($0.02 start + 2500 × $0.02) if the source has that many.
4. A filtered run
{"fdcIds": ["2705384"],"maxRecords": 50,"maxScanRows": 60000,"fieldMatch": {"unit": "GM"}}
Keeps only rows whose unit contains GM (a value from the sample run above), matched case-insensitively after the source is read and before the maxRecords cap, so the cap counts matches and only delivered matches are billed. searchText does the same across every column. Zero matches end the run as EMPTY_SELECTION with no row charged — if the source has moved on since that sample run, pick a value you see in your own first run. The source is still read in full — this narrows what you receive and pay for, not what the source serves.
🧾 JSON sample record
One real record from run UYpurgy4YbIabybb9, exactly as it lands in the dataset (emails masked, long text shortened):
{"record_type": "ingredient_record","id": "124268","fdc_id": "2705384","fdc_id_of_input_food": null,"seq_num": "1","amount": "40","sr_code": "1077","sr_description": "Milk, whole, 3.25% milkfat, with added vitamin D","unit": "GM","portion_code": "0","portion_description": "NONE","gram_weight": "40","retention_code": "0","source_url": "https://fdc.nal.usda.gov/food-details/2705384/nutrients","source": "fndds-recipe-ingredient-composition","release_date": "2026-04-30","observed_at": "2026-09-19T02:15:53Z","release_checksum": "6a860d85-1cb35fb7","license": "USDA FoodData Central — CC0 1.0 (public domain dedication). Cite: U.S. Department of Agriculture, Agricultural Research Service, FoodData Central.","attribution": "USDA Agricultural Research Service — FoodData Central (https://fdc.nal.usda.gov)"}
🔧 How it works
Source. The actor reads fdc.nal.usda.gov — endpoints: https://fdc.nal.usda.gov, https://fdc.nal.usda.gov/fdc-datasets/FoodData_Central_csv_. Public pages and feeds only; nothing behind a login.
Transport. Plain HTTPS from the Apify platform, no proxy. robots.txt is read first and a disallowed path is never fetched. Every request carries an identified contact User-Agent. Pacing: CRAWL_DELAY=0.0.
Terminal states. A run ends NORMAL, CAPPED (your cap was reached), PARTIAL (something was withheld and the message says what), GENUINE_EMPTY (the source was read and truly had nothing in scope) or BLOCKED (the source refused or changed shape — the run FAILS loud and bills nothing). A zero-row run is never reported as a silent success.
Charging. Each ingredient record is charged at the moment it is pushed (ingredient_record); a row that fails to charge is not delivered, so the dataset count always equals the charged count.
🔧 How it works
How this differs from neighbouring FDC actors
This actor covers recipe composition (the input_food.csv links: parent food → input food, sequence,
amounts, retention). It is not the per-food attribute index (food_attribute.csv), not FNDDS
nutrient values (fndds_ingredient_nutrient_value.csv), and not analytical sub-sample results. Distinct
member, distinct records, no overlap.
Filters
Supply at least one of fdcIds, inputFdcIds, srCodes, or descriptionContains — the member is never
emitted in full. maxRecords caps delivery (one charge per delivered record, hard cap 5000); maxScanRows
bounds the scan so every run is finite.
Honesty
Sequence, retention factors, and source amounts are carried verbatim. No recipe instruction is manufactured and no health claim is made. The survey cycle is defined upstream by the parent survey food's dataset — it is not invented here; only the filed composition fields are emitted. A schema canary fails loud on header drift.
Robots & licence
fdc.nal.usda.gov/robots.txt is User-agent: * / Disallow: (nothing disallowed). USDA FoodData Central —
CC0 1.0 (public domain dedication). Cite: U.S. Department of Agriculture, Agricultural Research Service,
FoodData Central (https://fdc.nal.usda.gov).
What is not done. No login, no cookie or CAPTCHA bypass, no private or personal-account data, no browser automation.
💰 Pricing example
| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
Actor Start (apify-actor-start) | $0.02 | $0.02 | $0.02 | $0.02 |
Ingredient record (ingredient_record) | $0.02 | $0.018 | $0.016 | $0.0134 |
Worked at the live Free-tier price:
- 4 ingredient records: $0.02 start + 4 × $0.02 = $0.10
- 25 ingredient records: $0.02 start + 25 × $0.02 = $0.52
- 2500 ingredient records: $0.02 start + 2500 × $0.02 = $50.02
A run that delivers zero rows charges the $0.02 start fee only. A BLOCKED run (source refused) fails loud and charges no value event. The start fee is charged once per GB of run memory; the default run memory is 4096 MB.
Yield on the sample run: NORMAL: 4 unique rows (0 duplicates collapsed) from 2026-04-30. billable=4. maxRecords is a hard ceiling on what is delivered and billed, never a target.
⚖️ Legal & ToS
This actor reads public, logged-out pages and feeds published by fdc.nal.usda.gov. It collects only what the source publishes to any visitor, keeps to the source's robots rules (checked on every run), identifies itself with a contact User-Agent, and does not access accounts, private data or anything behind authentication. Use the output in line with the source's terms and your local law; the intended use is B2B research and monitoring.
❓ FAQ
Q: Do I need an API key or a login?
A: No. The source (fdc.nal.usda.gov) is read logged-out; the input schema has no key field and the actor carries no secrets.
Q: Why did my run return 0 rows?
A: Read the run's status message. GENUINE_EMPTY means the source was read and had nothing in scope for your input; BLOCKED means the source refused and the run failed without billing a value event — retry later or narrow the input. A zero-row run bills the start fee only.
Q: How many rows can one run return?
A: Up to maxRecords (default 2500). Raise the cap for a bigger run; you pay per delivered row.
Q: How fresh is the data?
A: Every run reads the source live at run time; nothing is cached between runs. Put it on a schedule for a continuous feed.
Q: What formats can I export?
A: The dataset downloads as JSON, CSV, Excel, XML or RSS from the run's Dataset tab or the Apify API, and any run can push to a webhook or integration.
Q: How is this different from the other NexGen Watch actors actors?
A: Same output shape and billing model; this one covers fdc.nal.usda.gov. The siblings under Related Actors cover the other sources or slices — run several on one schedule for a combined feed.
Q: Are there rate limits?
A: The actor paces itself against the source (CRAWL_DELAY=0.0) and honours its robots rules; there is no per-buyer limit beyond your Apify plan's concurrency.
🆘 Troubleshooting
- Run FAILED with BLOCKED → the source refused the request or changed its page shape → nothing was billed beyond the start fee; retry after a while, and if it persists open an Issue with the run id.
- Status says CAPPED → your cap (
maxRecords) was reached → raise it for a bigger run. - Input validation error on start → a field is outside the schema's allowed values → start from the Quick start block and change one field at a time.
- Run TIMED-OUT → a very wide request on a slow day → raise the run timeout in Run options or narrow the input; what was delivered before the timeout is still in the dataset.
🔗 Related Actors
- USDA FDC Analytical Sub-Sample Results — Structured laboratory sub-sample measurement records from USDA FoodData Central, read directly from the official FDC full-CSV data dump (sub_sample_r…
- USDA FDC Calorie Conversion Factors — Delivers the published USDA FoodData Central calorie conversion factors — one calorie_factor_record per row of the food_calorie_conversion_factor.c…
- USDA FDC Sample Provenance Graph — The provenance / traceability graph behind USDA FoodData Central foods — how a sample food links to its sub-samples and to the market acquisition it…
- USDA FNDDS Survey Food Master — Structured FNDDS (What We Eat In America) survey food master records from USDA FoodData Central, read directly from the official FDC full-CSV dump (s…
- FRA Railroad Company Master (operating-railroad identity) — Structured operating-railroad company identifiers and attributes from the Federal Railroad Administration (FRA), read directly from the official FRA…
- FRA Railroad Equipment Accidents (Form 6180.54) — Structured rail equipment accident / incident records from the Federal Railroad Administration (FRA) — Form 6180.54 — read directly from the official…
- 🏢 About NexGenData — NexGen Watch is NexGenData's fleet of more than 300 public data actors built on official sources, pay-per-result. Browse the catalog at apify.com/nexgenwatch.
⭐ Found this useful?
If this actor saved you a manual check, a quick review on the Apify Store helps other teams find it. Feature request or a source that changed? Open it from the Issues tab — every one is read.
