{
  "openapi": "3.1.0",
  "info": {
    "title": "Zapi — Food",
    "description": "Every Food endpoint on Zapi. Rendered catalog: https://preview.zapi.ink/category/food",
    "version": "1.0.0",
    "license": {
      "name": "Zapi Terms of Service",
      "url": "https://preview.zapi.ink/terms"
    }
  },
  "servers": [
    {
      "url": "https://api-preview.zapi.ink"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "Envelope": {
        "type": "object",
        "required": [
          "status",
          "message"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "success",
              "error"
            ]
          },
          "message": {
            "type": "string"
          },
          "content": {}
        }
      }
    },
    "responses": {
      "Error": {
        "description": "Invalid key, rate limit, or upstream failure",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Envelope"
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "url": "https://preview.zapi.ink/category/food/llms.txt"
  },
  "paths": {
    "/v1/food:cookpad/search": {
      "get": {
        "operationId": "food_cookpad_search",
        "summary": "Search Recipes",
        "description": "",
        "tags": [
          "Cookpad Scraper"
        ],
        "externalDocs": {
          "url": "https://preview.zapi.ink/api/food/cookpad#reference-search"
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Kata kunci resep yang dicari",
            "schema": {
              "type": "string",
              "example": "ayam kecap"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Halaman hasil pencarian. Default 1, max 50",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "status": "success",
                  "message": "Success",
                  "content": {
                    "page": 1,
                    "count": 30,
                    "items": [
                      {
                        "id": "25801704",
                        "url": "https://cookpad.com/id/resep/25801704",
                        "title": "Ayam Kecap Berempah🧄🍗",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 jam",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25796387",
                        "url": "https://cookpad.com/id/resep/25796387",
                        "title": "Tumis Ayam Kecap Cabe Rawit",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "30 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25765289",
                        "url": "https://cookpad.com/id/resep/25765289",
                        "title": "Ayam Kecap Bawang Bombay",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 jam 30 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25773409",
                        "url": "https://cookpad.com/id/resep/25773409",
                        "title": "Ayam kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": null,
                        "servings": "5 porsi",
                        "ingredients": []
                      },
                      {
                        "id": "25789506",
                        "url": "https://cookpad.com/id/resep/25789506",
                        "title": "Ayam Kecap di Mie Ayam 🍜",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "2 jam",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25793629",
                        "url": "https://cookpad.com/id/resep/25793629",
                        "title": "Ayam Kecap Rempah",
                        "author": "Melv",
                        "imageUrl": "https://img-global.cpcdn.com/users/f5bafbc4c625f405/24x24cq50/avatar.jpg",
                        "prepTime": null,
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25782700",
                        "url": "https://cookpad.com/id/resep/25782700",
                        "title": "Topping Mie Ayam - Ayam Bumbu Kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "45 Menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25765752",
                        "url": "https://cookpad.com/id/resep/25765752",
                        "title": "Ayam Kecap Super Yummy",
                        "author": "Mahbubah Najah (The Luckiest Woman)",
                        "imageUrl": "https://img-global.cpcdn.com/users/f48ff6ba40e27c9b/24x24cq50/avatar.jpg",
                        "prepTime": null,
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25765485",
                        "url": "https://cookpad.com/id/resep/25765485",
                        "title": "Mie Ayam Kecap",
                        "author": "Aurelia Evelinadine",
                        "imageUrl": "https://img-global.cpcdn.com/users/b7716b91c2db0bfd/24x24cq50/avatar.jpg",
                        "prepTime": null,
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25758610",
                        "url": "https://cookpad.com/id/resep/25758610",
                        "title": "Bakpao Labu Ayam Kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 jam",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25756182",
                        "url": "https://cookpad.com/id/resep/25756182",
                        "title": "Ayam Kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "30 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25752375",
                        "url": "https://cookpad.com/id/resep/25752375",
                        "title": "Ayam Kecap Isian Pau",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "20 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25753387",
                        "url": "https://cookpad.com/id/resep/25753387",
                        "title": "Bakpao Labu Kuning Isi Ayam Kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 jam 30 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25749939",
                        "url": "https://cookpad.com/id/resep/25749939",
                        "title": "Bakpao No Mixer (Isi Ayam Kecap)",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 jam 30 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25749945",
                        "url": "https://cookpad.com/id/resep/25749945",
                        "title": "Ayam Kecap untuk Isian Bakpao",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "30 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25751354",
                        "url": "https://cookpad.com/id/resep/25751354",
                        "title": "Bakpao Ayam Kecap (no mixer)",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 jam 30 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25752523",
                        "url": "https://cookpad.com/id/resep/25752523",
                        "title": "Ayam Kecap Isian Bakpao",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "60 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25753089",
                        "url": "https://cookpad.com/id/resep/25753089",
                        "title": "Isian Bakpao: Ayam Kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "30 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25752644",
                        "url": "https://cookpad.com/id/resep/25752644",
                        "title": "Ayam Kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "25 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25751097",
                        "url": "https://cookpad.com/id/resep/25751097",
                        "title": "Isian Ayam Kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "20 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25751726",
                        "url": "https://cookpad.com/id/resep/25751726",
                        "title": "Bakpao Isi Ayam Kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "2 jam",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25751181",
                        "url": "https://cookpad.com/id/resep/25751181",
                        "title": "Ayam Kecap (Isian Bakpao)",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "20 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25721052",
                        "url": "https://cookpad.com/id/resep/25721052",
                        "title": "Bakpao Mawar Isi Ayam Kecap (No Mixer)",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 Jam 30 Menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25749448",
                        "url": "https://cookpad.com/id/resep/25749448",
                        "title": "Bakpao Isi Ayam Kecap (No Mixer)",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 jam",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25746831",
                        "url": "https://cookpad.com/id/resep/25746831",
                        "title": "Bakpao Ayam Kecap Tanpa Tepung Tangmien",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "2 jam",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25746528",
                        "url": "https://cookpad.com/id/resep/25746528",
                        "title": "Ayam Kecap Bawang Bombay",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "45 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25744194",
                        "url": "https://cookpad.com/id/resep/25744194",
                        "title": "Pao Sushi (Isi Ayam Kecap)",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 jam 30 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25735880",
                        "url": "https://cookpad.com/id/resep/25735880",
                        "title": "Bakpao isi Ayam Kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 jam 30 Menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25739781",
                        "url": "https://cookpad.com/id/resep/25739781",
                        "title": "1100. Bakpao Ayam Kecap Metode No Mixer",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "90 menit",
                        "servings": null,
                        "ingredients": []
                      },
                      {
                        "id": "25734888",
                        "url": "https://cookpad.com/id/resep/25734888",
                        "title": "Bakpao Ayam kecap",
                        "author": "",
                        "imageUrl": "",
                        "prepTime": "1 jam 30 menit",
                        "servings": null,
                        "ingredients": []
                      }
                    ],
                    "query": "ayam kecap",
                    "hasMore": true,
                    "nextPage": 2
                  }
                }
              }
            }
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/food:cookpad/detail": {
      "get": {
        "operationId": "food_cookpad_detail",
        "summary": "Get Recipe Detail",
        "description": "",
        "tags": [
          "Cookpad Scraper"
        ],
        "externalDocs": {
          "url": "https://preview.zapi.ink/api/food/cookpad#reference-detail"
        },
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "URL resep cookpad.com",
            "schema": {
              "type": "string",
              "example": "https://cookpad.com/id/resep/25801704"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "status": "success",
                  "message": "Success",
                  "content": {
                    "id": "25801704",
                    "url": "https://cookpad.com/id/resep/25801704",
                    "steps": [
                      {
                        "text": "Haluskan bawang putih, bawang merah, merica, dan ketumbar.",
                        "images": []
                      },
                      {
                        "text": "Panaskan minyak dengan api sedang, tumis bumbu halus hingga harum.",
                        "images": []
                      },
                      {
                        "text": "Masukkan daun salam, daun jeruk, laos, dan sedikit kayu manis. Tumis hingga aroma rempah keluar.",
                        "images": []
                      },
                      {
                        "text": "Masukkan ayam, aduk hingga berubah warna.",
                        "images": []
                      },
                      {
                        "text": "Tambahkan kecap manis, garam, penyedap, dan sedikit gula jawa.",
                        "images": []
                      },
                      {
                        "text": "Tuang sedikit air, lalu masak hingga ayam empuk dan bumbu meresap.",
                        "images": []
                      },
                      {
                        "text": "Masak sampai kuah sedikit menyusut dan warna kecap lebih pekat mengilap.",
                        "images": []
                      },
                      {
                        "text": "Koreksi rasa, lalu sajikan hangat.",
                        "images": []
                      }
                    ],
                    "title": "Ayam Kecap Berempah🧄🍗",
                    "author": {
                      "url": "https://cookpad.com/id/pengguna/115097929",
                      "name": "fani_cookingday",
                      "username": null
                    },
                    "imageUrl": "https://img-global.cpcdn.com/recipes/eb7f66a4764540be/1200x630cq80/photo.jpg",
                    "prepTime": "1 jam",
                    "servings": "3 orang",
                    "description": "Masakan ayam kecap ini terinspirasi dari menu rumahan sederhana yang sering dibuat saat ingin masak praktis tapi tetap enak. Tambahan rempah seperti daun jeruk, laos, dan sedikit kayu manis membuat aroma ayam lebih harum dan rasanya lebih khas dibanding ayam kecap biasa. Cocok disajikan hangat untuk makan bersama keluarga✨🧄",
                    "ingredients": [
                      "500 gr ayam, potong sesuai selera",
                      "3 siung bawang putih",
                      "3 siung bawang putih",
                      "1/2 sdt merica",
                      "1/2 sdt ketumbar",
                      "2 lembar daun jeruk",
                      "2 lembar daun salam",
                      "1 ruas laos, geprek",
                      "Sedikit kayu manis",
                      "secukupnya Garam",
                      "secukupnya Penyedap",
                      "sedikit Gula jawa",
                      "secukupnya Air",
                      "secukupnya Minyak"
                    ],
                    "dateModified": "2026-05-22",
                    "datePublished": "2026-05-22"
                  }
                }
              }
            }
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    }
  }
}