Developer Platform

Build the future of food

Access powerful APIs to tackle food waste, personalise nutrition, and build sustainable food systems. Join developers creating impact at scale.

Get StartedExplore APIs
48+
API Endpoints
99.9%
Uptime SLA
100B
FXCOIN Supply
quickstart.js
// Initialize FoodX SDK
import FoodX from '@foodx/sdk';

const client = new FoodX({
  apiKey: process.env.FOODX_API_KEY
});

// Scan fridge with AI
const result = await client.scan.ingredients({
  image: imageData,
  maxIngredients: 25
});

// Get personalised recipes
const recipes = await client.recipes.search({
  ingredients: result.ingredients,
  preferences: {
    dietary: ['vegetarian'],
    maxTime: 30
  }
});

// Reward with FoodXCOIN
await client.coin.reward({
  userId: 'user123',
  amount: 50,
  action: 'food_waste_prevention'
});

console.log(`Found ${recipes.length} recipes!`);
๐Ÿ”

Authentication

Secure API key management

โšก

Rate Limits

10,000 requests/day free tier

๐Ÿ””

Webhooks

Real-time event notifications

๐Ÿ“ฆ

SDKs

Python, Node.js, Go, Ruby

API Categories

Comprehensive APIs for every aspect of food technology

๐Ÿ“ธ

Food Scanning

Scan ingredients with AI and retrieve from the decentralised database

๐Ÿ‘จโ€๐Ÿณ

Recipes

Search recipes by ingredients and dietary needs, or add new recipes to the network

๐Ÿฅ

Health & Medical

Get personalised nutrition insights and add anonymised health data to research

๐Ÿ’Š

Supplements

Search supplements by category and add reviews to the decentralised database

๐Ÿฑ

Surplus Food

Discover surplus food near you and add listings to the waste-prevention network

๐ŸŒ

Environmental Impact

Analyse products for carbon footprint and add environmental data to the blockchain

๐Ÿช™

FoodXCOIN

Track supply chain transactions and earn rewards for building transparency

๐Ÿ‘ฅ

Social & Community

Browse local food communities and create posts to share decentralised knowledge

API Explorer

Interactive API documentation with live code examples

๐Ÿ“ธ

Food Scanning

Scan ingredients with AI and retrieve from the decentralised database

POST๐Ÿ” Auth

Scan Ingredients

/api/v1/scan/ingredients

Upload a photo to detect ingredients with AI vision

โšก 10 requests/minute

Official SDKs

Get started quickly with our official client libraries

โฌข

Node.js SDK

TypeScript supportPromise-based APIAutomatic retriesBuilt-in caching

Installation

npm install @foodx/sdk

Quick Start

quickstart.js
import FoodX from '@foodx/sdk';

const client = new FoodX({
  apiKey: process.env.FOODX_API_KEY
});

// Scan ingredients from image
const scan = await client.scan.ingredients({
  image: imageBuffer,
  maxIngredients: 25
});

// Search recipes
const recipes = await client.recipes.search({
  ingredients: ['tomato', 'pasta'],
  page: 1
});

// Get supplements
const supplements = await client.supplements.search({
  query: 'vitamin D'
});

console.log(scan.ingredients);
๐Ÿ“š Documentationโญ GitHub๐Ÿ“ฆ Package

SDK Features

๐Ÿ”
Authentication
Built-in API key management
โšก
Rate Limiting
Automatic rate limit handling
๐Ÿ”„
Retries
Configurable retry logic
๐Ÿ’พ
Caching
Optional response caching
๐Ÿ“
TypeScript
Full type definitions
๐Ÿงช
Testing
Mock helpers included
๐Ÿ“Š
Logging
Debug mode support
๐ŸŒ
Proxy
Custom HTTP client support

Integrate FoodXCOIN

Reward users for positive food actions. 100B total supply on Solana blockchain with instant, low-cost transactions.

// Reward users for food waste reduction
await client.coin.reward({
  user_id: "user123",
  amount: 50,
  action: "food_waste_prevention",
  metadata: {
    items_saved: 5,
    carbon_saved_kg: 2.3
  }
});

// Check user balance
const balance = await client.coin.getBalance("user123");
console.log(`User has ${balance} FXCOIN`);
Learn About FoodXCOINView Token API

Documentation

Quick Start Guide

Get started with FoodX API in minutes

1. Get Your API Key

Request your API key by emailing developers@foodx.com

2. Install SDK (Optional)

npm install @foodx/sdk

3. Make Your First Request

Try scanning ingredients from an image:

curl -X POST https://api.foodx.world/api/v1/scan/ingredients \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "image=@fridge.jpg"

Community & Support

๐Ÿ“ง

Email Support

Get help from our team

developers@foodx.com
๐Ÿ’ฌ

Discord Community

Join other developers

Coming Soon
๐Ÿ“š

Status Page

API uptime and incidents

Coming Soon

Ready to Build?

Join developers creating the future of sustainable food technology

Request API Access