freeapis

TheCocktailDB

鸡尾酒配方

认证方式
API Key
HTTPS
Yes
CORS
Yes
分类
餐饮

简介

TheCocktailDB 提供鸡尾酒配方——搜索、筛选和随机饮品。免费测试密钥 1 可用于 JSON API 调用(实测可用)。

快速开始

搜索(免费层用测试密钥 1 即可):

curl "https://www.thecocktaildb.com/api/json/v1/1/search.php?s=margarita"
{
  "drinks": [
    {
      "idDrink": "11007",
      "strDrink": "Margarita",
      "strCategory": "Ordinary Drink",
      "strGlass": "Cocktail glass",
      "strInstructions": "Rub the rim of the glass with the lime slice...",
      "strDrinkThumb": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg"
    }
  ]
}

随机 / 按原料:

curl "https://www.thecocktaildb.com/api/json/v1/1/random.php"
curl "https://www.thecocktaildb.com/api/json/v1/1/filter.php?i=gin"

认证方式

  • 免费/测试 API 密钥字面量就是 1/api/json/v1/1/...)——基本使用无需注册。
  • 高级密钥解锁更多端点(patreon)。

速率限制与注意事项

  • 免费层:按文档每小时请求有限;请礼貌使用。
  • 端点:search.php?s=random.phpfilter.php?i=lookup.php?i=

常见问题

TheCocktailDB 免费吗? 测试密钥 1 可用于 JSON API 调用(实测)。

密钥是什么? 免费层用 1(已实测)。

可以按原料搜索吗? 可以——filter.php?i=gin

餐饮 分类更多

APIAuthHTTPSCORS
BaconMockup

Resizable bacon placeholder images

No authYesYes
Chomp

Data about various grocery products and foods

API KeyYesUnknown
Coffee

Random pictures of coffee

No authYesUnknown
Edamam nutrition

Nutrition Analysis

API KeyYesUnknown
Edamam recipes

Recipe Search

API KeyYesUnknown