Contents
On this page

List Saved Recipes - Plugixa Recipe

GET /plugixa-recipe/v1/frontend/account/saved

List the published recipes the caller saved, newest first, ready to show as cards.

Needs any signed-in WordPress user, a subscriber included: a visitor with an account, signed in with the site cookie and nonce or an Application Password. The Visitor Account app must be on.

Request

GET https://your-site.example/wp-json/plugixa-recipe/v1/frontend/account/saved

Responses

200 OK. data is the saved recipes.

{
  "success": true,
  "data": [
    {
      "id": 12,
      "title": "Lemon Pancakes",
      "url": "https://your-site.example/recipes/lemon-pancakes",
      "image": "https://your-site.example/wp-content/uploads/2026/11/lemon-pancakes-300x200.jpg",
      "time": "25 mins",
      "difficulty": "Easy",
      "rating": 4.5
    }
  ]
}
Field Type Meaning
data[].id integer The recipe’s id
data[].url string The recipe’s page
data[].image string Medium image URL, empty when there is none
data[].time string Total time as the site writes it
data[].difficulty string The difficulty label, translated
data[].rating number Average rating to one decimal, 0 with no ratings

At most 200 recipes. The response is sent with Cache-Control: no-store, private, so no shared cache keeps one person’s list.

Errors

Status Code When
401 rest_forbidden The request is not signed in.

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-recipe/v1/frontend/account/saved" \
  -u "jane:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-recipe/v1/frontend/account/saved');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'jane:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const auth = 'Basic ' + btoa(`jane:${process.env.WP_APP_PASSWORD}`);
const response = await fetch('https://your-site.example/wp-json/plugixa-recipe/v1/frontend/account/saved', {
  headers: {
    'Authorization': auth,
  },
});
const { data } = await response.json();

Quick Links

Share