LaunchKit · 2026
Back to Skills

fatsecret

FatSecret nutrition API integration for food search, nutritional lookup, barcode scanning, recipe search, and food.

0
519 downloads
by @f-liva

Setup & Installation

openclaw skills install @f-liva/fatsecret

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install fatsecret

Version History

v1.1.0Feb 20, 2026 - Version note by skill developer:

OAuth fix: unified OAuth1 authentication for all operations. Removed broken OAuth2 client. All features now working via single OAuth1 flow.

What This Skill Does

Connects to the FatSecret API for food search, nutritional data lookup, barcode scanning, recipe search, and meal diary logging. Supports two authentication modes: OAuth2 for read-only food queries and OAuth1 for full diary access. Also includes an Open Food Facts client for European product coverage without authentication.

Combines read-only food search and authenticated diary logging in one skill, so you don't need separate tools for lookup versus tracking.

When to use it

  • Looking up calories and macros for a meal
  • Scanning a product barcode to get nutrition facts
  • Logging breakfast, lunch, and dinner entries to a FatSecret diary
  • Searching for recipes that match dietary goals
  • Checking micronutrient data for a specific food item

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: log 156 grams of cookies to my breakfast diary

AGENT
  1. 1Check authentication status via get_authentication_flow()
  2. 2If OAuth1 tokens are missing, prompt user to visit authorization URL and enter PIN
  3. 3Complete authentication with complete_authentication_flow(pin)
  4. 4Search for the food with search_food('cookies') to get food_id and serving_id
  5. 5Call log_food(food_id, serving_100g_id, 156, 'Breakfast', 'Cookies') to record the entry
OUTPUT

156g of cookies logged to the user's FatSecret breakfast diary with correct calorie count

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

FATSECRET_CONSUMER_KEY — FatSecret API Consumer Key from platform.fatsecret.comFATSECRET_CONSUMER_SECRET — FatSecret API Consumer Secret from platform.fatsecret.comFatSecret account (required for diary logging via OAuth1)