娯
TheCocktailDB API
4 endpointsEntertainment & BooksGlobalsocial:read
Cocktails with ingredients, measures, glass and instructions from thecocktaildb.com pages.
View as Markdown| GET | /thecocktaildb/drink | One cocktail from its TheCocktailDB page: ingredients with measures, glass, tags and instructions. |
| GET | /thecocktaildb/search | Cocktails whose name matches a search, from TheCocktailDB's search page. |
| GET | /thecocktaildb/letter | Cocktails whose name starts with one letter. |
| GET | /thecocktaildb/ingredient | One cocktail ingredient from its page, with the cocktails that use it. |
drink
GET
/v1/thecocktaildb/drinkOne cocktail from its TheCocktailDB page: ingredients with measures, glass, tags and instructions.
scope social:read1 unitcached 24 h
Parameters
idstring required | Cocktail id such as 11007, or the cocktail's thecocktaildb.com URL. e.g. 11007 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
glass | string |
id | string |
imageUrl | string |
ingredients | Ingredient[] |
measure | string |
name | string |
instructions | string |
name | string |
tags | string[] |
url | string |
curl "https://api.hoshime.com/v1/thecocktaildb/drink?id=11007" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/thecocktaildb/drink?id=11007", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/thecocktaildb/drink?id=11007", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "glass": "…", "id": "abc123", "imageUrl": "https://…", "ingredients": [ { "measure": "…", "name": "…" } ], "instructions": "…", "name": "…", "tags": [ "…" ], "url": "https://…" }, "meta": { "cached": false, "endpoint": "drink", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "thecocktaildb", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
GET
/v1/thecocktaildb/searchCocktails whose name matches a search, from TheCocktailDB's search page.
scope social:read1 unitcached 6 hpaginated
Parameters
querystring required | Words of the cocktail name, such as margarita. e.g. margarita |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
id | string |
imageUrl | string |
name | string |
url | string |
curl "https://api.hoshime.com/v1/thecocktaildb/search?query=margarita" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/thecocktaildb/search?query=margarita", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/thecocktaildb/search?query=margarita", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "abc123", "imageUrl": "https://…", "name": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "thecocktaildb", "requestId": "req_2Xb9kQ…", "units": 1 } }
letter
GET
/v1/thecocktaildb/letterCocktails whose name starts with one letter.
scope social:read1 unitcached 6 hpaginated
Parameters
letterstring required | One letter, a to z. e.g. m |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
id | string |
imageUrl | string |
name | string |
url | string |
curl "https://api.hoshime.com/v1/thecocktaildb/letter?letter=m" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/thecocktaildb/letter?letter=m", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/thecocktaildb/letter?letter=m", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "abc123", "imageUrl": "https://…", "name": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "letter", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "thecocktaildb", "requestId": "req_2Xb9kQ…", "units": 1 } }
ingredient
GET
/v1/thecocktaildb/ingredientOne cocktail ingredient from its page, with the cocktails that use it.
scope social:read1 unitcached 24 h
Parameters
idstring required | Ingredient id such as 4, or the ingredient's thecocktaildb.com URL. e.g. 4 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
drinks | DrinkSummary[] |
id | string |
imageUrl | string |
name | string |
url | string |
id | string |
imageUrl | string |
name | string |
url | string |
curl "https://api.hoshime.com/v1/thecocktaildb/ingredient?id=4" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/thecocktaildb/ingredient?id=4", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/thecocktaildb/ingredient?id=4", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "drinks": [ { "id": "abc123", "imageUrl": "https://…", "name": "…", "url": "https://…" } ], "id": "abc123", "imageUrl": "https://…", "name": "…", "url": "https://…" }, "meta": { "cached": false, "endpoint": "ingredient", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "thecocktaildb", "requestId": "req_2Xb9kQ…", "units": 1 } }