# Punch Drink — Zapi reference > Cocktail & drink recipe scraper untuk Punch Drink — cari resep cocktail, ambil detail (bahan, cara, garnish), dan koleksi terbaru. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/food/punchdrink - Endpoint catalog: https://zpi.web.id/category/food - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## Punch Drink **Category:** food · **Slug:** `punchdrink` **Detail page:** https://zpi.web.id/api/food/punchdrink Cocktail & drink recipe scraper untuk Punch Drink — cari resep cocktail, ambil detail (bahan, cara, garnish), dan koleksi terbaru. **Tags:** drinks, cocktails, recipe, english ### Search Cari resep berdasarkan keyword dengan pagination. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/food:punchdrink/search` - **Cache TTL:** 180s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `query` | string | query | yes | Cocktail / drink keyword | | `page` | number | query | no | Page number (default 1, max 50) | **cURL:** ```bash curl "https://api.zpi.web.id/v1/food:punchdrink/search?query=gin&page=1" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/food:punchdrink/search?query=gin&page=1", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/food:punchdrink/search?query=gin&page=1", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "page": 1, "count": 10, "items": [ { "url": "https://punchdrink.com/recipes/dirty-gin-tonic/", "title": "Dirty Gin & Tonic", "author": "Punch Staff", "source": "punchdrink.com", "summary": "Salty gin and some olive brine make this the warm-weather drink for dirty Martini fans." }, { "url": "https://punchdrink.com/recipes/gin-coco-no-2/", "title": "Gin Coco No. 2", "author": "Punch Staff", "source": "punchdrink.com", "summary": "Tropical, creamy, herbal, spicy—this cocktail ticks all the boxes." }, { "url": "https://punchdrink.com/recipes/gin-it/", "title": "Gin & It", "author": "Punch Staff", "source": "punchdrink.com", "summary": "A lesser-known gin classic from the 1970s." }, { "url": "https://punchdrink.com/recipes/harrison-ginsbergs-martini/", "title": "Harrison Ginsberg’s Martini", "author": "Mary Anne Porto", "source": "punchdrink.com", "summary": "In this winning Martini recipe, a few simple ingredients come together in precisely the right proportions." }, { "url": "https://punchdrink.com/recipes/gin-sonic/", "title": "Gin Sonic", "author": "Mary Anne Porto", "source": "punchdrink.com", "summary": "Japan’s very own Gin & Tonic." }, { "url": "https://punchdrink.com/recipes/harrison-ginsbergs-martinez/", "title": "Harrison Ginsberg’s Martinez", "author": "Mary Anne Porto", "source": "punchdrink.com", "summary": "A modern take splits the base between Old Tom and London dry gins." }, { "url": "https://punchdrink.com/recipes/gin-pahit/", "title": "Sling Bar's Gin Pahit", "author": "Mary Anne Porto", "source": "punchdrink.com", "summary": "A simplified version of the pared-back Malaysian classic." }, { "url": "https://punchdrink.com/recipes/harrison-ginsberg-white-negroni/", "title": "Harrison Ginsberg’s White Negroni", "author": "Mary Anne Porto", "source": "punchdrink.com", "summary": "A winning recipe that adds a splash of verjus for extra brightness." }, { "url": "https://punchdrink.com/recipes/maison-premieres-ramos-gin-fizz-cocktail-recipe/", "title": "Maison Premiere's Ramos Gin Fizz", "author": "Talia Baiocchi", "source": "punchdrink.com", "summary": "A winning recipe for the New Orleans classic." }, { "url": "https://punchdrink.com/articles/mastering-the-gin-rickey-cocktail-recipe-with-aj-johnson/", "image": "https://punchdrink.com/wp-content/uploads/2021/09/Thumb-Gin-Rickey-Cocktail-Recipe-Andra-AJ-Johnson-Serenata-Washington-DC.jpg", "title": "Mastering the Gin Rickey with Andra “AJ” Johnson", "author": "Laurel Miller", "source": "punchdrink.com", "summary": "The D.C. bartender elevates the city's hometown highball with a vibrant, aromatic citrus syrup." } ], "hasMore": false } ``` --- ### Detail Resep Ambil detail lengkap resep dari URL — bahan, langkah, durasi, porsi. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/food:punchdrink/detail` - **Cache TTL:** 600s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `url` | string | query | yes | Cocktail recipe URL on punchdrink.com | **cURL:** ```bash curl "https://api.zpi.web.id/v1/food:punchdrink/detail?url=https%3A%2F%2Fpunchdrink.com%2Frecipes%2Fdirty-gin-tonic%2F" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/food:punchdrink/detail?url=https%3A%2F%2Fpunchdrink.com%2Frecipes%2Fdirty-gin-tonic%2F", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/food:punchdrink/detail?url=https%3A%2F%2Fpunchdrink.com%2Frecipes%2Fdirty-gin-tonic%2F", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "url": "https://punchdrink.com/recipes/dirty-gin-tonic/", "image": "https://punchdrink.com/wp-content/uploads/2026/04/Article2-Dirty-Gin-Tonic-Fishers-Deans-Cocktail-Recipe.jpg?w=800", "steps": [ "Add all ingredients to a Collins or highball glass over ice.", "Top with equal parts club soda and tonic water.", "Garnish with three pitted olives on a skewer." ], "title": "Dirty Gin & Tonic", "author": "Punch Staff", "source": "punchdrink.com", "summary": "The Dirty Gin & Tonic cocktail recipe from New York City restaurant Dean's is made with Fishers gin, fino sherry and olive brine.", "category": "Recipe", "servings": "1", "updatedAt": "2026-04-24T10:00:21Z", "ingredients": [ "1 1/2 ounces gin, such as Fishers", "1/2 ounce fino sherry", "1/2 ounce olive brine", "equal parts club soda and light tonic water, such as Fever Tree Light Tonic, to top", "Garnish: three pitted olives on a skewer" ], "publishedAt": "2026-04-24T10:00:21Z" } ``` --- ### Resep Terbaru Daftar resep terbaru, optional filter kategori. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/food:punchdrink/latest` - **Cache TTL:** 180s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `category` | string | query | no | Section slug (optional). Examples: cocktails, beer, wine, spirits, places. Leave empty for global feed. | | `page` | number | query | no | Page (default 1, max 50) | **cURL:** ```bash curl "https://api.zpi.web.id/v1/food:punchdrink/latest?category=cocktails&page=1" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/food:punchdrink/latest?category=cocktails&page=1", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/food:punchdrink/latest?category=cocktails&page=1", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "page": 1, "count": 10, "items": [ { "url": "https://punchdrink.com/articles/best-trendy-cocktail-glassware-2026/", "title": "Five Glasses Defining Cocktail Bars Right Now", "author": "Liz Provencher", "source": "punchdrink.com", "summary": "From a statuesque Martini glass to a playful footed rocks glass, here’s what’s trending.", "category": "recommendations", "publishedAt": "Tue, 26 May 2026 12:47:38 +0000" }, { "url": "https://punchdrink.com/articles/ultimate-best-guide-to-cocktail-glassware/", "tags": [ "glassware" ], "title": "The Ultimate Guide to Cocktail Glassware", "author": "Punch Staff", "source": "punchdrink.com", "summary": "The best go-tos and splurges in every category, plus our favorite outliers.", "category": "gift guide", "publishedAt": "Tue, 26 May 2026 10:00:20 +0000" }, { "url": "https://punchdrink.com/articles/boy-martini-manhattan-cocktail-trend/", "title": "Manhattan? Actually, It’s a “Boy Martini”", "author": "Bettina Makalintal", "source": "punchdrink.com", "summary": "First there were “girl dinners” and “boy kibble,” and now we’ve apparently rebranded the Manhattan.", "category": "trends", "publishedAt": "Thu, 21 May 2026 10:00:54 +0000" }, { "url": "https://punchdrink.com/articles/strawberry-cocktail-recipes/", "title": "All the Ways to Add Strawberries to Your Cocktail", "author": "Punch Staff", "source": "punchdrink.com", "summary": "Our favorite recipes using the fruit, from Daiquiris to Negronis to Miami Vices.", "category": "cocktail package", "publishedAt": "Tue, 19 May 2026 10:00:57 +0000" }, { "url": "https://punchdrink.com/articles/easy-tequila-cocktail-recipes/", "tags": [ "update" ], "title": "Our Favorite Easy Tequila Cocktails", "author": "Punch Staff", "source": "punchdrink.com", "summary": "The agave spirit complements cold brew, Campari and more in these simple recipes.", "category": "cocktail package", "publishedAt": "Tue, 12 May 2026 10:00:38 +0000" }, { "url": "https://punchdrink.com/articles/best-easy-gimlet-cocktail-recipes-2025/", "tags": [ "update" ], "title": "A Gimlet for Every Mood", "author": "Punch Staff", "source": "punchdrink.com", "summary": "Upgrade the gin classic with everything from celery to basil, MSG to Ango and more.", "category": "cocktail package", "publishedAt": "Thu, 07 May 2026 10:00:38 +0000" }, { "url": "https://punchdrink.com/articles/amaro-cocktail-recipes/", "tags": [ "update" ], "title": "Our Favorite Easy Amaro Cocktails", "author": "Punch Staff", "source": "punchdrink.com", "summary": "Fifteen recipes starring the bittersweet liqueur, from the Jägerita to the Mezcaletti.", "category": "cocktail package", "publishedAt": "Tue, 05 May 2026 10:00:37 +0000" }, { "url": "https://punchdrink.com/articles/most-popular-best-cocktail-recipes-april-2026/", "title": "The Most Popular Cocktails of April", "author": "Punch Staff", "source": "punchdrink.com", "summary": "Here are the drinks that you couldn’t get enough of this month.", "category": "cocktail package", "publishedAt": "Fri, 01 May 2026 13:30:02 +0000" }, { "url": "https://punchdrink.com/articles/mint-julep-cocktail-recipes/", "tags": [ "update" ], "title": "A Julep for Every Mood", "author": "Punch Staff", "source": "punchdrink.com", "summary": "From the minty classic to a pineapple-spiked take and more.", "category": "cocktail package", "publishedAt": "Mon, 27 Apr 2026 10:00:10 +0000" }, { "url": "https://punchdrink.com/articles/dirty-gin-tonic-fishers-deans-cocktail-recipe/", "tags": [ "recommendations" ], "title": "This Salty Gin Makes a Superb “Dirty G&T”", "author": "Mary Anne Porto", "source": "punchdrink.com", "summary": "Made with English seaside botanicals, it adds minerality to highballs, Martinis and more.", "category": "Obsessions", "publishedAt": "Fri, 24 Apr 2026 10:00:21 +0000" } ], "hasMore": false } ``` --- _Generated: 2026-08-02T14:30:16.425Z_