Skip to content

Weight Watchers Points API

Calculate SmartPoints and return practical optimization and swap suggestions.

Endpoint

  • GET /api/v1/weight-watchers-points
  • POST /api/v1/weight-watchers-points/post

Parameters

Name Type Required In Description
calories number (>0) Yes Query/Body Calories per serving/meal.
sugar number No Query/Body Sugar grams (default 0).
protein number No Query/Body Protein grams (default 0).
saturated_fat number No Query/Body Saturated fat grams (default 0).
lang string No Query Response language (en,es,de,fr,pt,ja,hi,ar).

Why Use This Endpoint

  • Offer SmartPoints-like scoring in nutrition products.
  • Add quality and optimization guidance beyond point total.
  • Useful for meal recommendation and behavior nudging.

Get Started

Request Example

curl -X GET "https://api.hefitapi.com/api/v1/weight-watchers-points?calories=420&sugar=16&protein=24&saturated_fat=6&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/weight-watchers-points/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"calories":510,"sugar":24,"protein":18,"saturated_fat":10}'

Response Example

Info

The response example below is for demonstration purposes only. Make a live request to this endpoint to receive the full, real-time, and potentially richer JSON structure.

{
  "calories": 420.0,
  "sugar_g": 16.0,
  "protein_g": 24.0,
  "saturated_fat_g": 6.0,
  "weight_watchers_smart_points": 12.03,
  "points_band": "moderate",
  "points_band_label": "Moderate",
  "meal_guidance": ["Moderate-point meal; balance with lower-point choices"],
  "optimization_actions": ["Increase protein density and reduce added sugar"],
  "swap_suggestions": ["Swap sugary drinks for zero-calorie alternatives"],
  "risk_flags": [],
  "note": "Freestyle-style point estimate for directional guidance.",
  "_enterprise": {"client": "Acme Health", "plan": "pro", "request_id": "af944df790007b9c", "quota": 120, "usage_tracking": true},
  "_api_metadata_": {"endpoint_name": "weight_watchers_points", "response_language": "en"}
}

Product Positioning

Useful for diet support products, food logging apps, and coaching nutrition features.

Note

calories is mandatory and must be greater than zero.