fdcnal-usda-fooddata-central-agent

Access USDA FoodData Central APIs for food items and nutrient data.

48|11|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/aiagenta2z/onekey-gateway --skill fdcnal-usda-fooddata-central-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fdcnal-usda-fooddata-central-agent
Source: https://github.com/aiagenta2z/onekey-gateway/tree/main/skills/fdcnal-usda-fooddata-central-agent
Command: npx skills add https://github.com/aiagenta2z/onekey-gateway --skill fdcnal-usda-fooddata-central-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node, python, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The FoodData Central API enables developers to programmatically access USDA nutrient data and food item details for nutrition apps, research workflows, and product catalogs.

Core Features & Use Cases

  • Retrieve multiple foods by FDC IDs with get_foods_multiple.
  • Fetch detailed information for a single item via get_food_by_id.
  • List foods or search by keywords using list_foods and search_foods.
  • Use with OneKey Gateway via the DEEPNLP_ONEKEY_ROUTER_ACCESS key to access provider APIs.

Quick Start

Set the OneKey Gateway access key and run the appropriate script to fetch data from USDA FoodData Central.

Frequently Asked Questions about fdcnal-usda-fooddata-central-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve USDA food nutrient data using an API?

You retrieve USDA food nutrient data by calling the FoodData Central APIs to search foods, list items, or fetch nutrient details by FDC ID. This provides programmatic access for nutrition apps and research workflows.

How do I search for specific food items in the FoodData Central database?

You search food items using the search_foods API with keyword queries, or use list_foods to browse available entries. Results return food details and nutrient lists suitable for product catalogs.

Can I fetch multiple food items by FDC ID in a single API request?

Yes, fetching multiple food items by FDC ID uses the get_foods_multiple API endpoint. You can also retrieve a single item's detailed information via get_food_by_id for targeted data retrieval.

Do I need an API key to access USDA FoodData Central data?

Yes, accessing USDA FoodData Central requires API_KEY authentication via the X-Api-Key header. The Skill reads the OneKey gateway key from the environment to authenticate provider API requests.

What's the best way to automate USDA nutrition data retrieval in Python?

Automating USDA nutrition data retrieval in Python uses the included run scripts to invoke the four supported APIs. This handles OneKey Gateway authentication and returns structured food item details and nutrient lists.