Food API Documentation

Access comprehensive food nutrition data with our powerful REST API. Search, retrieve, and analyze nutritional information for thousands of foods.

Quick Start

Get started in minutes with our comprehensive food database API. Create an account, choose a plan, get your API key, and start making requests.

50,000+ Foods
Real-time Data
Easy Integration

Getting Started

1

Create Your Account

Sign up for a free account to access the Food API. No credit card required for the free tier.

Create Account
2

Choose Your Plan

Select a plan that fits your needs. Start with our free plan or upgrade for more requests and features.

Free

$0/month

  • • 20 requests/day
  • • 3 requests/minute
  • • Basic endpoints
  • • Community support

Basic

$29/month

  • • 1,000 requests/day
  • • 10 requests/minute
  • • All endpoints
  • • Email support

Core

$99/month

  • • 5,000 requests/day
  • • 30 requests/minute
  • • All features
  • • Priority support
View All Plans
3

Get Your API Key

After subscribing to a plan, generate your API key from the dashboard. This key authenticates your requests.

Your API Key
sk_live_1234567890abcdef
Go to Dashboard
4

Make Your First Request

Test your API key with a simple search request. Replace the API key with your actual key.

Search for "apple"
curl https://food-nutrition-database-cd7099c2be07.herokuapp.com/v1/search?q=apple \
  -H "X-API-Key: your_api_key_here"

Authentication

All API requests require authentication using your API key. Include it in the request headers.

Keep Your API Key Secure

Never expose your API key in client-side code or public repositories. Use environment variables or secure configuration management.

Rate Limits

Free Plan
3 req/min, 20/day
Basic Plan
10 req/min, 1,000/day
Core Plan
30 req/min, 5,000/day

Error Handling

400Bad Request
401Unauthorized
429Rate Limited
500Server Error