भोजन, स्वास्थ्य व प्रकृति
कॉकटेल API
नाम से या शेल्फ़ की सामग्री से क्लासिक कॉकटेल रेसिपी खोजें।
शीर्षलेखों का अनुरोध करें
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | cocktails.p.rapidapi.com |
अंतिमबिंदुओं
GET
/v1/cocktails Search cocktail recipes by name or ingredient
पैरामीटर
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
ingredient | string | optional | — | — |
limit | integer | optional | — | — |
name | string | optional | — | — |
offset | integer | optional | — | — |
कोड उदाहरण
curl --request GET \
--url 'https://cocktails.p.rapidapi.com/v1/cocktails?ingredient=example&limit=0' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: cocktails.p.rapidapi.com' const url = "https://cocktails.p.rapidapi.com/v1/cocktails?ingredient=example&limit=0";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "cocktails.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://cocktails.p.rapidapi.com/v1/cocktails"
querystring = {"ingredient": "example", "limit": 0}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "cocktails.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) इंटरैक्टिव उदाहरण
$ GET /v1/cocktails?ingredient=gin
{"data":[{"name":"Negroni","glass":"old fashioned","category":"Before Dinner Cocktail","ingredients":[{"name":"Gin","measure":"3 cl"},{"name":"Campari","measure":"3 cl"},{"name":"Sweet red vermouth","measure":"3 cl"}],"instructions":"..."}],"meta":{"total":1,"limit":10,"offset":0}} सदस्यता और लाइसेंस
RapidAPI पर वाणिज्यिक-तैयार स्तरों के साथ इस एपीआई तक पहुंचें। साइड-प्रोजेक्ट्स, स्टार्टअप्स और उच्च-मात्रा उत्पादन आर्किटेक्चर के लिए डिज़ाइन की गई लचीली योजनाएँ।
डेवलपर सहायता
एकीकृत करने में सहायता चाहिए या कोई कस्टम समापन बिंदु अनुरोध चाहिए? हमारी इंजीनियरिंग टीम प्रमाणीकरण, पेलोड स्कीमा और उच्च-आवृत्ति दर सीमा बढ़ाने में सहायता के लिए यहां है।
सिस्टम प्रदर्शन
99.9% अपटाइम एसएलए के साथ 24/7 निगरानी की जाती है। अल्ट्रा-लो विलंबता प्रतिक्रिया समय सुनिश्चित करने के लिए विश्व स्तर पर वितरित एज कैशिंग के साथ क्लाउड-नेटिव माइक्रोसर्विसेज के ऊपर निर्मित।
सभी सिस्टम चालू