Food & Drink APIs
Free recipe, cocktail and food product APIs with tested curl examples: meal recipes with ingredients, drink recipes and barcode nutrition lookups. Key-free tiers.
10 tested APIs with full docs · 10 need no key · 24 more listed
Tested, with full documentation
We called each of these before publishing. Every page carries a working curl command, the real JSON response it returned, parameters and common errors.
BaconMockup
Free placeholder photo service with no key: put width and height in the path and get a real bacon photograph back at exactly that size. Tested example included.
Coffee (alexflipnote)
Free random coffee photo API with no key: one GET returns a JSON object holding a direct URL to a hosted coffee image. Tested example included.
Sample APIs Coffee
Free coffee API with no key: hot and iced coffee drinks with ingredients, descriptions and images. Small, clean dataset ideal for tutorials. Tested.
Fruityvice
Free fruit API with no key: nutritional data, family, genus and order for dozens of fruits. Simple flat JSON, ideal for beginners. Tested curl example.
Open Food Facts
Free food product API with no key: look up nutrition, ingredients, allergens, Nutri-Score and eco-score by barcode. 3M+ products. Tested curl example.
Open Prices (Open Food Facts)
Free grocery price API with no key for reads: crowdsourced product prices tied to a barcode, a shop location from OpenStreetMap and a date. Tested example included.
Status Pizza
Free HTTP status code API with no key: every status code mapped to a pizza photograph, plus JSON giving the code's title and category. Tested example included.
TheCocktailDB
Free cocktail recipe API with no signup: search drinks by name, ingredient or category, with instructions, measures, glass type and photos. Tested example.
TheMealDB
Free recipe API with no signup: search meals by name, ingredient, category or area, with full instructions, ingredient lists and photos. Tested example.
WhiskyHunter
Free WhiskyHunter API with no key: distillery information and whisky auction price statistics from international auction houses. Niche but tested and open.
Choosing between these Food & Drink APIs
Food APIs split into two useful groups: recipe databases you can search by name, ingredient or category, and product databases you can query by barcode to get nutrition facts.
TheMealDB and TheCocktailDB both expose the developer test key `1` on their free tier, which is what the verified examples use. Open Food Facts is fully open data with no key at all and covers millions of scanned products worldwide.
More Food & Drink APIs in the directory
24 further APIs in this category, of which 10 need no API key. These are catalogued from the public-API lists and link straight to each provider's own documentation — we have not tested them yet, so treat the auth and CORS flags as the upstream list's claim rather than ours. They are promoted to a full tested page as we work through them.
| API | What it does | Auth |
|---|---|---|
| Chomp | Data about various grocery products and foods | Key |
| Coffee | Random pictures of coffee | None |
| Edamam nutrition | Nutrition Analysis | Key |
| Edamam recipes | Recipe Search | Key |
| Food Info | Nutrient data for foods from five national food composition datasets plus Open Food Facts | Key |
| Foodish | Random pictures of food dishes | NoneCORS |
| Jelly Belly Wiki | Data about Jelly Belly beans- flavores, facts, history and more endpoints | NoneCORS |
| Kroger | Supermarket Data | Key |
| LCBO | Alcohol | Key |
| LCBO | Alcohol | NoneCORS |
| Open Brewery DB | Breweries, Cideries and Craft Beer Bottle Shops | NoneCORS |
| PunkAPI | Brewdog Beer Recipes | None |
| PunkAPI | BrewDog's DIY Dog beer catalogue as an API | NoneCORS |
| RecipeAPI | Recipes, ingredients, nutrition data and cooking instructions | KeyCORS |
| Rustybeer | Beer brewing tools | None |
| Spoonacular | Recipes, Food Products, and Meal Planning | Key |
| Systembolaget | Govornment owned liqour store in Sweden | Key |
| TacoFancy | Community-driven taco database | None |
| Tasty | API to query data about recipe, plan, ingredients | Key |
| The Report of the Week | Food & Drink Reviews | None |
| Untappd | Social beer sharing | OAuth |
| What's on the menu? | NYPL human-transcribed historical menu collection | Key |
| Your Move - Nutrition API | A complete nutrition API. Search foods, get nutrition facts and values. Generate meal plans and look up packaged products from 180+ countries worldwide. | KeyCORS |
| Zestful | Parse recipe ingredients | KeyCORS |