レシピ API

材料、手順、料理の種類、難易度を持つ読み取り専用のレシピ。

あなたのアカウントでこれらのエンドポイントが使えます。各エンドポイントのページの Try it でリクエストを送れます。

これらのエンドポイントには無料アカウントが必要です。アカウントを作成するかサインインすると、詳細を見てここで試せます。

リクエストの例

List recipes with filtering, sorting, search and pagination. 完全なリファレンスと Send ボタン(英語).

cURL
curl -X GET "https://api.testingapis.com/api/Recipes?limit=2"
レスポンス · 200 OK
[
  {
    "id": 1,
    "title": "Spicy Thai Basil Chicken",
    "cuisine": "Thai",
    "prepTime": 15,
    "cookTime": 10,
    "servings": 4,
    "difficulty": "medium",
    "ingredients": ["500g chicken breast", "1 cup thai basil leaves", "… 5 more items"],
    "instructions": ["Dice the chicken into small cubes.", "Mince garlic and slice chilies.", "… 5 more items"],
    "image": "https://picsum.photos/seed/recipe1/600/400",
… (3 more lines)

サインインして詳細を見る

これらのエンドポイントのパラメータ、リクエストとレスポンスの例、ライブの Try it パネルは、サインインしたメンバー向けです。アカウントは無料で、数秒で作成できます。

絞り込み、並べ替え、ページネーション

一覧エンドポイントは limit、page、offset、sort、order、q を受け付け、任意のフィールド名を完全一致の絞り込みに使えます。件数は X-Total-Count ヘッダーで返ります。書き込みはサーバーを再起動するまでメモリに残るので、テストで自由にレコードを作成・変更・削除できます。 クエリパラメータのリファレンス.