Skip to content
API Builders
OF

Food & DrinkPublic API

Open Food Facts

Food Products Database

Visit documentationSnapshot 2026-10-26

Before you call it

What this listing means in practice

01

No key to obtain

You can make a request immediately. Be considerate with volume anyway: open APIs often publish informal rate limits, and some will block clients that hammer them.

02

HTTPS supported

Requests can be made over TLS. Use HTTPS endpoints in production so browsers do not block the call as mixed content.

03

CORS not confirmed

If CORS is not enabled, call this API from a server, serverless function or build step and proxy the response to your frontend.

Documentationexternal

Start with the provider's own documentation. It is the only place where endpoints, rate limits, pricing and terms are authoritative.

https://world.openfoodfacts.org/data

No API calls are proxied by this directory. Links go directly to the provider.

API listings describe access requirements, not endorsements. Review each provider's privacy policy, terms and rate limits.

Overview

About Open Food Facts

Open Food Facts needs no API key. That puts it among 17 of the 36 food & drink APIs we list that you can try without signing up.

It supports HTTPS but CORS is not confirmed, so plan to call it from a server or serverless function. That is true for 21 of the 36 APIs in this category.

Documentation is on world.openfoodfacts.org.

Food & Drink APIs in general

Food APIs return recipes, nutrition facts, ingredients, barcodes, restaurants and drinks. Open Food Facts-style databases are crowd-sourced and free.

What people build with them

  • Recipe search by ingredient
  • Calorie and macro tracking
  • Scanning product barcodes

Watch out for

Crowd-sourced nutrition data can be wrong. Do not present it as medical or allergy advice.

First request

Calling Open Food Facts

Run this on a server or in a serverless function, because CORS is not confirmed.

JavaScript// Replace the path with an endpoint from the Open Food Facts docs
const res = await fetch("https://world.openfoodfacts.org/data/<endpoint>");
if (!res.ok) throw new Error(`Open Food Facts returned ${res.status}`);
const data = await res.json();

Compare

Open Food Facts vs similar APIs

APIAuthHTTPSCORS
Open Food FactsNo keyYesUnknown
RacionNo keyYesYes
Open Brewery DBNo keyYesYes
IndiaRestrosNo keyYesYes
FoodishNo keyYesYes
FiberUp Fiber DatabaseNo keyYesYes

FAQ

Common questions about Open Food Facts

Does Open Food Facts need an API key?

No. Open Food Facts is listed with no authentication, so you can send a request without registering.

Can I call Open Food Facts from the browser?

CORS is not confirmed, so the browser may block direct calls. Call it from your server or a serverless function and pass the result to your frontend.

Is Open Food Facts free?

No key is required, which usually means free access, but providers can still limit volume. Check Open Food Facts's docs for rate limits and fair-use terms.

What are some alternatives to Open Food Facts?

Other food & drink APIs in the directory include Racion (no key), Open Brewery DB (no key), IndiaRestros (no key). The comparison table on this page shows how they differ on authentication, HTTPS and CORS.

Next step

Keep looking until the constraints fit.

Filter the directory by authentication, HTTPS and CORS, or start from a category and work backwards.