{"uid":"cap_6DpUNmrfrvcqTTjrLqh5V","slug":"usda-fooddata-central-food-search-e25f6088","name":"USDA FoodData Central Food Search","description":"Pay-per-call company registry, government, legal and B2B data tools for AI agents, from official registers and public sources. Payment: x402, USDC on Base, Solana, Arc, Polygon, Arbitrum, Monad, World Chain, Optimism, Avalanche, Celo or Stellar, or RLUSD/XRP on the XRP Ledger. No signup, no API key; a failed call is not charged.","url":"https://api.companyrecords-api.workers.dev/api/gov/usda-fooddata-central?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["query"],"properties":{"limit":{"type":"string","description":"Foods to return, 1 to 10 (default 5)"},"query":{"type":"string","description":"Food name, 2 to 60 characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"foods":[{"fdcId":454004,"dataType":"Branded","brandOwner":"TREECRISP 2 GO","description":"APPLE","publishedDate":"2019-04-01"},{"fdcId":2117388,"dataType":"Branded","brandOwner":"Associated Wholesale Grocers, Inc.","description":"APPLE","publishedDate":"2021-10-28"}],"query":"apple","source":"https://api.nal.usda.gov/fdc/v1/foods/search","checkedAt":"2026-10-23T09:37:09.076Z","totalHits":25775}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dti8MEpJKNSR4mQxJQOdL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches USDA FoodData Central for food items by name, returning FDC ID, description, data type, brand owner, and publication date (no nutrient values).","exampleAgentPrompt":"Search the USDA FoodData Central database for 'cheddar cheese' and show me up to 5 results with their FDC IDs, data types, and brand owners.","exampleUseCases":[{"title":"Identify FDC ID for a branded food","prompt":"I need the USDA FDC ID for 'Greek yogurt' — can you search FoodData Central and give me the top 5 results with their brand owners and data types?"},{"title":"Verify food exists in USDA database","prompt":"Does USDA FoodData Central have any records for 'quinoa flour'? Search for it and tell me how many total hits there are and what data types come up."},{"title":"Find brand owner of packaged food","prompt":"Search USDA FoodData Central for 'almond milk' and give me the first 10 results so I can see which brands and companies are listed there."}],"resultDescription":"Returns a JSON object with a list of food items (each with fdcId, dataType, brandOwner, description, and publishedDate), the original query string, the source URL, the timestamp of the check, and totalHits indicating how many records exist in the database.","failureModes":["Query string shorter than 2 or longer than 60 characters returns a validation error","Limit outside 1-10 range causes an error","No matching foods found returns an empty foods array with totalHits of 0","USDA FoodData Central upstream API unavailable causes a service error","Network timeout from the upstream USDA API"],"whenToPreferThis":"Use this endpoint when you need to identify foods in the USDA FoodData Central database by name, retrieve FDC IDs, check data types (Branded, Foundation, SR Legacy), or find brand owner information. It is ideal for food catalog enrichment, compliance lookups, or resolving a food name to a canonical USDA identifier. Do not use this if you need nutrient values — this endpoint returns search metadata only, not nutritional content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:44:29.812Z","isFirstParty":false,"canonicalSlug":"usda-fooddata-central-food-search-e25f6088"}