# Open Food Facts API

> Open Food Facts API on Apizie: 2 endpoints (Product, Search) returned as clean JSON through one API key. 2 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/food:openfoodfacts/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `food:openfoodfacts`
- Category: Food & Drink
- Status: live
- Source: https://openfoodfacts.org
- Page: https://zieapi.vercel.app/api/food/openfoodfacts
- OpenAPI: https://zieapi.vercel.app/api/food/openfoodfacts/openapi.json

Crowd-sourced packaged-food database: ingredients, allergens, Nutri-Score and nutrition facts by barcode.

## Endpoints

### Product
`GET https://zieapi.vercel.app/v1/food:openfoodfacts/product`

| Parameter | Type | Required | Description |
|---|---|---|---|
| barcode | string | yes |  |

### Search
`GET https://zieapi.vercel.app/v1/food:openfoodfacts/search`

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes |  |
| page | integer | no | 1-based page number |
| count | integer | no | Items per page |

## Example
```
curl "https://zieapi.vercel.app/v1/food:openfoodfacts/product" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the Open Food Facts API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/food:openfoodfacts/product with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Open Food Facts API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the Open Food Facts API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key food:openfoodfacts.

### What is the status of the Open Food Facts API?
Live: works with just an Apizie key
